-
-
Notifications
You must be signed in to change notification settings - Fork 3
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
method created: processXmlContent() which just returns the PHP array … #1
Comments
@mowses What problem does it solve? Can you elaborate, please? Originally posted by @michalbundyra at zendframework/zend-xml2json#11 (comment) |
As a library for parsing XML I wanted to use zend-xml2json as a third party library to convert XML to PHP variable (Array/Object), so I realized that there are not any method that could do that. To accomplish this, I just cut some part of the fromXml() code and paste it in the static method processXmlContent() which now returns the resulting array I needed. Now anyone can use zend-xml2json with the option to retrieve the XML as PHP variable, instead of only as JSON (string). Note: I did not removed nor changed any script behavior. The return from fromXml is still the same as before, so I made sure I did not broke applications who are using this method. Originally posted by @mowses at zendframework/zend-xml2json#11 (comment) |
|
…instead of converting it to JSON plain text. Method fromXml() calls processXmlContent() method, fromXml() still returns the result as plain text
Provide a narrative description of what you are trying to accomplish:
Are you fixing a bug?
master
branch, and submit against that branch.CHANGELOG.md
entry for the fix.Are you creating a new feature?
develop
branch, and submit against that branch.CHANGELOG.md
entry for the new feature.Is this related to quality assurance?
Is this related to documentation?
Originally posted by @mowses at zendframework/zend-xml2json#11
The text was updated successfully, but these errors were encountered: