•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 401,633 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,849 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 493 | Replies: 2
![]() |
•
•
Join Date: Feb 2008
Posts: 1
Reputation:
Rep Power: 0
Solved Threads: 0
Please excuse me if this is not the correct forum for this question.
"How do I code HTML to use XML data in a web link?"
I want to use XML data to easily change server names for links on 15+ web sites with 100+ pages. Normally, a link would look like this:
"<a href='http://server1.someplace.com/..."
I want to place XML data in place of the server name. I've built an XML file with an element called "servername" and set it to "server1.someplace.com".
How do I get this to work? All help is greatly appreciated.
BTW: I'm using Dreamweaver CS3.
Bill
"How do I code HTML to use XML data in a web link?"
I want to use XML data to easily change server names for links on 15+ web sites with 100+ pages. Normally, a link would look like this:
"<a href='http://server1.someplace.com/..."
I want to place XML data in place of the server name. I've built an XML file with an element called "servername" and set it to "server1.someplace.com".
How do I get this to work? All help is greatly appreciated.
BTW: I'm using Dreamweaver CS3.
Bill
Last edited by bvalvo : Feb 11th, 2008 at 10:32 am.
•
•
Join Date: Apr 2005
Location: New York state
Posts: 454
Reputation:
Rep Power: 5
Solved Threads: 66
You can't code anything in HTML but if you are using a server-side language like PHP, ASP, etc. they all have functionality to parse XML files though I've only dealt with PHP XML parsing
GCS d- s+:+ a-->? C++(++++) UL+++ P+>+++ L+++ !E--- W+++
N+ o K w++(---) O? !M- V PS+>++ PE+ Y+ PGP !t- 5? X- R tv+
b+>++ DI+ D G++>+++ e+ h+>++ r z+*
N+ o K w++(---) O? !M- V PS+>++ PE+ Y+ PGP !t- 5? X- R tv+
b+>++ DI+ D G++>+++ e+ h+>++ r z+*
•
•
Join Date: Dec 2004
Location: London or Slovakia
Posts: 2,220
Reputation:
Rep Power: 10
Solved Threads: 270
You can use JavaScript like in this example, but I personaly consider to be too complicated for beginners. Simple way around can be to transfer your html documents to xsl documents. Then your dynamic linking can be simple like this
<p class="link" style="cursor: pointer;">
<xsl:attribute name="onClick">show('<xsl:value-of select="servername"/>');
</xsl:attribute>
<xsl:value-of select='servername'/>
</p> Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)
If we helped you to solve your problem, answered your question please mark your post as SOLVED.
Publilius Syrus
(~100 BC)
If we helped you to solve your problem, answered your question please mark your post as SOLVED.
![]() |
•
•
•
•
•
•
•
•
DaniWeb JavaScript / DHTML / AJAX Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
ads adsense ajax asp backup blogging business code crash daniweb data data protection database developer development drive forensics google hard hardware hitachi home html internet link linux mail microsoft msdn net news office privacy qmail revenue security server site smtp software storage terabyte text unit vista w3c web wikipedia windows xml
- Dot Net programmer wanted. Work from home. (Web Development Job Offers)
- Need urgent help. Problem with SQL and win server. (Windows NT / 2000 / XP / 2003)
- blank pop-ups (Viruses, Spyware and other Nasties)
- "Forbidden / You don't have permission to access / on this server." error (Linux Servers and Apache)
- Hijackthis report, I just don't know (Viruses, Spyware and other Nasties)
- Parse XML from ASP!!! (ASP)
- Final Yer Projects (Networking Hardware Configuration)
- I can't remove about:blank (Viruses, Spyware and other Nasties)
- Something showling my system down (hijackthis log incl) (Viruses, Spyware and other Nasties)
- RDS Issue in Internet Explorer (ASP)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: Image cropping problem
- Next Thread: Run Script Dinamically



Linear Mode