Current location: Hot Scripts Forums » General Web Coding » HTML/XHTML/XML » XML (You'll groan while reading this)


XML (You'll groan while reading this)

Reply
  #1 (permalink)  
Old 08-18-05, 04:50 AM
liljoeyjordison liljoeyjordison is offline
Newbie Coder
 
Join Date: Jan 2005
Posts: 85
Thanks: 0
Thanked 0 Times in 0 Posts
XML (You'll groan while reading this)

Yeah, I'm sorry. I really am, I hate asking questions like this, but alas, it must be done.

I want to create a file with the extention .xml and then in an XHTML document to display the data stored there. How the hell do I do this?

This should be a hella simple answer. Sorry for wasting your time.
Reply With Quote
  #2 (permalink)  
Old 08-19-05, 11:14 PM
shadi's Avatar
shadi shadi is offline
Wannabe Coder
 
Join Date: Aug 2004
Location: EGY
Posts: 145
Thanks: 0
Thanked 0 Times in 0 Posts
for example if you have this xml files contain :

Code:
 <?xml version="1.0" encoding="ISO-8859-1" ?> 
 
- <CATALOG>
- <CD>
 <TITLE>Empire Burlesque</TITLE> 

 <ARTIST>Bob Dylan</ARTIST> 

 <COUNTRY>USA</COUNTRY> 

 <COMPANY>Columbia</COMPANY> 

 <PRICE>10.90</PRICE> 

 <YEAR>1985</YEAR> 

 </CD>


- <CD>
 <TITLE>Hide your heart</TITLE> 

 <ARTIST>Bonnie Tyler</ARTIST> 

 <COUNTRY>UK</COUNTRY> 

 <COMPANY>CBS Records</COMPANY> 

 <PRICE>9.90</PRICE> 

 <YEAR>1988</YEAR> 

 </CD>
</CATALOG>

and want to display the data into html file :

Code:
  <html><body><xml id="cdcat" src="cd_catalog.xml"></xml><table border="1" datasrc="#cdcat"><tr><td><span datafld="ARTIST"></span></td><td><span datafld="TITLE"></span></td></tr></table></body></html>
Hope this helps
__________________
Email : write2shadi at gmail dot com
MSN : write2shadi at gmail dot com
Aim : shadiaim7
Skype: shadi_skype
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Reading a Node from XML to VB.NET label MistyJoy Windows .NET Programming 2 07-16-09 12:38 AM
Xml / Dom / Css Mark_SC.SE JavaScript 0 06-29-05 08:05 AM
xml problem plz help me EvilDeveloper PHP 0 05-10-05 11:53 PM
importing xml to phpnuke block larryflynt PHP 0 10-22-04 03:59 PM
javascripting and XML Christoff JavaScript 1 06-23-04 05:44 AM


All times are GMT -5. The time now is 08:45 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.