|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2006-09-14 05:01 UTC] simonslaws at googlemail dot com
Description:
------------
By accident I created an invalid non containment reference in an XML input file. SDO read it without complaint but did write the referencing attribute out again.
Reproduce code:
---------------
Schema
<complexType name="ComplexTypeOppositePropertyTestType">
<sequence>
</sequence>
<attribute name="AttributeWithSDOPropertyType" type="IDREF" sdo:propertyType="tns:ComplexTypeAttributesTestType"/>
</complexType>
<element name="RootElement32">
<complexType>
<sequence>
<element name="ComplexTypeOppositePropertyTest" type="tns:ComplexTypeOppositePropertyTestType"/>
</sequence>
</complexType>
</element>
Input
<tns:RootElement32 xmlns:tns="http://www.apache.org/tuscany/interop"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.apache.org/tuscany/interop interop32.xsd">
<ComplexTypeOppositePropertyTest AttributeWithSDOPropertyType="idvalue0" />
</tns:RootElement32>
Expected result:
----------------
I'm not sure that the actual result is incorrect but if it is we should print a message from SDO saying that it tried to read an invalid non containment relationship
Actual result:
--------------
<RootElement32 xmlns="http://www.apache.org/tuscany/interop" xsi:type="RootElement32" xmlns:tns="http://www.apache.org/tuscany/interop" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ComplexTypeOppositePropertyTest/>
</RootElement32>
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 09 02:00:01 2025 UTC |
Also applies to elements representing containment relationships: <element name="ElementOfSimpleTypeWithSDOPropertyType" type="IDREF" sdo:propertyType="tns:SimpleTypeWithNameType"/>