Thread: XML and HTML

    #1
  1. Chief Bluetac Guru
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2002
    Location
    Liverpool, England, UK
    Posts
    43
    Rep Power
    13

    XML and HTML


    I have something similar to the following XML doc...

    Code:
    <?xml version="1.0"?>
    <person>
    	<title>Mr</title>
    	<name>Jim</name>
    	<surname>White</surname>
    	<dob>29th December 1970</dob>
    	<tel>0000000000</tel>
    	<mob>000000000</mob>
    	<email>mailto:x</email>
    	<address>
    		<street>Street</street>
    		<town>Town</town>
    		<city>Liverpool</city>
    		<postcode>L UK</postcode>
    	</address>
    </person>
    and I am using something similar to the following in the HTML doc...

    Code:
    <table border=0 datasrc="#person">
    	<tr>
    		<td><b>Name:</b></td>
    		<td><span datafld="title"></span> <span datafld="name"></span> <span datafld="surname"></span></td>
    	</tr>
    	<tr>
    		<td><b>Telephone:</b></td>
    		<td><span datafld="tel"></span></td>
    	</tr>
    	<tr>
    		<td><b>Mobile:</b></td>
    		<td><span datafld="mob"></td>
    	</tr>
    	<tr>
    		<td><b>Email Address:</b></td>
    		<td><a href=span datafld="email"><span datafld="email"></span></a></td>
    	</tr>
    		<td><b>Date of Birth</b></td>
    		<td><span datafld="dob"></span></td>
    	</tr>
    	<tr>
    		<td><b>Address:</b></td>
    		<td></td>
    	</tr>
    </table>

    I cannot figure out how to display the street from with in the nested elements. Can anybody help?!?
  2. #2
  3. No Profile Picture
    Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2001
    Location
    UK
    Posts
    2
    Rep Power
    0
    Try using "/" - "address/street"

IMN logo majestic logo threadwatch logo seochat tools logo