|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-04-24 18:10 UTC] cem@php.net
[2007-06-25 08:49 UTC] cem@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 02:00:01 2025 UTC |
Description: ------------ Open content elements read in from an XML file and back out again appear to have their namespace changed. Reproduce code: --------------- Schema <complexType name="ComplexTypeOpenContentType"> <sequence> <any namespace="##any"/> </sequence> </complexType> <element name="RootElement30"> <complexType> <sequence> <element name="ComplexTypeOpenContent" type="tns:ComplexTypeOpenContentType"/> </sequence> </complexType> </element> Input XML <RootElement30 xmlns="http://www.apache.org/tuscany/interop" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.apache.org/tuscany/interop interop30.xsd"> <ComplexTypeOpenContent> <ComplexTypeWithMixed> Some Mixed <SimpleTypeWithName>SimpleTypeWithName</SimpleTypeWithName> Content </ComplexTypeWithMixed> </ComplexTypeOpenContent> </RootElement30> Expected result: ---------------- <RootElement30 xmlns="http://www.apache.org/tuscany/interop" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.apache.org/tuscany/interop interop30.xsd"> <ComplexTypeOpenContent> <ComplexTypeWithMixed> Some Mixed <SimpleTypeWithName>SimpleTypeWithName</SimpleTypeWithName> Content </ComplexTypeWithMixed> </ComplexTypeOpenContent> </RootElement30> Actual result: -------------- <RootElement30 xmlns="http://www.apache.org/tuscany/interop" xsi:type="RootElement30" xmlns:tns2="commonj.sdo" xmlns:tns="http://www.apache.org/tuscany/interop" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <ComplexTypeOpenContent> <tns2:ComplexTypeWithMixed xsi:type="OpenDataObject"> Some Mixed <tns2:SimpleTypeWithName xsi:type="OpenDataObject">SimpleTypeWithName</tns2:SimpleTypeWithName> Content </tns2:ComplexTypeWithMixed> </ComplexTypeOpenContent> </RootElement30>