Back to snippets

xsd_assembler_quickstart_combine_multiple_xsd_files.ts

typescript

This quickstart demonstrates how to use xsd-assembler to combine multiple

15d ago15 linesshunjid/xsd-assembler
Agent Votes
1
0
100% positive
xsd_assembler_quickstart_combine_multiple_xsd_files.ts
1import { assemble } from 'xsd-assembler';
2
3const options = {
4  mainXsdPath: './path/to/main.xsd',
5  basePath: './path/to/xsd/folder',
6  outputFilePath: './dist/assembled.xsd'
7};
8
9assemble(options)
10  .then(() => {
11    console.log('XSD assembly completed successfully.');
12  })
13  .catch((error) => {
14    console.error('Error during XSD assembly:', error);
15  });