xmlStreamReader
xmlStreamReader copied to clipboard
an attribute was lost
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!!!
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! :)
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>```
Hello, @hobnob,
I am wondering if there is any update on this issue. Any help will be appreciated, thanks a lot!
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 :)