Guest_imported
New member
- Jan 1, 1970
- 0
here's my XML doc...
<?xml version="1.0" ?>
<links>
<link url=" 1</link>
<link url=" 2</link>
</links>
here's my ASP code...
<%
'create XML server object
Dim objXMLDom
Set objXMLDOM = Server.CreateObject("Microsoft.XMLDOM"
'provide location of quick links XML doc
objXMLDOM.async = False
objXMLDom.load(Server.MapPath("../data-store/quick_links.xml"
)
Dim objChild
'display each link
For Each objChild in objXMLDOM.documentElement.childNodes
%>
<a class="lft_nv" href="<%=objChild.text%>" target="_new"><%=objChild.text%><br>
<%
Next
'clear server object
Set objXMLDom = Nothing
%>
Currently, this only displays the values inbetween the <link></link> tag (aka the link name). However, how can I alter the code so I can get the value of the URL attribute?
Thanks!
<?xml version="1.0" ?>
<links>
<link url=" 1</link>
<link url=" 2</link>
</links>
here's my ASP code...
<%
'create XML server object
Dim objXMLDom
Set objXMLDOM = Server.CreateObject("Microsoft.XMLDOM"
'provide location of quick links XML doc
objXMLDOM.async = False
objXMLDom.load(Server.MapPath("../data-store/quick_links.xml"
Dim objChild
'display each link
For Each objChild in objXMLDOM.documentElement.childNodes
%>
<a class="lft_nv" href="<%=objChild.text%>" target="_new"><%=objChild.text%><br>
<%
Next
'clear server object
Set objXMLDom = Nothing
%>
Currently, this only displays the values inbetween the <link></link> tag (aka the link name). However, how can I alter the code so I can get the value of the URL attribute?
Thanks!