Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

an attribute was lost #12

Open
bluefivecn opened this issue Apr 22, 2014 · 4 comments
Open

an attribute was lost #12

bluefivecn opened this issue Apr 22, 2014 · 4 comments

Comments

@bluefivecn
Copy link

Hello,

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

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

@hobnob
Copy link
Owner

hobnob commented Apr 22, 2014

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! :)

@bluefivecn
Copy link
Author

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
Copy link
Author

Hello, @hobnob,

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

@hobnob
Copy link
Owner

hobnob commented Apr 25, 2014

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 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants