473,472 Members | 2,224 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Convert String to XML Object Where DOMParser Is Not Supported

I used DOMParser to convert a response string to XML object:

DOMParser.parseFromString()

In browsers where DOMParser is not supported (Safari 1-2 for my case)
I cannot use DOMParser. What method is normally used to convert a
string to XML object. For Firefox I use E4X. For IE I use
ActiveXObject loadXML() method.

Thanks.
Dec 17 '07 #1
5 8351
vunet wrote:
It did not work in Safari 1.3.
It did not work? As said I have not tested that myself but blog entries
like <URL:http://web-graphics.com/mtarchive/001606.phpsuggest it works
with Safari versions where DOMParser is not implemented.
In Firefox, however, it gave me an
error: "Permission denied to call method XMLHttpRequest.open"
Well Firefox has DOMParser so I don't understand why you tried the data:
URL approach with Firefox.
--

Martin Honnen
http://JavaScript.FAQTs.com/
Dec 17 '07 #2
On Dec 17, 12:01 pm, Martin Honnen <mahotr...@yahoo.dewrote:
vunet wrote:
It did not work in Safari 1.3.

It did not work? As said I have not tested that myself but blog entries
like <URL:http://web-graphics.com/mtarchive/001606.phpsuggest it works
with Safari versions where DOMParser is not implemented.
In Firefox, however, it gave me an
error: "Permission denied to call method XMLHttpRequest.open"

Well Firefox has DOMParser so I don't understand why you tried the data:
URL approach with Firefox.

--

Martin Honnen
http://JavaScript.FAQTs.com/
You are right. But I just wanted to see the behavior. Anyway, where do
I look for a solution? Thanks.
Dec 17 '07 #3
On Dec 17, 12:07 pm, vunet <vunet...@gmail.comwrote:
On Dec 17, 12:01 pm, Martin Honnen <mahotr...@yahoo.dewrote:
vunet wrote:
It did not work in Safari 1.3.
It did not work? As said I have not tested that myself but blog entries
like <URL:http://web-graphics.com/mtarchive/001606.phpsuggest it works
with Safari versions where DOMParser is not implemented.
In Firefox, however, it gave me an
error: "Permission denied to call method XMLHttpRequest.open"
Well Firefox has DOMParser so I don't understand why you tried the data:
URL approach with Firefox.
--
Martin Honnen
http://JavaScript.FAQTs.com/

You are right. But I just wanted to see the behavior. Anyway, where do
I look for a solution? Thanks.
Sorry I missed the reference: http://web-graphics.com/mtarchive/001606.php
Thanks.
Dec 17 '07 #4
On Dec 17, 12:10 pm, vunet <vunet...@gmail.comwrote:
On Dec 17, 12:07 pm, vunet <vunet...@gmail.comwrote:
On Dec 17, 12:01 pm, Martin Honnen <mahotr...@yahoo.dewrote:
vunet wrote:
It did not work in Safari 1.3.
It did not work? As said I have not tested that myself but blog entries
like <URL:http://web-graphics.com/mtarchive/001606.phpsuggest it works
with Safari versions where DOMParser is not implemented.
In Firefox, however, it gave me an
error: "Permission denied to call method XMLHttpRequest.open"
Well Firefox has DOMParser so I don't understand why you tried the data:
URL approach with Firefox.
--
Martin Honnen
http://JavaScript.FAQTs.com/
You are right. But I just wanted to see the behavior. Anyway, where do
I look for a solution? Thanks.

Sorry I missed the reference:http://web-graphics.com/mtarchive/001606.php
Thanks.
As mentioned in one of the comments, it does not work on Mac Safari
1.3. I have exact same problem.
Dec 17 '07 #5
vunet wrote:
As mentioned in one of the comments, it does not work on Mac Safari
1.3. I have exact same problem.
Safari 1.3 is hopelessly outdated.
PointedEars
--
Prototype.js was written by people who don't know javascript for people
who don't know javascript. People who don't know javascript are not
the best source of advice on designing systems that use javascript.
-- Richard Cornford, cljs, <f8*******************@news.demon.co.uk>
Dec 17 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: david | last post by:
Hello, Is the code below correct ? I always get an seg fault on execution and the debugger points to c_str() ? Basically i want to convert the value std::string to char * within the iterator...
3
by: MJB | last post by:
I'm getting an IStream back from function xmlHttp.responsestream. I would like to convert this to a System.IO.Stream in order to work with it in my application. Has anyone encountered this and...
6
by: ORC | last post by:
I will use FieldInfo to import values from a XML file into the fields of an objects. But how to convert to the proper type like in this: public void Load(object MyClass) { foreach( FieldInfo...
2
by: Kenneth Keeley | last post by:
Hi, I am creating a news and events page on my Intranet site and I wish to allow people to upload an image with there news to my site. The text and image are all stored in an SQL database. I have...
3
by: Thomas Jansen | last post by:
When i try this example in IE http://www.captain.at/howto-ajax-xml-javascript.php I get DOMParser not defined, it works in Firefox. How do i make it work in IE? ~tj
3
by: aaronwmail-usenet | last post by:
Ok, I've seen many examples of javascript parsing an XML document retrieved from a file indicated by a URL. The problem is I need to parse (usually small) xml *strings* embedded in the...
8
by: davihigh | last post by:
My Friends: I am using std::ofstream (as well as ifstream), I hope that when i wrote in some std::string(...) with locale, ofstream can convert to UTF-8 encoding and save file to disk. So does...
7
by: groups | last post by:
This is my first foray into writing a generic method and maybe I've bitten off more than I can chew. My intent is to have a generic method that accepts a value name and that value will be...
3
gagandeepgupta16
by: gagandeepgupta16 | last post by:
I am having problem in parsing a string containing HTML Tags. The situation is somewhat similar to the following as quoted in some other forum : if (typeof DOMParser == "undefined") { ...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.