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 #68328] Fri, 09 June 2006 21:19 Go to next message
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>
Re: XSD root element [message #68340 is a reply to message #68328] Fri, 09 June 2006 22:01 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Gaurav,

I can't provide schema 101 help. It's best to read some introductory
schema information to understand how best to satisfy your needs.


Gaurav Mantro wrote:
> 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>
Re: XSD root element [message #68350 is a reply to message #68340] Fri, 09 June 2006 22:07 Go to previous message
Eclipse UserFriend
Originally posted by: gaurav.mantro.gmail.com

Ed,
Basically I was looking for API's to facilitate similar work.
But thanks for your feedback.

regards
Gaurav

Ed Merks wrote:
> Gaurav,
>
> I can't provide schema 101 help. It's best to read some introductory
> schema information to understand how best to satisfy your needs.
>
>
> Gaurav Mantro wrote:
>> 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>
Re: XSD root element [message #598193 is a reply to message #68328] Fri, 09 June 2006 22:01 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33133
Registered: July 2009
Senior Member
Gaurav,

I can't provide schema 101 help. It's best to read some introductory
schema information to understand how best to satisfy your needs.


Gaurav Mantro wrote:
> 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>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: XSD root element [message #598200 is a reply to message #68340] Fri, 09 June 2006 22:07 Go to previous message
Eclipse UserFriend
Originally posted by: gaurav.mantro.gmail.com

Ed,
Basically I was looking for API's to facilitate similar work.
But thanks for your feedback.

regards
Gaurav

Ed Merks wrote:
> Gaurav,
>
> I can't provide schema 101 help. It's best to read some introductory
> schema information to understand how best to satisfy your needs.
>
>
> Gaurav Mantro wrote:
>> 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:XSD root element
Next Topic:Extension to XSD?
Goto Forum:
  


Current Time: Tue Apr 16 20:07:38 GMT 2024

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

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

Back to the top