The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Newsgroups: netscape.public.mozilla.xml
From: Martin Honnen <mahotr...@yahoo.de>
Date: Wed, 02 Nov 2005 19:06:54 +0100
Local: Wed, Nov 2 2005 1:06 pm
Subject: Re: text to XML object (E4X)
hluz wrote: It is by design as the authors of the E4X specification wanted it, the > I'm having a problem with creating a XML object from a document received > via XMLHTTPRequest. > The following code: > var x = new XML(responseText) > gives javascript error: xml is a reserved identifier. specification for new XML(string) says to do the following (13.4.2): Let x = ToXML(string) and ToXML(string) is specified as follows (10.3.1): Parse the concatenation of <parent xmlns=", defaultNamespace, ">", string, "</parent>" So that way a conforming implementation has to parse e.g. <parent xmlns=""><?xml version="1.0"?><root /></parent> and that is not well-formed and gives a parse error. Thus if you want to parse a string with XML markup make sure you throw the XML declaration away before passing the string to new XML(). A regular expression to match the XML declaration is e.g. -- Martin Honnen You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||