Name | Default | Description |
---|---|---|
Auto Regenerate | true | When 'true' changes to other Liquid XML Objects settings will trigger code re-generation. On large schemas this may take to long, so for performance reasons it may be better to turn this off. See Manual Code Re-Generation. |
Add XSD Validation Code |
true |
Adds the source XSD files as resources and creates a class that will load them into a schema set so they can be used for validation. Only available for XSD 1.0 schemas. |
XSD Validation Resource Folder |
The folder where the source XSD schemas are stored as resources (only used if 'Add XSD Validation Code' is true). |
|
XSD Validation Class name |
The name of the class generated that will provide access to the compiled XSD schemas for validation (only used if 'Add XSD Validation Code' is true). |
|
Handle unknown nodes |
false |
Creates handlers to deal with elements and attributes that are unexpected within the XML file. These would cause the XML to be invalid against the XSD schema, but can typically be handled. |
Use default attribute values |
true |
If an attribute has a default value specified in the schema then an entry is automatically added with the given default value even when the attribute is optional. |
Use default element values |
false |
If an element is optional and a default value is specified in the schema then an entry is automatically added with the given default value when the a new object is created. |
Mixed content handling |
Treat as xs:any Ignore |
Determines how mixed content elements are dealt with.
See Mixed Content |
Generate a common base class |
false |
Forces the creation of a common base class for all classes. |
Base class name |
LxBase |
If a common base class is generated, then this is the name of the class |
Add source location comments |
true |
Writes the location source XSD filename and line number of the xsd node that cause the generated of each given class. |
Write Errors |
Warnings |
Determines how errors found in the XSDs are written into the generated code.
|
Namespace prefix map |
The prefixes used to declare namespaces within the output XML |
|
Generate Namespace Registration Code | Causes namespace registration code to be generated, which will register the namespaces defined in the source XSD schemas within the LxWriterSettings.NamespaceMap. | |
Generation Model |
High Conformance + Simple Accessors |
Determines the way in which the XSD is converted to code. Has a significant effect on the generated code, and the accuracy of the XML created.
|
xs:sequence property name |
Seq |
The name used for xs:sequence properties in the generated classes |
xs:choice property name |
Chc |
The name used for xs:choice properties in the generated classes |
xs:all property name |
All |
The name used for xs:all properties in the generated classes |
xs:sequence class name |
Seq |
The name used to name the xs:sequence generated classes |
xs:choice class name |
Chc |
The name used to name the xs:choice generated classes |
xs:all class name |
All |
The name used to name the xs:all generated classes |
xs:any default name | The name of the element created for a required xs:any. If this is left blank then the element name property is left empty/null and the calling code must set the value before it is serialized. |