There is some change in SDO around XMLHelper.save(DO, uri, elementname) - I
could not locate
which SDO JIRA it is, but due to this, when the query result from DAS are
saved into String using
XMLHelper.save() - all ones that used to be attributes are now elements.

e.g.
OLD:
<?xml version='1.0' encoding='ISO-8859-1' ?>
<root  xmlns:das='http://org.apache.tuscany.das.rdb/config.xsd' xmlns:xsi='
http://www.w3.org/2001/XMLSchema-instance'>
<das:DataGraphRoot>
<COMPANY ID='10' NAME='ACME10 Publishing'>
</COMPANY>
</das:DataGraphRoot>
</root>

NEW:
<?xml version='1.0' encoding='ISO-8859-1' ?>
<root  xmlns:das='http://org.apache.tuscany.das.rdb/config.xsd' xmlns:xsi='
http://www.w3.org/2001/XMLSchema-instance'>
<das:DataGraphRoot>
<COMPANY>
 <ID>10</ID>
 <NAME>ACME10 Publishing</NAME>
</COMPANY>
</das:DataGraphRoot>
</root>

In sample-ajax-das:-
to take into account this change in xml serialization,
1)all the XSLs used had to change and
2) also the htmlunit test case code where attributes where referred in
asserts had to change to referring to corresponding  elements.

With 1) and 2)  , now sample-ajax-das is working as web sample as well as
all htmlunit test cases are succeeding

In companyweb sample:-
There are no changes required, and it is working as web sample and in
htmlunit cases.

I have created a patch for this and will attach to JIRA when I can access
the site.

Regards,
Amita

Reply via email to