Re: commonj.sdo.DataObject



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
.



Relevant Pages

  • Re: commonj.sdo.DataObject
    ... I have a data object that contains XML and I need to just ... that method to set/update XML and return your data object... ... Is it XML string? ...
    (comp.lang.java.programmer)
  • TXMLDocument and TTreeView
    ... contents of an XML file. ... again by accessing the Data object, but I can't work out how to do it. ... iNode:= tn.Data^ as IXMLNode; ... I guess this is something to do with the fact that IXMLNode is an ...
    (alt.comp.lang.borland-delphi)
  • Re: Beginner with Questions re: WPF, WCF, LINQ
    ... but the frontend will create a data object from the XML automagically. ... It will actually be XML data, following Microsoft's diffgram XML schema, but for all intents and purposes, it is a dataset. ... The client can call the method that returns a dataset, perhaps passing some parameter values, and assign the return value to a dataset variable. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Beginner with Questions re: WPF, WCF, LINQ
    ... Dave wrote: ... but the frontend will create a data object from the XML automagically. ... It will actually be XML ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: application communication in xml without webservices?
    ... Java tools that work well with services designed to use cross-platform data ... elements that fall into the intersection of the .NET, Java and XML Schema ... >- webservices remove some of the complexity out of communicating ... >> that standardize how you'll use HTTP so that others who follow in your ...
    (microsoft.public.dotnet.framework.aspnet.webservices)