« Return to Thread: Status of issue with SDO scoping of anonymous types with same name

Re: Status of issue with SDO scoping of anonymous types with same name

by cdouglas :: Rate this Message:

Reply to Author | View in Thread


I just grabbed the Fulmar branch and tried it and it still happens.
The issue is that the items failing are defined as such:

<xs:element name="attribute" nillable="true" minOccurs="0"
maxOccurs="unbounded">
                                                                <xs:annotation>

                                                                        <xs:documentation>set to "nill" to remove this attribute</
xs:documentation>

                                                                </xs:annotation>

                                                                <xs:complexType>

                                                                        <xs:simpleContent>

                                                                                <xs:extension base="xs:string">

                                                                                        <xs:attribute name="name" type="xs:string" use="required"/>

                                                                                </xs:extension>

                                                                        </xs:simpleContent>

                                                                </xs:complexType>
                                                                </xs:element>

and the XML looks like this

<scn:attribute name="ETH_GW" xsi:nil="true" xmlns:xsi="http://
www.w3.org/2001/XMLSchema-instance"/>
<scn:attribute name="ETH_IP" xsi:nil="true" xmlns:xsi="http://
www.w3.org/2001/XMLSchema-instance"/>
<scn:attribute name="ETH_MASK" xsi:nil="true" xmlns:xsi="http://
www.w3.org/2001/XMLSchema-instance"/>
<scn:attribute name="SN" xsi:nil="true" xmlns:xsi="http://www.w3.org/
2001/XMLSchema-instance"/>
...etc

So for each attribute that exists in the XML doc, it throws an error

SDO_DAS_XML_ParserException Object
(
[message:protected] => SDO_DAS_XML::loadString - Unable to parse the
supplied xml string
30 parse error(s) occurred when parsing the string:
1. Parser found unknown element attribute
2. Parser found unknown element attribute
3. Parser found unknown element attribute
4. Parser found unknown element attribute
5. Parser found unknown element attribute
6. Parser found unknown element attribute

..etc

I can email you the entire XSD and XML doc if the above isn't
sufficient.

Thank you
Chris

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "phpsoa" group.
To post to this group, send email to phpsoa@...
To unsubscribe from this group, send email to phpsoa-unsubscribe@...
For more options, visit this group at http://groups.google.co.uk/group/phpsoa?hl=en
-~----------~----~----~----~------~----~------~--~---

 « Return to Thread: Status of issue with SDO scoping of anonymous types with same name