XSD root element [message #68328] |
Fri, 09 June 2006 21:19 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 |
Ed Merks Messages: 33217 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 |
Eclipse User |
|
|
|
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>
|
|
|
Powered by
FUDForum. Page generated in 0.07727 seconds