celia05es
04-16-2007, 09:05 AM
I have the following table built by program.
At one moment, I have a string XMLStr that contains an XML document and I want to show it in a table row.
So I write:
FileOutputStream fout = new FileOutputStream(".../report.html");
rpt = new PrintStream(fout);
............
String macroXML=.....IT is a XML document.
rpt.println("<tr><td colspan = 2><pre>"+macroXML+"</pre></td></tr>");
Now, the html is as follows:
<table border = 2>
<tr><th colspan=2 align=center>GENERAL TABLE NAME</th></tr>
<tr><th colspan=2 align = center>ANOTHER GENERAL NAME</th></tr>
<tr><th>Col1</th><th>Col2</th></tr>
<tr><td>Att1</td><td>Att2</td></tr>
<tr><td colspan=2>
<?xml version="1.0"?>
<pre>
<macro>
.....
</macro>
</pre>
</td></tr></table>
It does not work.... I only get "....." and not "<macro>....</macro>!!!
Could you help please?
At one moment, I have a string XMLStr that contains an XML document and I want to show it in a table row.
So I write:
FileOutputStream fout = new FileOutputStream(".../report.html");
rpt = new PrintStream(fout);
............
String macroXML=.....IT is a XML document.
rpt.println("<tr><td colspan = 2><pre>"+macroXML+"</pre></td></tr>");
Now, the html is as follows:
<table border = 2>
<tr><th colspan=2 align=center>GENERAL TABLE NAME</th></tr>
<tr><th colspan=2 align = center>ANOTHER GENERAL NAME</th></tr>
<tr><th>Col1</th><th>Col2</th></tr>
<tr><td>Att1</td><td>Att2</td></tr>
<tr><td colspan=2>
<?xml version="1.0"?>
<pre>
<macro>
.....
</macro>
</pre>
</td></tr></table>
It does not work.... I only get "....." and not "<macro>....</macro>!!!
Could you help please?