|
-
May 21st, 2001, 09:02 AM
#1
Thread Starter
Lively Member
Filtering a xml document using JavaScript
<script language="javascript">
// Load XML
var xml = new ActiveXObject("Microsoft.XMLDOM")
xml.async = false
xml.load("dagskra.xml")
// Load the XSL
var xsl = new ActiveXObject("Microsoft.XMLDOM")
xsl.async = false
xsl.load("dagskra3.xsl")
// Transform
document.write(xml.transformNode(xsl))
</script>
This script takes a xml file and display using the xsl stylesheet. In a similar code in asp you can filter the xml file before it is displayed. Can that be done in JavaScript?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|