Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » XML Schema Definition (XSD) » Any simple way for simple schema?
Any simple way for simple schema? [message #565177] Wed, 12 February 2003 09:48
Eclipse UserFriend
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.
Previous Topic:Running XSD in Eclipse 2.1 M5
Next Topic:Any simple way for simple schema?
Goto Forum:
  


Current Time: Fri Mar 29 02:37:59 GMT 2024

Powered by FUDForum. Page generated in 0.03385 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top