[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Need to create an XSD


why need xsd
Hi,

First time poster in this group... been looking for an xml group without
success on yahoo and I saw this one when googling. 

I just started doing webservices and been learning it as I go along. My
problem is:

I need to create a schema where I need an xml tag to have zero elements up
to  a set of complexe elements depending on the application.

Currently my XSD definition of this <rpt> node is defined as:

<xs:complexType name="rpt">

            <xs:sequence>

                        <xs:element ref="anotherxmlset"/>

            </xs:sequence>

</xs:complexType>

 

However, the <xmlrpt>.. </xmlrpt> schema is unknown to me at since it
results from a request to another 3rd party external service. Which gives me
an xml file which I would like to include in the results into my webservice
output xml. This is also optional, because sometimes I may get the report
<xmlrpt></xmlrpt> in this case it should be embedded. Otherwise, the <rpt>
section should be blank. Can somebody give me a sample xsd that describes
what I want to do? 

 

Thanks

 

Example of the expected output:

 

<root>

<app>

<appid>1001</appid>

<name>John Doe</name>

</app>

<rpt>

<anotherxmlset>


            <xmlrpt> <!-- Begin: This tag is from the 3rd party xml //-->

                        : 

            </xmlrpt> <!-- End: This tag is from the 3rd party xml 


</anotherxmlset>

</rpt>

</root>



PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.