473,836 Members | 1,885 Online
Bytes | Software Development & Data Engineering Community
+ 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.parse FromString()

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 8374
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.phpsugge st 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...@yaho o.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.phpsugge st 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...@yaho o.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.phpsugge st 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...@yaho o.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.phpsugge st 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.de mon.co.uk>
Dec 17 '07 #6

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

Similar topics

8
2723
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 loop. ..... {
3
15331
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 written a conversion? TIA, Matt
6
5826
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 field in MyClass.GetType().GetFields() ) { field.SetValue(MyClass, String_From_XML_Representing_The_Field_Value); }
2
2794
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 been successful in uploading Jpeg files and downsampling them to a size that fits the web site. My next challange is to convert other common file types (BMP, GIF, TIF) to jpegs as well. Can this be done using the image object in ASP.net, if so...
3
12258
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
20645
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 javascript program or generated locally, and I can't find any way to do this exposed (even though some internal part of the engine clearly is capable of doing it). Am I missing something?
8
14347
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 ifstream. Something I found shows that, I need to have a proper codecvt to set it. I need more information, maybe a small piece of code sample. Thank you!
7
16736
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 returned from the source. My first attempt was as follows; (please ignore that error handling is not present in this example) public T GetValue<T(string objName) { T results;
3
2497
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") { DOMParser = function () {} DOMParser.prototype.parseFromString = function (str, contentType) { if (typeof ActiveXObject != "undefined") { var d =...
0
9654
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10565
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10237
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9348
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7770
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5641
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5809
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4436
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 we have to send another system
3
3094
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.