This week's book giveaway is in the Flex forum.
We're giving away four copies of Flex 4 in Action and have Tariq Ahmed, Dan Orlando, John C. Bland II & Joel Hooks on-line!
See this thread for details.
[Logo] JavaRanch » JavaRanch Saloon
  Search | FAQ | Recent Topics | Hot Topics
Register / Login


Win a copy of Flex 4 in Action this week in the Flex forum!
Reply Bookmark it! Watch this topic JavaRanch » Forums » Engineering » XML and Related Technologies
 
RSS feed
 
New topic
Author

need help in XSD.

Nitesh Sakargayan
Greenhorn

Joined: Jan 15, 2010
Messages: 5

Hi,

I am a newbie in xsd.
I want to construct xsd for following xml format.

<a>
<b>some text<b/>
<c>some int<c/>
<d>some decimal<d/>
</a>

the main thing is that the xsd should allow <b>,<c> and <d> in any order with more than one occurrence of tag <d>.

thanks in advance.

-Nitesh


This message was edited 1 time. Last update was at by Nitesh Sakargayan

Juraj Somorovsky
Greenhorn

Joined: Feb 04, 2010
Messages: 1

Hi Nitesh,

There is the XSD schema:



The solution has one constraint: The <d> element cannot be used as a first element in <a>.
I don't know if it could be solved better, this is the best solution I've found.

However, I hope it will help you.

Juraj
Nitesh Sakargayan
Greenhorn

Joined: Jan 15, 2010
Messages: 5

Thanks Juraj.

It worked....
Thanks again.

-
Nitesh
 
 
 
Reply Bookmark it! Watch this topic JavaRanch » Forums » Engineering » XML and Related Technologies
 
RSS feed
 
New topic
JProfiler
Get rid of your performance problems and memory leaks!

.