Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8" ?>
- <root1 stuff="Hello World	!" />
- <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
- <xs:simpleType name="Hello">
- <xs:restriction base="xs:string">
- <xs:pattern value="Hello World	!"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:element name="root1">
- <xs:complexType>
- <xs:attribute name="stuff" type="Hello" />
- </xs:complexType>
- </xs:element>
- </xs:schema>
- <xs:simpleType name="HellUnion">
- <xs:union memberTypes="Hello" />
- </xs:simpleType>
- <xs:element name="root2">
- <xs:complexType>
- <xs:attribute name="stuff" type="HellUnion" />
- </xs:complexType>
- </xs:element>
- <?xml version="1.0" encoding="UTF-8" ?>
- <root2 stuff="Hello World	!" />
- <xs:simpleType name="Hello">
- <xs:restriction base="xs:string">
- <xs:whiteSpace value="preserve"/>
- <xs:pattern value="Hello World	!"/>
- </xs:restriction>
- </xs:simpleType>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement