I have xml message in a variable and want to display on browser using table. I tried below but during rendering to browser the actual xml string is not showing.
open FH, ">report.html";
my $x=qq(<?xml version="1.0" encoding="utf-8" ?>
<Soap-ENV:Envelope xmlns:Soap-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:msdwHdr="http://xml.xdft.com/ns/appmw/soap/1.0/header" version="1.1">
<Soap-ENV:Body>
<CheckTrade>
<tradeId>492195</tradeId>
</CheckTrade>
</Soap-ENV:Body>
</Soap-ENV:Envelope>);
print FH "<table><tr><td>test</td><td>$x</td></tr></table>";
If i run above code and open report.html in browser i am able to see first TD value and in second TD it is showing only 492195 (that is part of tradeid) i want to see complete $x value. I looked at source of html.It is showing same as $x but on browser it is not.
______________
test | 492195
______|________