Solved

Cross Browser XML Parser similar to MSXML Parser

Posted on 2004-09-15
8
521 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
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Today I would like to talk about localizing (Internationalization) JavaScript applications. Introduction When creating an application that is going to be used by many people around the globe, it is important to remember that not everyone speak…
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
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…

861 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