Great solution, Robert.
Thank you!
Brian
"Robert Lowe"
<rmlowe_at_rmlowe.co To: <users_at_jaxb.dev.java.net>
m> cc:
Subject: RE: suppressing leading <? xml version="1.0" ?>
06/23/2004 11:46
AM
Please respond to
users
http://java.sun.com/webservices/docs/1.3/jaxb/vendorProperties.html#xmldecl
-----Original Message-----
From: Brian.Scott_at_mainline.com [mailto:Brian.Scott_at_mainline.com]
Sent: 23 June 2004 22:55
To: users_at_jaxb.dev.java.net
Subject: suppressing leading <? xml version="1.0" ?>
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
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
For additional commands, e-mail: users-help_at_jaxb.dev.java.net
This e-mail and files transmitted with it are confidential, and are
intended solely for the use of the individual or entity to whom this e-mail
is addressed. If you are not the intended recipient, or the employee or
agent responsible to deliver it to the intended recipient, you are hereby
notified that any dissemination, distribution or copying of this
communication is strictly prohibited. If you are not one of the named
recipient(s) or otherwise have reason to believe that you received this
message in error, please immediately notify sender by e-mail, and destroy
the original message. Thank You.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
For additional commands, e-mail: users-help_at_jaxb.dev.java.net