Wednesday, 27 January 2010

Week15



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>

Wednesday, 20 January 2010

Week 14 XML Schema

CMT3315
Simple type XML Schema: element which do not contain other elements and has no attributes.
Complex type XML Schema: element which does contain other elements and inclued attributes.
XML Schema is extensible Schema definition you can:
• Reuse your Schema in other Schemas
• Create your own data types derived from the standard types
• Reference multiple schemas in the same document
Three perfefined XML Schema are boolean,integer and ENTITIES.
Longer Questions:

Xs:schema is the standard namespace for XML schema definition.
URI is the Schema language definition, can be found using the link.
Bank XML Schema