|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-09-14 08:07 UTC] simonslaws at googlemail dot com
[2007-04-24 18:11 UTC] cem@php.net
[2007-06-25 08:49 UTC] cem@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 15:00:01 2025 UTC |
Description: ------------ XML elements can have and sdo name attribute to tell SDO how it should refer to the element. However SDO is writing this SDO name out as the element name when the data objects are written to XML. The resulting XML does not validate. Reproduce code: --------------- Schema <element name="RootElement34"> <complexType> <sequence> <element name="ElementWithSDOName" sdo:name="ElementWithSDONameSDOName" type="string"/> </sequence> </complexType> </element> Input XML <tns:RootElement34 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 interop34.xsd"> <ElementWithSDOName>ElementWithSDOName</ElementWithSDOName> </tns:RootElement34> Expected result: ---------------- <tns:RootElement34 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 interop34.xsd"> <ElementWithSDOName>ElementWithSDOName</ElementWithSDOName> </tns:RootElement34> Actual result: -------------- <RootElement34 xmlns="http://www.apache.org/tuscany/interop" xsi:type="RootElement34" xmlns:tns="http://www.apache.org/tuscany/interop" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <ElementWithSDONameSDOName>ElementWithSDOName</ElementWithSDONameSDOName> </RootElement34>