Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XML
|
XML General XML discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XML section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 18th, 2006, 05:22 AM
Registered User
 
Join Date: May 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Noob question to use links with xml ...

Hi there,

I have a html page that contains a huge table. Now I want to take this table and its data out to be a xml.

I've created a trial xml file that looks like the following one and put in all the required data:

<course_all>
  <course>
    <title>ABC</title>
    <url>http://www.something.edu/cee/courses/abc.pdf</url>
    <credit>3</credit>
    <remarks>Prerequisite: xyz</remarks>
  </course>
  <course>
     ...
  </course>
  <course>
     ...
  </course>
</course_all>

The final html code should look like:

<table>
  <tr>
    [A fixed formatted row here ...]
  </tr>
  <tr>
    <td>
      <a href="http://www.something.edu/cee/courses/abc.pdf">ABC</a>
    </td>
    <td>3</td>
    <td>Prerequisite: xyz</td>
  </tr>
</table>

As the original html file is made of many graphics and javascript, using xml data island is very good and simple but failed to make the <a href="..."></a> in place.

Is there a simple way to do it? Using xsl may be fast, but the other contents, e.g. the graphics or javascript menus, etc, of that html file are tough to cater and maintained in this way. Please shed me some lights.

Thank you very much.





Similar Threads
Thread Thread Starter Forum Replies Last Post
noob question mattl Java Basics 1 August 27th, 2007 11:28 PM
Simple (noob) Question Bourne C++ Programming 6 March 6th, 2007 10:07 AM
total noob xslt question mrscott XSLT 3 February 22nd, 2006 04:35 PM
Noob XML question Skido XML 0 December 23rd, 2005 04:25 PM
Noob Question jverdin BOOK: Beginning VB.NET 2nd Edition/Beginning VB.NET 2003 3 April 2nd, 2004 10:01 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.