Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Schema:
- <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:myns="http://domain.com/myns" targetNamespace="http://domain.com/myns">
- <xs:complexType name="root">
- <xs:sequence>
- <xs:element name="type" type="myns:type" minOccurs="0" maxOccurs="unbounded"/>
- </xs:sequence>
- </xs:complexType>
- <xs:complexType name="type">
- <xs:attribute name="id" type="xs:int" use="required"/>
- </xs:complexType>
- <xs:element name="root" type="myns:root"/>
- </xs:schema>
- XML:
- <?xml version="1.0" encoding="UTF-8"?>
- <myns:root xmlns:myns="http://domain.com/myns" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://domain.com/myns my.xsd">
- </myns:root>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement