-
Notifications
You must be signed in to change notification settings - Fork 1
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
Content of tags was lost in arrays #4
Comments
Thank you for remoporting this issue. It's been a while that I looked in to this lib. I'll try to fix it. |
Actually it looks correct: xml2json('<person id="1234">Jane<name id="1234">John</name><name id="4321">Doe</name></person>'); Output: {
"person": {
"_@attribute": "Jane",
"id": "1234",
"name": [{"_@attribute": "John", "id": "1234"}, {"_@attribute": "Doe", "id": "4321"}]
}
} Or what is your expected output @dlnsk ? |
It was mystical :) |
Not an array but a bug :)
output
'Person' is disappear. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In xml like this
<person id="1234">zzz<name a="qqq">John</name><name a="www">Doe</name></person>
strings "John" and "Doe" will be lost because the 'name' is an array.
The text was updated successfully, but these errors were encountered: