all groups > dotnet xml > may 2006 >
You're in the

dotnet xml

group:

XML document and XML schema


XML document and XML schema Mike
5/29/2006 1:36:37 PM
dotnet xml:
Greetings,

We have a requirement to utilize some sort of data storage, and XML
strikes as being as viable a technology as the next one.

I have started by using the XMLSchema designer to cook up a minimal
schema to get us started.

Now I'd like to take that schema and start a new XML document based
upon the schema.

I'm somewhat of a newbie to XML when it comes to this, so I may not
even be utilizing it correctly, so please bear with me.

Is this a valid operation to do in the .NET framework? If not, how
might we generate an XML document based upon the XML schema we cooked
up?

Thanks in advance.

Regards,
Michael Powell
Re: XML document and XML schema Peter Flynn
5/29/2006 9:58:58 PM
[quoted text, click to view]

Yes, for production. But as a simple test, just open a new document
in a Schema-aware XML editor, and it should be able to create a
skeleton based on your schema. Then you can check that it's doing
all the right things in all the right places before you start to
cut any code.

Get the data model right at the beginning, and pretty much everything
else falls into place, Get it wrong, and the project is hosed before
you start.

///Peter
--
AddThis Social Bookmark Button