Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / April 2008

Tip: Looking for answers? Try searching our database.

Need help to generate critical report

Thread view: 
pooja.shirwalkar@gmail.com - 29 Apr 2008 17:41 GMT
I have a critical requirement where I need to club together 4 xml
files and display them in an sibngle HTML report. The xmls are
generated by Java application by a normal file I/O.

Is there a way I can club them together in a presentable format for
reporting purpose ?

So for .g. a.xml, b.xml, c.xml and d.xml. These xmls I want to display
in an html report say report.html in a 4 columns in java.

Please help.

Cheers
Nick
rossum - 29 Apr 2008 22:08 GMT
>I have a critical requirement where I need to club together 4 xml
>files and display them in an sibngle HTML report. The xmls are
>generated by Java application by a normal file I/O.
>
>Is there a way I can club them together in a presentable format for
>reporting purpose ?
Yes.

>So for .g. a.xml, b.xml, c.xml and d.xml. These xmls I want to display
>in an html report say report.html in a 4 columns in java.
Yes.  Use an HTML table with four columns.  Format each XML element
into the next cell of the appropriate column.  Generate the HTML as
text from within Java.

<html>
<head>
    <title>Table Demo</title>
</head>
<body>
<h1>Table Demo</h1>   
<table>
 <tr>
    <th>Column One Header</th>
    <th>Column Two Header</th>
    <th>Column Three Header</th>
    <th>Column Four Header</th>
 </tr>
 <tr>
    <td>C1 Row One</td>
    <td>C2 Row One</td>
    <td>C3 Row One</td>
    <td>C4 Row One</td>
 </tr>
 <tr>
    <td>C1 Row Two</td>
    <td>C2 Row Two</td>
    <td>C3 Row Two</td>
    <td>C4 Row Two</td>
 </tr>
 <tr>
    <td>C1 Row Three</td>
    <td>C2 Row Three</td>
    <td>C3 Row Three</td>
    <td>C4 Row Three</td>
 </tr>
</table>
</body>
</html>

It is difficult to be more specific without knowing more about the
XML.

>Please help.
>
>Cheers
>Nick


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.