bimleshsharma has asked for the wisdom of the Perl Monks concerning the following question:
I have xml message in variable and i want to put in html->table->cell but i am not sure why that xml string is not displaying on web browser. here is code:
If i run above and see the html in browser then it looks like as below. Where i can see first TD value but not not second TD value exactly. Instead of this ID it should show complete $x. I have used print command for $x and value is coming fine. Please help Thanksopen FH, ">tt.html" or die "file could not be not created"; my $x= qq(<?xml version="1.0" encoding="utf-8" ?> <Soap-ENV:Envelope> <Soap-ENV:Body> <CheckTrade> <tradeId>49214792</tradeId> </CheckTrade> </Soap-ENV:Body> </Soap-ENV:Envelope> ); print FH "<table><tr><td>Message</td><td>$x</td></tr></table>;
________________________ Message | 49214792 __________|_____________
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: how to put XML string in table cell
by Corion (Patriarch) on Jan 22, 2014 at 10:08 UTC | |
by bimleshsharma (Beadle) on Jan 22, 2014 at 10:27 UTC | |
by Corion (Patriarch) on Jan 22, 2014 at 10:27 UTC | |
by bimleshsharma (Beadle) on Jan 23, 2014 at 05:00 UTC | |
|
Re: how to put XML string in table cell
by tangent (Parson) on Jan 22, 2014 at 13:37 UTC |