From an HTML web page, how would I be able to retrieve data from an XML file? For example say I had a small database of phone numbers, and I wanted to retrieve one and write it to the web page.
-XML File-
<numbers>
<tim>555-1234</tim>
</numbers>
-HTML File-
<html>
<head>
<script>document.write(XML.numbers.tim)</script>
</head>
</html>
I know that's not all quite correct, but is there a way I could do something like that in such an easy way? Thanks.
-XML File-
<numbers>
<tim>555-1234</tim>
</numbers>
-HTML File-
<html>
<head>
<script>document.write(XML.numbers.tim)</script>
</head>
</html>
I know that's not all quite correct, but is there a way I could do something like that in such an easy way? Thanks.