I think you have hit the same problem as another user reported today.  I
guess your root is embedded in a DataGraph, yes?  If so then you have hit
the issue described in https://issues.apache.org/jira/browse/TUSCANY-1421.

Regards, Kelvin.

On 04/07/07, litaojian <[EMAIL PROTECTED]> wrote:

Hi All ,

        I write sample to test the das , when I get a root DataObject from
a DAS-RDB command ,
I use the follow code to output a xml string of the root DataObject .

String uri = companyDO.getType().getURI();
String typeName = companyDO.getType().getName();
System.out.println(XMLHelper.INSTANCE.save(root, "commonj.sdo",
"dataObject"));

but the output is

<das:COMPANY xmlns:das="http:///org.apache.tuscany.das.rdb/das"; href="
root.xml#/"/>


This result is not as my expected .

I need the result as this

<?xml version="1.0" encoding="ASCII"?>
<das:COMPANY xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xmlns:das="http:///org.apache.tuscany.das.rdb/das";
xsi:type="das:DataGraphRoot">
  <COMPANY ID="1" NAME="IBM" EOTMID="88"/>
  <COMPANY ID="2" NAME="HP" EOTMID="99"/>
</das:COMPANY>


Response expected.





litaojian
2007-07-04

Reply via email to