Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^3: LibXML doesn't encode single or double quotes

by grantm (Parson)
on Nov 28, 2011 at 22:11 UTC ( #940485=note: print w/ replies, xml ) Need Help??


in reply to Re^2: LibXML doesn't encode single or double quotes
in thread LibXML doesn't encode single or double quotes

The clients that will be parsing this XML expect quotes and single quotes to be in entity form.

How would they even know? Any compliant XML parsing library will decode the entities and pass the actual character up to the application layer. Getting the XML content with entities in their raw form would be a bug that could only cause downstream pain. If that really is a requirement then I feel your pain.


Comment on Re^3: LibXML doesn't encode single or double quotes
Re^4: LibXML doesn't encode single or double quotes
by randonpurcell (Initiate) on Nov 28, 2011 at 22:19 UTC
    OK, I'm glad you said that. I thought I must just be completely daft and missing something simple. I'm going to throw this back over the fence and see if I can get them to fix things on their side. I've wasted enough time and I don't feel like regex'ing a big mess to try to do this :) Thanks!
      I agree fully.
      name='foo&apos;s bar' # Attribute's value is: foo's bar name="foo&apos;s bar" # Attribute's value is: foo's bar name="foo's bar" # Attribute's value is: foo's bar <name>foo's bar</name> # Text's value is: foo's bar <name>foo's b&#97;r</name> # Text's value is: foo's bar <name>foo's b&#x61;r</name> # Text's value is: foo's bar

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://940485]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2014-11-27 22:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (188 votes), past polls