Praveen,
You
can use XML-SPY to create a sample xml from a schema. You can use the
following to validate an XML against a
schema
-
xerces
validation programmatically
-
XML-SPY
Cheers,
Vishal
-----Original
Message-----
From: Praveen
Peddi [mailto:[EMAIL PROTECTED]
Sent: Monday, February 24, 2003 11:13
AM
To: [EMAIL PROTECTED]
Subject: extensible metadata
schema
Hi
all,
I
work for a company that does an asset metadata integration from different
content management systems. We currently have an extensible schema where one
can add/remove metadata fields in the schema on the fly. Now my problem is
to take the input (mostly name value pairs) from any client and build the
xml document which should be valid against the schema. Since the schema is
fully extensible, the system doesn't know about it in advance.
Now,
my question is whats the best way to build the xml document from the input,
that should be valid against the schema. Is there a better way where I can
parse the schema and build the xml document based on
that.
Is
there any API available to parse the schema and understand the schema
attributes etc...
Praveen