Hello friends. I'm wondering if anyone has any insight that could help me
suppress the leading "<?xml version="1.0" encoding="UTF-8" standalone
="yes"?>" tag that comes out at marshall time.
Essentially I'm looking at a situation where I need to generate a rather
lengthy XML document representing thousands of accounts. I worry about
memory usage trying to create a DOM/JDOM/JAXB generated object representing
such a large document. It occurred to me, however, that there was nothing
keeping me from opening a file writer, writing out my prologue, and then
creating a jaxb style object for each account and appending that
information to my output file in sequence, thus allowing me to keep my
memory footprint small while creating a large file. But, in order to
create a well formed object, I need to strip out the leading XML, otherwise
I'd have something that looks like this:
<? xml version="1.0"?>
<accountUpdates>
<xml version="1.0">
<accountInfo>
<address>....
</accountInfo>
<xml version="1.0">
.....
</accountUpdates>
Any and all guidance is greatly appreciated!
brian
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
For additional commands, e-mail: users-help_at_jaxb.dev.java.net