[
https://issues.apache.org/jira/browse/TUSCANY-2041?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12567999#action_12567999
]
Pete Robbins commented on TUSCANY-2041:
---------------------------------------
I checked in a fix for this into the branch. If you could test it out, and it
works ok, I'll create a patch for HEAD as well
> Repeated nill elements of extended type cause "Parser found unknown element"
> exception
> --------------------------------------------------------------------------------------
>
> Key: TUSCANY-2041
> URL: https://issues.apache.org/jira/browse/TUSCANY-2041
> Project: Tuscany
> Issue Type: Bug
> Components: C++ SDO
> Affects Versions: Cpp-Next
> Environment: XP SP2, VC7
> Reporter: Simon Laws
> Assignee: Pete Robbins
> Fix For: Cpp-Next
>
>
> With the schema
> <schema xmlns="http://www.w3.org/2001/XMLSchema"
> targetNamespace="http://www.example.org/AnnonTypes"
> xmlns:tns="http://www.example.org/AnnonTypes"
> elementFormDefault="qualified">
>
> <element name="Top">
> <complexType>
> <sequence>
> <element name="attribute" nillable="true" minOccurs="0"
> maxOccurs="unbounded">
> <complexType>
> <simpleContent>
> <extension base="string">
> <attribute name="name" type="string" use="required"/>
> </extension>
> </simpleContent>
> </complexType>
> </element>
> </sequence>
> </complexType>
> </element>
> </schema>
> And XML
> <tns:Top xmlns:tns="http://www.example.org/AnnonTypes"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://www.example.org/AnnonTypes
> AnnonTypes2.xsd ">
>
> <tns:attribute name="ABC" xsi:nil="true"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
> <!--tns:attribute name="DEF" xsi:nil="true"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
> <tns:attribute name="GHI" xsi:nil="true"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
> <tns:attribute name="JKL" xsi:nil="true"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"-->
> </tns:Top>
> When multiple attribute elements are present the following error is reported.
> SDO_DAS_XML_ParserException Object
> (
> [message:protected] => SDO_DAS_XML::loadFile - Unable to parse the
> supplied
> xml file
> 1 parse error(s) occurred when parsing the file 'AnnonTypes2.xml':
> 1. Parser found unknown element attribute
> [string:private] =>
> [code:protected] => 0
> [file:protected] =>
> C:\simon\php\workspace\php-branch\phpscripts\chrisdougla
> s\test.php
> [line:protected] => 52
> [trace:private] => Array
> (
> [0] => Array
> (
> [file] =>
> C:\simon\php\workspace\php-branch\phpscripts\chris
> douglas\test.php
> [line] => 52
> [function] => loadFile
> [class] => SDO_DAS_XML
> [type] => ->
> [args] => Array
> (
> [0] => AnnonTypes2.xml
> )
> )
> )
> [cause] =>
> )
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]