Hi
 
I have just started using this SDO-thing and I am very excited about it.
I am using it to analyse xml-schemas and to generate and accept data for
the given schemas.
 
I have run into something (again). Lets say I am given a simple schema
such as this:  
 
<?xml version="1.0" encoding="utf-8"?>
<schema xmlns:test="testns" xmlns="http://www.w3.org/2001/XMLSchema";
targetNamespace="testns">
  <element name="Test" type="test:TestType"/>
  <simpleType name="TestType">
    <restriction base="decimal">
      <minInclusive value="0"/>
      <maxInclusive value="13"/>
    </restriction>
  </simpleType>
</schema>

When analysing this I cannot generate a DataObject for the Test-property
because it is not a containment property.
So I figured I could just use the 'DocumentRoot' DataObject, but this
gives me XML like this, which is not valid:

<?xml version="1.0" encoding="ASCII"?>
<_20:DocumentRoot
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xmlns:_20="testns"
xsi:type="_20"><_20:Test>1</_20:Test></_20:DocumentRoot>

But what I wanted was something valid like this :

<?xml version="1.0" encoding="UTF-8"?>
<Test xmlns="testns"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>3.1415926535897932
384626433832795</Test>

Am I missing something? What would be an appropiate way to deal with
root-properties that are not containment properties?

/Chr

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to