[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Navigating XML when loaded using Javascript.

Subject: Navigating XML when loaded using Javascript.
From: Adam_Wetch@xxxxxxxxxxxxxxx
Date: Wed, 23 Feb 2005 10:30:22 -0800
javascript navigating xml
I am new to the xsl list, but it appears to be a very informative and
helpful place. Hopefully i can find some help.

I am loading some xml using javascript, but cannot figure out how to
navigate it properly.  I can do it with a data island, but for some reason
cannot quite get it to work when loading it with javascript.

Here is some of the loading javascript:

        XMLdata="file.xml";
        XMLfile = new ActiveXObject("MSXML2.DomDocument");
        XMLfile.async = false;
        XMLfile.setProperty("SelectionLanguage", "XPath");
        XMLfile.validateOnParse = false;
        XMLfile.resolveExternals = false;
        XMLfile.load(XMLdata);

Just to give an example of how I am doing it.

Previous data island code:
<xml id="XMLfile" src="file.xml">

Previously I would use an external javascript file with somthing like:

        XMLfile.recordset.moveLast();
        currentRecord = XMLfile.recordset.recordcount - 1;

etc...

Any ideas?

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.