Skip to content

Instantly share code, notes, and snippets.

@jordangray
Created March 8, 2012 20:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jordangray/2003290 to your computer and use it in GitHub Desktop.
Save jordangray/2003290 to your computer and use it in GitHub Desktop.
Validating a choice of root elements in an XML document.
<!ELEMENT foo (#PCDATA)>
<!ELEMENT bar (#PCDATA)>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="foo" type="xs:string"/>
<xs:element name="bar" type="xs:string"/>
</xs:schema>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment