Re: commonj.sdo.DataObject
- From: John <johnrevans@xxxxxxxxxx>
- Date: Fri, 24 Oct 2008 07:41:25 -0700 (PDT)
On Oct 24, 9:51 am, GArlington <garling...@xxxxxxxxxxxxx> wrote:
On Oct 23, 9:41 pm, John <johnrev...@xxxxxxxxxx> wrote:
I have a data object that I need to update, but can't figure out how
this works. I have a data object that contains XML and I need to just
update the XML data and return the Data object. Can someone please
provide me a snippet of code on how this is done.
Is it a Java (data) object?
Then you should know what methods it has, something like setXML()? Use
that method to set/update XML and return your data object...
Is it XML string?
Just change it...
What I need to do is manipulate that DataObject and return it. I’m
having trouble understanding how to remove entries from the object so
I can add new ones. So as an example:
<company:company name="ACME" employeeOfTheMonth="E0002">
<departments name="Advanced Technologies" location="NY"
number="123">
<employees name="John Jones" SN="E0001"/>
<employees name="Mary Smith" SN="E0002" manager="true"/>
<employees name="Jane Doe" SN="E0003"/>
</departments>
</company:company>
I want to remove all the employees and add new ones. This will be done
in java. I'm new to java so please bare with me.
Thanks,
John
.
- References:
- commonj.sdo.DataObject
- From: John
- Re: commonj.sdo.DataObject
- From: GArlington
- commonj.sdo.DataObject
- Prev by Date: Re: Java Profiler
- Next by Date: Re: how to get a digital certificate
- Previous by thread: Re: commonj.sdo.DataObject
- Next by thread: java tools to support agile story cards and issue tracking
- Index(es):
Relevant Pages
|