Any simple way for simple schema? [message #11375] |
Wed, 12 February 2003 04:48  |
Eclipse User |
|
|
|
Originally posted by: dwjang.jkdsoft.co.kr
I am developing a solution for database replication and choose XML for
communication. I got a
XML schema like...
<?xml version="1.0" ?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:annotation>
<xsd:documentation>
Database structure and content schema for XI DB Services
(DBSourceService, DBSinkService, TransformationService)
</xsd:documentation>
</xsd:annotation>
<xsd:element name = "XIDocument">
<xsd:complexType>
<xsd:sequence>
<xsd:element name = "PrimaryTable"/>
<xsd:element name = "PrimaryKeyValue"/>
<xsd:element ref = "Database" minOccurs = "0" maxOccurs = "unbounded"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name = "Database">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref = "Table" minOccurs = "0" maxOccurs = "unbounded"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name = "Table">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref = "Field" minOccurs = "0" maxOccurs = "unbounded"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name = "Field">
<xsd:complexType>
<xsd:attribute name = "Type" type = "xsd:string" use = "required"/>
<xsd:attribute name = "TypeName" type = "xsd:string" use = "required"/>
<xsd:attribute name = "Length" type = "xsd:string" use = "required"/>
<xsd:attribute name = "Precision" type = "xsd:string" use = "required"/>
<xsd:attribute name = "RowObjIndex" type = "xsd:string" use =
"required"/>
<xsd:attribute name = "Nullable" type = "xsd:string" use = "required"/>
<xsd:attribute name = "IsPrimary" type = "xsd:string" use = "required"/>
</xsd:complexType>
</xsd:element>
</xsd:schema>
I just want to make and parse only this schema.
I tried to find libraries on xml schema.
Finary I found XSD on eclips site. But, I am new to XML Schema and even I am
not good at XML.
So I feel it is so complex to learn how to deal with xml schema with XSD.
Is there any simple sample or articles for me?
Thank for reading.
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02696 seconds