This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Web Services and the fly likes XSD from this XML Instance Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "XSD from this XML Instance" Watch "XSD from this XML Instance" New topic
Author

XSD from this XML Instance

Richard Butterwood
Ranch Hand

Joined: Nov 07, 2005
Posts: 45
Hi,

Can someone help me with the XSD of the following XML instance?

<?xml version="1.0" encoding="UTF-8"?>
<ResponseBatch xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://infor.com/FactsResponseBatch"
ConsumerKey="1234"
Language="English"
DateTime="today"
SerialID="0011111">
<Response xmlns="http://infor.com/FactsItemBalance" RequestID="CustomerItemNumber" SerialID="54321" Company="12">
<Warehouses>
<Warehouse>
...............
</Warehouse>
</Warehouses>

</Response>

<Response xmlns="http://infor.com/FactsCodes" RequestID="Codes" SerialID="54321" Company="12">
<Codes>
<Code>
</Code>
</Codes>

</Response>
</ResponseBatch>

Basically I want to have multiple Response elements with different elements inside. I thought this would be possible with different namespaces?

Any clues?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: XSD from this XML Instance
 
Similar Threads
How to use elementFormDefault and attributeFormDefault?
Scripting Invalid
XML Beans - Not retrieving Attributes with a Namespace
XML Beans - Help!
Attributes v's Elements