CreateObject("MSXML.DOMDocument")
<products xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="oemPriceXMLList.xsd"> <group name=""> </group> <group name="Software"> <product id="50634"> <name>Adobe Premiere Elements UK V8</name> <stock>Yes</stock> <weight>0.5</weight> <model>65045809</model> <shortDescription>Adobe Premiere Elements - ( v. 8 )</shortDescription> <manufacturerName>Adobe</manufacturerName> <manufacturerURL>http://www.adobe.com/</manufacturerURL> <price>475</price> </product><product id="50635"> <name>Adobe Photoshop</name> <stock>Yes</stock> <weight>0.5</weight> <model>65045041</model> <shortDescription>Adobe Photoshop</shortDescription> <manufacturerName>Adobe</manufacturerName> <manufacturerURL>http://www.adobe.com/</manufacturerURL> <price>479</price> </product></group>
<?xml version="1.0" encoding="ISO-8859-1" ?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> <!-- definition of simple elements --> <xs:element name="name" type="xs:string"/> <xs:element name="price" type="xs:positiveInteger"/> <xs:element name="stock" type="xs:string"/> <xs:element name="weight" type="xs:decimal"/> <xs:element name="model" type="xs:string"/> <xs:element name="shortDescription" type="xs:string"/> <xs:element name="manufacturerName" type="xs:string"/> <xs:element name="manufacturerURL" type="xs:string"/> <!-- definition of attributes --> <xs:attribute name="name" type="xs:string"/> <xs:attribute name="id" type="xs:positiveInteger"/> <!-- definition of complex elements --> <xs:element name="product"> <xs:complexType> <xs:sequence> <xs:element ref="name"/> <xs:element ref="price"/> <xs:element ref="stock"/> <xs:element ref="weight"/> <xs:element ref="model"/> <xs:element ref="shortDescription"/> <xs:element ref="manufacturerName"/> <xs:element ref="manufacturerURL"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="group"> <xs:complexType> <xs:sequence> <xs:element ref="product"/> </xs:sequence> <xs:attribute ref="id" use="required"/> </xs:complexType> </xs:element> <xs:element name="products"> <xs:complexType> <xs:sequence> <xs:element ref="group"/> </xs:sequence> </xs:complexType> </xs:element> </xs:schema>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)