Skip Menu |

This queue is for tickets about the XML-LibXML CPAN distribution.

Report information
The Basics
Id: 132416
Status: new
Priority: 0/
Queue: XML-LibXML

People
Owner: Nobody in particular
Requestors: falbe [...] cassens.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: losing encoding
Date: Fri, 24 Apr 2020 07:24:04 -0500
To: bug-XML-LibXML [...] rt.cpan.org
From: Paul Falbe <falbe [...] cassens.com>
Hello, I don't have a bug as much as I am lacking knowledge. I am using XML::LibXML to read in an XML file like the following where the "custnm node's contents are encoded. Like following <vehicle> <delayflag> </delayflag> <vin>3C63RRGL0LG120590</vin> <lot>SL</lot> <rowbay>RR061</rowbay> <colour>PW7</colour> <odt>04/15/20</odt> <custnm>AMERICA&apos;S BODY COMPANY</custnm> <afthrs>N</afthrs> <city>COLUMBUS</city> <st>OH</st> <miles>26</miles> <vhdesc>RAM 3500 CREW CAB 4X4 DR</vhdesc> <dy1_hrs></dy1_hrs> <dy2_hrs></dy2_hrs> </vehicle> When I use the $doc->toString() to print the XML out it becomes the follwoing with the &apos; translated to "'". How do I stop that? I've spent a day Googling and trying to understand but I can't seem to get it correct. <vehicle> <delayflag> </delayflag> <vin>3C63RRGL0LG120590</vin> <lot>SL</lot> <rowbay>RR061</rowbay> <colour>PW7</colour> <odt>04/15/20</odt> <custnm>AMERICA'S BODY COMPANY</custnm> <afthrs>N</afthrs> <city>COLUMBUS</city> <st>OH</st> <miles>26</miles> <vhdesc>RAM 3500 CREW CAB 4X4 DR</vhdesc> <dy1_hrs></dy1_hrs> <dy2_hrs></dy2_hrs> </vehicle> Thank you for your time! Paul