commonj.sdo.DataObject

J

John

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.
 
G

GArlington

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...
 
J

John

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top