Solved

Cross Browser XML Parser similar to MSXML Parser

Posted on 2004-09-15
8
518 Views
Last Modified: 2012-08-13
Hi,

I've been using MSXML parser (ActiveX Object) in javascript to parse & read data from XML files. Also, it has been used to update XML files.

But, unfortunately MSXML works in IE only. I need a cross-platform and cross-browser XML parser that can be used in javascript.

Can anyone suggest a good parser.

TIA
jai

0
Comment
Question by:gjayakrishnan
  • 2
  • 2
  • 2
8 Comments
 
LVL 33

Accepted Solution

by:
sajuks earned 125 total points
ID: 12071918
0
 

Author Comment

by:gjayakrishnan
ID: 12081853
Dear Sajuks,

thanx 4 ur immediate response. ur links gives reference regarding parsing of XML data.

actually, following r my requirements (other than mere parsing) that i've to do in javascript using some XML object.

    - Load an XML file that contains actual data
    - Load an XSL file that contains the stylesheet of how the data should be displayed
    - Transformation of XML data and XSL stylesheet into an HTML
    - Create/Update/Delete nodes in the XML file (i.e., saving the new data into the same XML file)

the above following things are possible thro' MSXML ActiveXObject. Is there any similar XML Object available that's supported cross-platform/browser.

TIA
jai
0
 
LVL 33

Expert Comment

by:sajuks
ID: 12082180
Not that am aware of. But then i might be wrong :-).
0
Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

 
LVL 36

Expert Comment

by:Zyloch
ID: 12083693
Can you use server-side?
0
 

Author Comment

by:gjayakrishnan
ID: 12083725
No, i've to go by client side scripts
0
 
LVL 36

Assisted Solution

by:Zyloch
Zyloch earned 125 total points
ID: 12083868
There's no easy way I know of. You can load the XML document easily enough (even with XMLHTTP if you want), but modifying it, well, Mozilla is a bit behind IE in XLST (I think) but here's a link to get you started.

http://www.mozilla.org/projects/xslt/faq.html
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses the difference between strict equality operator and equality operator in JavaScript. The Need: Because JavaScript performs an implicit type conversion when performing comparisons, we have to take this into account when wri…
JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now