Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » XML Schema Definition (XSD) » XSD root element
XSD root element [message #598188] Fri, 09 June 2006 21:19
Eclipse UserFriend
Originally posted by: gaurav.mantro.gmail.com

Hi All,
Using eclipse xsd api's I am able to get a schema file (.xsd) which
represents the following
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:complexType name="Abstract"/>
<xsd:complexType name="Persistent"/>
<xsd:complexType name="Dynamic"/>
<xsd:element name="AppTool" type="Persistent"/>
<xsd:element name="AtmpColl" type="Persistent"/>
</xsd:schema>

But i would like to have a root element instead of global types etc. So
I am trying to get something like
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="Root">
<xsd:complexType name="Abstract"/>
<xsd:complexType name="Persistent"/>
<xsd:complexType name="Dynamic"/>
<xsd:element name="AppTool" type="Persistent"/>
<xsd:element name="AtmpColl" type="Persistent"/>
</xsd:element>
</xsd:schema>
Previous Topic:Problem while serializing xsd schema
Next Topic:XSD root element
Goto Forum:
  


Current Time: Fri Apr 26 05:22:32 GMT 2024

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

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

Back to the top