Link to home
Start Free TrialLog in
Avatar of NTGuru705
NTGuru705Flag for United States of America

asked on

Develop a XML Schema - VB.net 2005

I am looking to design a webservice that will take in an XML document and generate an order based on this document.  My question is how does one typically go about designing the schema for this XML document.  Are these things typically coded by hand or are there tools to help me with this.  I will essentially pull the document in and then based on tthe loops I find in the document I will run some procs to generate orders and then return a class back to the user.

Any tips on how to layout the schema would be appreciated.. .

I will be developing in VS.2005.

Thanks
Avatar of Bob Learned
Bob Learned
Flag of United States of America image

You can use the XSD inference utility to generate a schema from an XML document:

Using the XSD Inference Utility
http://msdn2.microsoft.com/en-us/library/Aa302302.aspx

Bob

ASKER CERTIFIED SOLUTION
Avatar of Dirk Haest
Dirk Haest
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of NTGuru705

ASKER

Nope.. I mean you are going to write a method called CreateOrder and it will take an XML document as a parameter..

From this XML document you will generate the orders... The document does not exist and the process does not exists.. I know what fields I need and I know how they relate but is my only option here to generate this schema by hand?  I dont have an XML document yet.. I am just getting started.

Thanks
You can generate the XML document as you want, and then infer the schema from the document.

Bob
ahh crud... ok thanks.. just didnt know if there was a tool out there that aided in this process

thanks
To infer the schema from the document I would do what now?
; )
Thanks
xsd document.xml /l:VB

Bob