We help IT Professionals succeed at work.
Get Started

Displaying XML elements in an ASP page

829 Views
Last Modified: 2013-11-19
I have an XML document whose elments i need to display in an ASP page. First i have to check wheather a particular element exists then will display it, the reason being my headers on the page will come from element heading.

I can load the document as (https://www.experts-exchange.com/Web/Web_Languages/ASP/Q_21029059.html)

sourceFile = objRS("strXML")  //document is coming from Databasde as it is stored there
styleFile = objRS("strXSL")

set source = Server.CreateObject("Microsoft.XMLDOM")
source.async = false
source.loadXML(sourceFile)

set style = Server.CreateObject("Microsoft.XMLDOM")
style.async = false
style.load(styleFile)

then according to the style sheet i want to display header on the page, and when the header is clicked, i can refresh the page and show then that particular element information on the page.

I have taken the following tag off the XML document:
<?xml-stylesheet type="text/xsl" href="style.xsl"?>

Please click the following to look at the XML doc.
http://www.nrccua.org/testing/test.xml 




Comment
Watch Question
Senior Systems and Integration Developer
CERTIFIED EXPERT
Commented:
This problem has been solved!
Unlock 1 Answer and 20 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE