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

Item cannot reconstruct XML with CDATA #5

Open
apandichi opened this issue Jul 24, 2014 · 0 comments
Open

Item cannot reconstruct XML with CDATA #5

apandichi opened this issue Jul 24, 2014 · 0 comments

Comments

@apandichi
Copy link
Contributor

Given the following XML:

<?xml version="1.0" encoding="utf-8"?>
<root>
    <![CDATA[<?xml version="1.0" encoding="utf-8"?>
    <CurrentWeather>
        <Status>Success</Status>
    </CurrentWeather>
    ]]>
</root>

Parsing this XML into an Item instance, and then calling getElementAsString() on it, will result in a malformed XML that is missing the wrapper.

Please see a testcase here: apandichi@311767b

A possible fix for this can be found in this branch:
https://github.com/apandichi/choreos_v-v/commits/cdata-issue
Relevant commits:
apandichi@329f109
apandichi@c5ad49e

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

1 participant