Me and some partners are together going to construct a XML-format for storing data. New datatypes will come in the future so the XML-tags will grow. Are there a common way for all of us to handle the way to build up valid documents.
Like tgreer says. You normally write a XSD first, which describes how your XML documents should look (structure, datatypes, etc). Later, when you receive one of these documents (from a business partner, or even at the method level within your code), you would use the XSD to make sure the XML you received is valid.
Chip H.
If you want to get the best response to a question, please check out FAQ222-2244 first
Yes. And they are more difficult. They have to be, since they supply the rigorous, exact model of the contents of the XML.
There are tools that will generate a schema for you, based on an XML file. The schema won't be right, but it will give you a basic starting point which you can then refine.
I'm fortunate enough to work for a company that provides good development tools, so I use Visual Studio.NET 2003, which has a schema designer built-in.
I'm in same position. .NET seems to take my company (Ceco AB in SWE) in "production" in a short future.
I've worked with Visual Studio in a couple of months now and realy like to use it for this.
You can start by opening an XML file in Visual Studio. There will be a menu item called "XML". Under that menu are options, and one of them is "Create Schema" (or words to that affect, I don't have VS open now).
That will create a schema for you, and open it in the Visual Schema editor. What I usually do then is to save the file, and open the schema file in a text editor. There, I can establish any min/max values, etc.
XML data format is omnipresent these days. You probably come across XML in your quotidian development tasks more or less frequently. But unless you are really drawn in it, you are hardly to be an expert in all of the innumerable XML standards out there. For example, take a look at XSD schema format. You may know that XSD allows you to specify the schema of an XML file that is a data container. But how you can create the XSD schema?
XMLFox offers free and graphical answers to that question. XMLFox is an XML editing and validation tool for creating valid, well-formed XML documents and/or XSD Schema. It includes an XML View, XML Tree, XML Grid, and XML Script modes for editing, as well as extensive find capabilities for text and XML data. Additional features include XML and Schema Validation, standard editing features, XSD Schema building and more.
XMLStick - Do you have any affiliation with XMLFox?
Chip H.
____________________________________________________________________ Click here to learn Ways to help with Tsunami Relief If you want to get the best response to a question, please read FAQ222-2244 first
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.