Skip to content

Instantly share code, notes, and snippets.

@jan-matejka
Created August 31, 2017 13:28
Show Gist options
  • Select an option

  • Save jan-matejka/38e99ff1ce1497477098fca2352e0acf to your computer and use it in GitHub Desktop.

Select an option

Save jan-matejka/38e99ff1ce1497477098fca2352e0acf to your computer and use it in GitHub Desktop.
yac@remy % xml val --err --dtd ./dtd/2009/XMLSchema.dtd x.xsd
x.xsd:2.0: No declaration for element schema
x.xsd:2.0: No declaration for attribute xmlns of element schema
x.xsd:3.0: No declaration for element complexType
x.xsd:3.0: No declaration for attribute name of element complexType
x.xsd:4.0: No declaration for element all
x.xsd:5.0: No declaration for element element
x.xsd:5.0: No declaration for attribute name of element element
x.xsd:5.0: No declaration for attribute type of element element
x.xsd:5.0: No declaration for attribute minOccurs of element element
x.xsd:5.0: No declaration for attribute maxOccurs of element element
x.xsd - invalid
<?xml version="1.0" ?>
<schema xmlns="http://www.w3.org/2001/XMLSchema">
<complexType name="Book">
<all>
<element name="name" type="string" minOccurs="1" maxOccurs="1"/>
</all>
</complexType>
</schema>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment