Difference between and in schema definition?

<xsd:all> specifies that the child elements can appear in any order. <xsd:sequence> specifies child elements can only appear in the order mentioned. Example for Sequence: <xs:element name=”compElement”> <xs:complexType> <xs:sequence> <xs:element name=”ele1″ type=”xs:string”/> <xs:element name=”ele2″ type=”xs:string”/> <xs:element name=”ele3″ type=”xs:string”/> <xs:element name=”ele4″ type=”xs:string”/> </xs:sequence> </xs:complexType> </xs:element> If you create an XML from this xsd then, it will … Read more

How can I tell jaxb / Maven to generate multiple schema packages?

I had to specify different generateDirectory (without this, the plugin was considering that files were up to date and wasn’t generating anything during the second execution). And I recommend to follow the target/generated-sources/<tool> convention for generated sources so that they will be imported in your favorite IDE automatically. I also recommend to declare several execution … Read more

What is the purpose of XSD files?

XSD files are used to validate that XML files conform to a certain format. In that respect they are similar to DTDs that existed before them. The main difference between XSD and DTD is that XSD is written in XML and is considered easier to read and understand.

Required tags not present when using Delphi XML Data Binding Wizard

Not sure to understand but maybe what you are looking for is : use=”optional” <xs:element name=”MyReport” type=”MyReportType” /> <xs:complexType name=”MyReportType”> <xs:all> <xs:element name=”Header” type=”HeaderType” use=”optional” /> <xs:element name=”Values” type=”ValuesType” use=”optional” /> <xs:element name=”Events” type=”EventsType” use=”optional” /> </xs:all> </xs:complexType> Tell me if it’s okay.

YAML Schema Validation?

JSON Schema can be used with most YAML documents resulting in a more portable and better documented solution than Rx or Kwalify. JSON Schema is the only of the three for which I have been able to find editor support. More information on using YAML and JSON Schema including tools and editor support is tracked … Read more

What is an xs:NCName type and when should it be used?

@skyl practically provoked me to write this answer so please mind the redundancy. NCName stands for “non-colonized name”. NCName can be defined as an XML Schema regular expression [\i-[:]][\c-[:]]* …and what does that regex mean? \i and \c are multi-character escapes defined in XML Schema definition. http://www.w3.org/TR/xmlschema-2/#dt-ccesN \i is the escape for the set of … Read more

What does elementFormDefault do in XSD?

ElementFormDefault has nothing to do with namespace of the types in the schema, it’s about the namespaces of the elements in XML documents which comply with the schema. Here’s the relevent section of the spec: Element Declaration Schema Component Property {target namespace} Representation If form is present and its ·actual value· is qualified, or if … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)