467,905 Members | 1,887 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,905 developers. It's quick & easy.

URGENT HELP needed in creating xml from xsd schema

Hi all, I need urgent help with an xml issue. Let me explain the scenario:
My VB.NET app needs to read an xml (e.g. Sales Orders). This xml contains say 10 sales orders. Next the app needs to split the original xml into 10 individual SalesOrder xml files, each file containing a single sales order. The xml files created must be created based on a set xsd schema.See example below:
Here I have 2 sales orders in my original xml, I want to create 1 xml file for each Sales order.
e.g. <Sales Order>
<DocNum>"1234"</DocNum>
<ItemCode>"321"</ItemCode>
<DocDate>20070215</DocDate>
<Qty>1</Qty>
<Amount>$1500.00</Amount>
</Sales Order>
<Sales Order>
<DocNum>"1234"</DocNum>
<ItemCode>"321"</ItemCode>
<DocDate>20070215</DocDate>
<Qty>1</Qty>
<Amount>$1500.00</Amount>
</Sales Order>

Here are list of my issues:
1) Easier way to extract individual SalesOrders from the original xml: I can extract the inner text of all e.g. "DocNum" nodes in the original xml etc, but there must an easier way to extract all the childnodes inner text per SalesOrder node. (i.o.w. DocNum,ItemCode,DocDate,Qty,Amount together)

2) How to write the extracted xml information into an xml file based on a provided xsd file/schema.

I've been strugling for a week to find clear information on this and have been unsuccesfull thus far.
Any help would be greatly appreciated!
Thank you for your time
Feb 15 '07 #1
  • viewed: 1282
Share:
1 Reply
shweta123
Expert 512MB
Hi,

Plase refer

this

There is information for both your questions.

Shweta
Feb 15 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

3 posts views Thread by Kiran | last post: by
3 posts views Thread by Sindarian | last post: by
3 posts views Thread by N. Spiker | last post: by
1 post views Thread by kwartz | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.