Hi Peter,
my schema and document were extremely simple!
I’m attaching the schema, but here is the highlight:
<xs:element name = "optAtt">
<xs:complexType>
<xs:attribute name = "myAtt" type = "xs:string" default = "this is the default value"></xs:attribute>
</xs:complexType>
</xs:element></pre><BR>I inserted the following document:<BR><pre class="ip-ubbcode-code-pre"> <?xml version="1.0" encoding="UTF-8"?>
<optAtt>
</optAtt></pre><BR>Querying the database showed the following result:<BR><pre class="ip-ubbcode-code-pre"> <xql:result>
<optAtt ino:id="1" myAtt="this is the default value" />
</xql:result>
I hope that helps!
Trevor.
optAtt.TSD (1006 Bytes)
#Tamino#API-Management#webMethods