php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57232 Changing namespace of open content elements
Submitted: 2006-09-14 04:46 UTC Modified: 2007-06-25 08:49 UTC
From: simonslaws at googlemail dot com Assigned:
Status: No Feedback Package: SCA_SDO (PECL)
PHP Version: 5.1.4 OS: XP
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: simonslaws at googlemail dot com
New email:
PHP Version: OS:

 

 [2006-09-14 04:46 UTC] simonslaws at googlemail dot com
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>

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-04-24 18:10 UTC] cem@php.net
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PECL.


I think you're probably describing a Tuscany problem, but there's no link in the defect and I don't see an obvious issue which corresponds. Please either add a link, or if this is a problem with the PHP extension, confirm that it still exists with the latest release.
 [2007-06-25 08:49 UTC] cem@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 27 02:01:29 2024 UTC