By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,934 Members | 1,677 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,934 IT Pros & Developers. It's quick & easy.

Cross-browser JavaScript for XML manipulation

P: n/a
Hello,

I am looking for some API that abstracts away all the differences in
XML DOM parsers that are presnt in all supporting browsers - MSIE,
Mozilla, Opera, Safari. Perhaps that is implemented in the form of
class that has number of methods that "know" how to do the thing in
every different environment.
I need to do some routine XML - like create XML doc from string, then
add some nodes, read it, perhaps XMLHTTP-post it.
Has someone done such project? If not, maybe somewhere is discussion
about XML manipulation in JavaScript, in different browsers?

Thanks,

Pavils

Mar 15 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
> I am looking for some API that abstracts away all the differences in
XML DOM parsers that are presnt in all supporting browsers - MSIE,


Maybe this
http://www.dithered.com/javascript/dom1_core/index.html
otherwise maybe the prototype library helps
http://prototype.conio.net/

Michiel

Mar 15 '06 #2

P: n/a

Pavils Jurjans wrote:

[snip]
I am looking for some API that abstracts away all the differences in
XML DOM parsers that are presnt in all supporting browsers - MSIE,
Mozilla, Opera, Safari. Perhaps that is implemented in the form of
class that has number of methods that "know" how to do the thing in
every different environment.
I need to do some routine XML - like create XML doc from string, then
add some nodes, read it, perhaps XMLHTTP-post it.
Has someone done such project? If not, maybe somewhere is discussion
about XML manipulation in JavaScript, in different browsers?

[/snip]

The SARISSA library may also be worth a look : <URL:
http://sarissa.sourceforge.net/doc/>

Regards

Julian Turner

Mar 15 '06 #3

P: n/a
Hi.

Could you let me know what you discover? I am new at this and am
looking for some Javascript to read a simple XML file -- regardless of
the browser being used. I have seen some code to do this:

<script language="JavaScript">
<!--
var xmlDoc=new ActiveXObject "microsoft.xmldom");
xmlDoc.load("firstxml.xml");
var RootElement=xmlDoc1.documentElement;
var nodecount=RootElement.childNodes.length;
Mar 15 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.