471,088 Members | 1,287 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,088 software developers and data experts.

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>
</Sales Order>
<Sales Order>
</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
1 1380
692 Expert 512MB

Plase refer


There is information for both your questions.

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 Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.