473,323 Members | 1,537 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,323 software developers and data experts.

Cross-browser JavaScript for XML manipulation

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
3 2415
> 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

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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Web Science | last post by:
Site and Features: http://www.eigensearch.com Search engine, eigenMethod, eigenvector, mathematical, manifolds, science, technical, search tools, eigenmath, Jacobian, quantum, mechanics,...
12
by: * ProteanThread * | last post by:
but depends upon the clique: ...
3
by: rollasoc | last post by:
Hi, Doing a bit of system testing on a Windows 98 laptop. (.Net 1.1 app). Did a bit of testing. Loaded a previously saved file. A gray box appeared with the text and buttons all white...
0
by: Web Science | last post by:
Site and Features: http://www.eigensearch.com Search engine, eigenMethod, eigenvector, mathematical, manifolds, science, technical, search tools, eigenmath, Jacobian, quantum, mechanics,...
4
by: David Peach | last post by:
Hello, hope somebody here can help me... I have a query that lists defects recorded in a user defined date range. That query is then used as the source for a Cross Tab query that cross-tabs count...
23
by: Jeff Rodriguez | last post by:
Here's what I want do: Have a main daemon which starts up several threads in a Boss-Queue structure. From those threads, I want them all to sit and watch a queue. Once an entry goes into the...
0
by: Web Science | last post by:
Site and Features: http://www.eigensearch.com Search engine, eigenMethod, eigenvector, mathematical, manifolds, science, technical, search tools, eigenmath, Jacobian, quantum, mechanics,...
7
by: Scott M. | last post by:
How can I disable the cross-site scripting check for one particular page of a site?
1
by: Rob Woodworth | last post by:
Hi, I'm having serious problems getting my report to work. I need to generate a timesheet report which will contain info for one employee between certain dates (one week's worth of dates). I...
6
by: ampo | last post by:
Hello. Can anyone help with cross-domain problem? I have HTML page from server1 that send xmlHTTPRequest to server2. How can I do it? Thanks.
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.