Hello ,
I have the following example :
How can I create or activate a ChangeSummary (mine is always null)
I am using the following code that loads an xml file.

DataObject datagraph = *null*;

*try* {

FileInputStream stream = *new* FileInputStream(xmlFileName2);

datagraph =

XMLHelper.*INSTANCE*.load(stream).getRootObject();

} *catch* (Exception ex) {ex.printStackTrace();}

DataObject company = datagraph.getDataObject("company");

// Access the company DataObject from the "company" property of

// the root object.

DataObject rootObject = datagraph.getRootObject();

System.*out*.println("DG CHANGE SUM IS NuLL ? " + (
datagraph.getChangeSummary() == *null*));





and the xml is :



<sdo:datagraph xmlns:company="company.xsd"
xmlns:sdo="commonj.sdo">
<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>
</sdo:datagraph>

Reply via email to