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 #11375] Wed, 12 February 2003 09:48 Go to next message
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.
Re: Any simple way for simple schema? [message #11413 is a reply to message #11375] Wed, 12 February 2003 12:11 Go to previous message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

--------------4E92713AC84BD735FD6DCF2C
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

Hi,

All we have is the documentation available at the web site. Have you checked
those out? E.g.,

http://dev.eclipse.org/viewcvs/indextech.cgi/~checkout~/xsd- home/docs/articles/dwtpi1-scpw/index.html

There is a plugin called org.eclipse.xsd.test that has a complete working
example. And there is also the sample code in the org.eclipse.xsd plugin called
XSDPrototypicalSchema.

Unfortunately, XML Schema isn't ever going to be simple. ;-)


"
Re: Any simple way for simple schema? [message #565213 is a reply to message #11375] Wed, 12 February 2003 12:11 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
--------------4E92713AC84BD735FD6DCF2C
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

Hi,

All we have is the documentation available at the web site. Have you checked
those out? E.g.,

http://dev.eclipse.org/viewcvs/indextech.cgi/~checkout~/xsd- home/docs/articles/dwtpi1-scpw/index.html

There is a plugin called org.eclipse.xsd.test that has a complete working
example. And there is also the sample code in the org.eclipse.xsd plugin called
XSDPrototypicalSchema.

Unfortunately, XML Schema isn't ever going to be simple. ;-)


"


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Any simple way for simple schema?
Next Topic:Help me plz...
Goto Forum:
  


Current Time: Fri Mar 29 01:25:50 GMT 2024

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

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

Back to the top