xmlStreamReader icon indicating copy to clipboard operation
xmlStreamReader copied to clipboard

an attribute was lost

Open bluefivecn opened this issue 10 years ago • 4 comments

Hello,

I tried to parse the follow xml, but after the SimpleXMLElement object was created, the "xsi:type" was lost in the attributes.

<Datatype xsi:type="UIntegerT" id="MyID"></Datatype>

I didn't figure out how to fix it. Would you please take a look at it. Thanks very much!!!

bluefivecn avatar Apr 22 '14 08:04 bluefivecn

Hi @bluefivecn ,

Could you past the XML you re trying to parse please? I'll have a look for you and see if I can trace the issue.

Thanks! :)

hobnob avatar Apr 22 '14 08:04 hobnob

Thanks for you help:) You can use the following xml:

<?xml version="1.0" encoding="UTF-8"?>
 <IODDStandardDefinitions xmlns="http://www.io-link.com/IODD/2010/10"        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.io-link.com/IODD/2010/10 IODD-StandardDefinitions1.1.xsd">
<DatatypeCollection>
    <Datatype xsi:type="UIntegerT" bitLength="8" id="STD_D_SystemCommand">
    </Datatype>
</DatatypeCollection>
</IODDStandardDefinitions>```

bluefivecn avatar Apr 22 '14 08:04 bluefivecn

Hello, @hobnob,

I am wondering if there is any update on this issue. Any help will be appreciated, thanks a lot!

bluefivecn avatar Apr 25 '14 01:04 bluefivecn

Hi @bluefivecn

I haven't had a chance to look at this yet. It's likely to be next week I would imagine with my current schedule. As soon as I have an update for you, I'll update this issue :)

hobnob avatar Apr 25 '14 07:04 hobnob