Title: Message
You can use XmlOptions.setSaveInner() to tell XmlBeans to save just the content of an element, but there is nothing to further control which one of the open/close tags gets generated, that would be too far from well-formed XML....
 
Radu
 
-----Original Message-----
From: Slusser, Ted [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 11, 2006 10:11 AM
To: [email protected]
Subject: Writing out a large document in fragments

Hello,

 

I’d like to read data from some source and write out a single large XML document.  I want to write out the elements as they are being processed.  The problem I am running into is that I have to write the root elements “by-hand” and then write the XmlObject using the xmlText to convert it to a string.  When writing the root element I have to hard-code the namespaces, etc.  Is there some way to tell XML beans that I want to write an opening tag of a document but not the closing tag?

 

Thanks,

 

Ted Slusser

 

The information in this electronic mail message is Cendant Confidential and may be legally privileged. It is intended solely for the addressee(s). Access to this Internet electronic mail message by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it is prohibited and may be unlawful.

The sender believes that this E-mail and any attachments were free of any virus, worm, Trojan horse, and/or malicious code when sent. This message and its attachments could have been infected during transmission. By reading this message and opening any attachments, the recipient accepts full responsibility for taking protective and remedial action about viruses and other defects. Progeny Marketing Innovations and Long Term Preferred Care, Inc. are not liable for any loss or damage arising in any way from this message or its attachments.

Reply via email to