You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@xmlbeans.apache.org by Or...@emc.com on 2007/12/05 11:17:24 UTC
Writing portions of an xml file
Is there a way of writing just a portion of the xml?
For example I want a piece that contains several tags, and also without
any start/end tags.
Thanks
Daniel Or
Re: Writing portions of an xml file
Posted by Jacob Danner <ja...@gmail.com>.
XmlObject has a method save(...) on it. Any of the types you define in your
xsd should be based off of XmlObject and allow you to save.
<purchaseOrder>
<name/>
<items >
<item />
<item />
</items>
</purchaseOrder>
if your instance was something like above, you could call
PurchaseOrderDocument.getItems().save(...) (or something to that effect)
and save out pieces of your xml instance.
Have you tried just increasing the mem size for java when you run your code?
-jacobd
On Dec 5, 2007 2:17 AM, <Or...@emc.com> wrote:
> Is there a way of writing just a portion of the xml?
> For example I want a piece that contains several tags, and also without
> any start/end tags.
>
> Thanks
>
>
> Daniel Or
>
RE: Writing portions of an xml file
Posted by Wing Yew Poon <wp...@bea.com>.
Are you referring to writing an xml-fragment?
If you have an XmlObject, not the document, but a child object, you can
certainly save it, and it would be marshalled as an xml-fragment.
- Wing Yew
________________________________
From: Or_Daniel@emc.com [mailto:Or_Daniel@emc.com]
Sent: Wednesday, December 05, 2007 2:17 AM
To: user@xmlbeans.apache.org
Subject: Writing portions of an xml file
Is there a way of writing just a portion of the xml?
For example I want a piece that contains several tags, and also without
any start/end tags.
Thanks
Daniel Or
Notice: This email message, together with any attachments, may contain information of BEA Systems, Inc., its subsidiaries and affiliated entities, that may be confidential, proprietary, copyrighted and/or legally privileged, and is intended solely for the use of the individual or entity named in this message. If you are not the intended recipient, and have received this message in error, please immediately return this by email and then delete it.