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
LVL 1
NTGuru705Asked:
Who is Participating?
 
DhaestConnect With a Mentor Commented:
Do you mean that you want to validate the receiving xml if it's in the right format ? If so, take a look at the following articles:

XML Validation
http://www.java2s.com/Code/VB/XML/XML-Validation.htm

Simple code to validate an XML file against a schema file (XSD)
http://www.codeproject.com/soap/Simple_XML_Validator.asp
0
 
Bob LearnedCommented:
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

0
 
NTGuru705Author Commented:
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
0
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

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

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

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

Bob
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.