Generate an XML in Java using an XML Schema
Is it possible to create an XML in Java using an XML Schema? Is the XML
Schema just for validation?
Re: Generate an XML in Java using an XML Schema
<email@example.com> wrote in message
> Is it possible to create an XML in Java using an XML Schema? Is the XML
> Schema just for validation?
The question isn't entirely clear to me. What you can do is assist the
user in creating an XML file, essentially by continuously validating
whatever they type against the schema. Another possibility is to analyze the
schema, and then generate a minimal XML file that validates against it. The
XML Schema is *itself* an XML file, so you can "create" an XML document
simply by cloning the XML schema file itself, though there's no guarantee
this "resulting" document will validate against that Schema.
|All times are GMT. The time now is 09:25 PM.|
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.