Generate an XML in Java using an XML Schema

Discussion in 'Java' started by vmtigno@yahoo.com, Apr 18, 2006.

  1. Guest

    Hi,
    Is it possible to create an XML in Java using an XML Schema? Is the XML
    Schema just for validation?

    Thanks!
    V
    , Apr 18, 2006
    #1
    1. Advertising

  2. Oliver Wong Guest

    <> wrote in message
    news:...
    > 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
    Oliver Wong, Apr 18, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Raj
    Replies:
    0
    Views:
    2,610
  2. Markus
    Replies:
    1
    Views:
    1,522
    Markus
    Nov 23, 2005
  3. Replies:
    1
    Views:
    559
    James McGill
    Apr 18, 2006
  4. Stanimir Stamenkov
    Replies:
    3
    Views:
    1,245
    Stanimir Stamenkov
    Apr 25, 2005
  5. Matt
    Replies:
    3
    Views:
    339
    Bob Barrows [MVP]
    Apr 23, 2004
Loading...

Share This Page