Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Generate an XML in Java using an XML Schema

Reply
Thread Tools

Generate an XML in Java using an XML Schema

 
 
vmtigno@yahoo.com
Guest
Posts: n/a
 
      04-18-2006
Hi,
Is it possible to create an XML in Java using an XML Schema? Is the XML
Schema just for validation?

Thanks!
V

 
Reply With Quote
 
 
 
 
Oliver Wong
Guest
Posts: n/a
 
      04-18-2006
<(E-Mail Removed)> wrote in message
news:(E-Mail Removed) ups.com...
> Hi,
> 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.

- Oliver

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
web.xml / XML schema issue, why do some XML schema attributes disappear asciz@starmail.com Java 3 02-20-2007 09:56 AM
Generate an XML in Java using an XML Schema vmtigno@yahoo.com Java 1 04-18-2006 06:02 PM
[XML Schema] Including a schema document with absent target namespace to a schema with specified target namespace Stanimir Stamenkov XML 3 04-25-2005 09:59 AM
ASP XML Support - Generate XML string from FORM DATA based on XML schema Matt ASP General 3 04-23-2004 07:12 PM
How to generate xml using a xml schema in java? Raj Java 0 09-12-2003 10:03 PM



Advertisments