From: Wolfgang Laun <wolfgang.laun_at_gmail.com>
Date: Thu, 18 Nov 2010 11:43:38 +0100
There's a simple and dirty way by marshalling to a (java.io) stream and
write whatever you need, before and after. (Use the Marshaller property
jaxb.fragment to avoid getting the XML header in between.)
On 18 November 2010 10:41, ennidhi <psatishbabu_at_hotmail.com> wrote:
>
> I have successfully generated a XML file based on the XSD. I want to add
> another tag to my generated XML which is not the part of the XSD. Its like
> adding my whole xml inside a new tag. Is there a way to achieve it?
> http://old.nabble.com/file/p30239939/User_10111723083878.xml > User_10111723083878.xml
>
>
> to this xml, I want to add as the parent element "<addRequest
> targetID="BottomLineTarget" executionMode="asynchronous"
> xmlns="urn:oasis:names:tc:SPML:2:0">
> <data>" and close it at the bottom of the xml.
>
> Is it possible?
> --
> View this message in context:
> http://old.nabble.com/JAXB---Needs-to-add-header-tag-and-close-the-header-tag-at-the-bottom-tp30239939p30239939.html > Sent from the java.net - jaxb users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
> For additional commands, e-mail: users-help_at_jaxb.dev.java.net
>
>