Wednesday, January 20, 2010

Week -13 XML Schema

Quick Question
01. Different between simple type and complex type
In XML Schema, the difference is between complex types which allow child elements in their content and may contain attributes, and simple types which cannot contain child elements and cannot contain any attributes.

02. XML Scema
This speciel language is called as XML Schema Language and here we dont need to learn a
03. Types
String datatypes
normalizedString
token
Integer

Longer Question
01. <”xs:schema xmlns:xs=http://www.w3.org/2001/xmlSchema”>
xmlns:xs – XML way to define the namespace
http://www.w3.org - A URL which uniquily idenfies.
xmlSchema – there is a corresponding end tag
at the end of the document

02. XML Schema for the bank transcetion appllication
a)



b) Payment_doc –
c)












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>