The Liquid XML Objects code generator can be invoked from the command line using the LXO.exe
Example Usage |
Copy Code
|
---|---|
LXO.exe /L:CS /VSP:VS2017 /OD:"c:\temp\QuickStart\QuickStartCs" /GM:Simple /VSASM:"QuickStartLib" c:\temp\QuickStart\BookStore.xsd" /Verbose |
Command line flags | Use | Values | Description | ||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
/Language | /l | Required | CS VB |
The target language for the generated code. | |||||||||||||||||||||
/GenerateVSProject | /vsp | Optional Only used when /Language=CS/VB Default VS2017 |
File VS2015 VS2017 |
The type of .Net project to generate. Only used when Language is C# or VB.Net | |||||||||||||||||||||
/OutputFilename | /of |
Required when |
Filename | The filename that the generated code will be written to. | |||||||||||||||||||||
/OutputFolder | /od |
Required when |
Directory Name | The folder that the generated code files will be written | |||||||||||||||||||||
/GenerationModel | /gm | Optional Default ConformantWithAccessors |
Simple Conformant ConformantWithAccessors |
Determines the model used for generating the Liquid XML Objects code.
|
|||||||||||||||||||||
/OutputNamespace | /ns | Optional Default 'Lx.GeneratedCode' |
Valid target language namespace | The namespace the generated with in the target language. | |||||||||||||||||||||
/CollectionNaming | /colnm | Optional Default 'Pluralize' |
None |
Determines how collections of objects are named:
|
|||||||||||||||||||||
/RaiseChangeEvents |
/evnt |
Optional
|
+ |
Property change and collection change events will be raised when the model is changed. Allows the model to take part in in Data Binding. | |||||||||||||||||||||
/BaseClassEnabled | /cb | Optional default - (no base class) |
+ - |
Generates a common base class. Custom code can be added to this which is then available in all generated classes. | |||||||||||||||||||||
/BaseClassName | /cbn | Optional Only used when /BaseClassEnabled is set |
Valid target language class name | The class name for the common base class. The default value is language specific. |
|||||||||||||||||||||
/DefaultOptionalAttributes | /da | Optional Default + |
+ - |
Properties representing attributes are generated with default values set on them. | |||||||||||||||||||||
/DefaultOptionalElements | /de | Optional Default - |
+ - |
Properties representing elements are generated with default values set on them. | |||||||||||||||||||||
/UnprocessedHandlers | /u | Optional Default - |
+ - |
Creates a container in each element to hold unprocessed elements and attributes. | |||||||||||||||||||||
/EmbeddedXsdValidator | /exsdv | Optional Only used when /GenerateVSProject = VS2019/VS2017/VS2015 Default + |
+ - |
Generates an a validator based on the raw XSD schemas into the projects. | |||||||||||||||||||||
/VSProjectAssemblyName | /vsasm | Required when /GenerateVSProject = VS2019/VS2017/VS2015 Default + |
Valid .Net assembly name | The .Net Assembly name. | |||||||||||||||||||||
/GenerateSample | /smpl |
Optional |
+ - |
Generates sample usage code. | |||||||||||||||||||||
/GenerateNsRegistration |
Optional |
+ - |
Generates Namespace registration code. | ||||||||||||||||||||||
/name | /n | Multiple optional values in the form /name:<Variable>=<Value> |
Set the generated names for various types
Example -n:ClsAll=ALL |
||||||||||||||||||||||
/Verbose | Optional Default - |
+ - |
Produces verbose output | ||||||||||||||||||||||
/VerboseFileListing | /vfl | Optional Default - |
+ - |
Verbose file listing : lists all the generated files. | |||||||||||||||||||||
@<file> | Optional | Read response file for more options | |||||||||||||||||||||||
<XsdFile> | Required One or more filenames |
XSD Filenames (UNC/Uri names c:\schema.xsd or http://server/schema.xsd). |
The LXO.exe is compatible with the .lxo project files created in the XML Data Binder. These can be used directly as follows.
Using an XML Data Binder .lxo from the command line |
Copy Code
|
---|---|
LXO.exe @MyXmlDataBinderProject.lxo |