I don't know if there is an explicit way of doing this but one approach
is to explicitly call startDocument, then append your string to the
writer, then call the marshalDocument method that doesn't do the XML
declaration. It's not ideal but it does save having to perform a string
insert.
________________________________
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Andrey
Chorniy
Sent: 27 March 2008 16:33
To: [email protected]
Subject: [jibx-users] How to add <?some-text?> after <?xml ?> header
I'm building integration with external system via XML, and want to use
Jibx to marshall my objects to XML.
I have to have following xml-strucure which have <?pf_command
version="1.0"?> after <?xml version="1.0"?> header
How I can do that with JIBX, the only way I can imagine now - is to save
xml to String and insert <?pf_command version="1.0"?> manually after
first line
Example XML
<?xml version="1.0"?>
<?pf_command version="1.0"?>
<pfjob:job_command xmlns:pfjob="http://www.pageflex.com/schemas"
name="CancelJob">
<pfjob:job_variables>
<pfjob:var name="_sys_TransactionID">A0000033</pfjob:var>
</pfjob:job_variables>
</pfjob:job_command>
--
Best Regards,
Andrey Chorniy
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
jibx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users