
Why would you convert XML to DOM?
To allows programs and scripts to dynamically access ,update and manipulating the content, structure, and style of a XML document.
You might want a piece of software -an intractive website, say, to access parts of the document.
What are the implication of turning XML Doc in to DOM?
Turn XML DOC in to Nodes with tree like structure. Each Nodes In the xml Document must be accessed using method or iterating through each array which hold the XML object. poddess properties and method.
Programes which can be used to access XML DOM are JavaScript,PHP,ASP.NET as far as am I KNOW there might be more for example JAVA, and C++
< ?xml version="1.0" encoding="ISO-8859-1" ?>
< xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
< xs:element name="Payment_doc">
< xs:complexType>
< xs:sequence>
< xs:element name="Sender" type="xs:string"/>
< xs:complexType>
< xs:sequence>
< xs:element name="company" type="xs:string"/>
< xs:element name="name" type="xs:string"/>
< xs:element name="address" type="xs:string"/>
< xs:element name="city" type="xs:string"/>
< xs:element name="Postcode" type="xs:string"/>
< xs:element name="country" type="xs:string"/>
< /xs:sequence>
< /xs:complexType>
< /xs:element>
< xs:element name="Receiver" maxOccurs="1">
< xs:complexType>
< xs:sequence>
< xs:element name="name" type="xs:string"/>
< xs:element name="addres" type="xs:string" minOccurs="0"/>
< xs:element name="city" type="xs:positiveInteger"/>
< xs:element name="country" type="xs:decimal"/>
< /xs:sequence>
< /xs:complexType>
< /xs:element>
< /xs:sequence>
< xs:attribute name="Transaction" type="xs:string" use="required"/>
< /xs:complexType>
< /xs:element>
< /xs:schema>
No comments:
Post a Comment