castor mapping with two root elements

Discussion in 'Java' started by prittz, Jul 5, 2007.

  1. prittz

    prittz Guest

    Hi,

    I want to generate an XML file from java bean,

    I am able to generate the whole file as I want except the root
    elements.

    I want to root elments in my XML file with namespaces in it.

    Below is example to XML required:

    <?xml version="1.0" encoding="UTF-8"?>
    <xdp:xdp timeStamp="2006-05-15T14:05:42Z" uuid="55b477a5-6282-474e-
    a271-47617cb91aa8" xmlns:xdp="http://ns.adobe.com/xdp/">
    <xfa:datasets xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/">
    <xfa:data>
    <form1>
    <Address>India</Address>
    <FirstName>AA</FirstName>
    <Zipcode>00</Zipcode>
    </form1>
    </xfa:data>
    </xfa:datasets>
    </xdp:xdp>

    I am able to generate the above format except the
    <xdp:xdp ............. which needs to wrap all the elements.
    prittz, Jul 5, 2007
    #1
    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. D L.Strang
    Replies:
    0
    Views:
    553
    D L.Strang
    Jul 9, 2003
  2. Ajay Singh Tomar

    Castor File Mapping ???

    Ajay Singh Tomar, Jan 19, 2004, in forum: Java
    Replies:
    0
    Views:
    429
    Ajay Singh Tomar
    Jan 19, 2004
  3. Chris
    Replies:
    0
    Views:
    398
    Chris
    Feb 26, 2004
  4. Sam Hwang
    Replies:
    0
    Views:
    622
    Sam Hwang
    Apr 26, 2005
  5. Chris
    Replies:
    0
    Views:
    446
    Chris
    Feb 26, 2004
Loading...

Share This Page