Wednesday, January 20, 2010

Week -13 XML Schema

Week – 14
Qucik Question

01. to access the parts of the document. JS and other suitable language can search for and locate many different aspect.

02. In OOP, an object is a self contained portion of a program that possesses properties and methods. So you would expect each of the components of the XML document, after it has been converted into DOM, to possess properties and methods.

03. JAVA, PERLS and PYTHON langauage supports for DOM manipulations. Key charecteristics is that such langauge are object-oriented.

Longer Question
01.
a)
?xml version ="1.0" encoding="UTF-8">
xs:schema xmlna:xs="http://www,w3.org/2001/XMLSchema">

b)


c)
xs:element name=”payment-doc” type=”electronic_payment_type>
xs:element>
xs:comlex type name=”electronic_payment_type”>
xs:sequence>
xs:element name=”Sender” type=”institution_type”/>
xs:element name=”Receiver” type=”institution_type”/>
xs:element name=”Transection” type=”transection_type” maxOccurs=”unbounded”/>
/xs:sequence>
/xs:complexType>

d)




e)
xs:complexType name=”transection_type”
xs:all>
xs:slement name=”number” type=”xs:integer”/>
xs:element name=”amount”>
xs:simpleType>
xs:restrcition base=”xs:decimal”>
xs:fractionDigits value”2”>
/xs:restriction>

xs:element name=”date” type=”xs:”>





xs:element name=”recounciled” type=”xs:boolean”>
/xs:all>

No comments:

Post a Comment