Embed XML into HTML

Soldato
Joined
28 Sep 2004
Posts
3,128
Location
Devon, UK
Hi, I am completely new to this so any help would be appreciated!

How do I go about inserting XML data into a HTML document?

I want to embed this http://whatpulse.org/api/team.php?TeamID=11231

into a webpage, but show just as writing without all the code bits and no drop down menus, or wether people are Team managers etc..


Anyone have any ideas please?

Thanks,
Mark
 
hi im not 100% sure on this but i think you have to create an XHTML file with the inclusion of the relevant DTD headers. Then you will create an XML data island using something like


Code:
<XML ID="myXML" SRC="filename.xml"></XML>

This will set up the xml file and cache it into your browser. Then you can use javascript to access the XML DOM and display the parts of the file as you require.

I know this maybe isnt much help but it should be a start.
 
jonnyc747 said:
hi im not 100% sure on this but i think you have to create an XHTML file with the inclusion of the relevant DTD headers. Then you will create an XML data island using something like


Code:
<XML ID="myXML" SRC="filename.xml"></XML>

This will set up the xml file and cache it into your browser. Then you can use javascript to access the XML DOM and display the parts of the file as you require.

I know this maybe isnt much help but it should be a start.

I really haven't got a clue what you were just on about :confused: sorry!

Are there any tutorials or guides?

Thanks
 
Back
Top Bottom