Re: [xmljs-users] xmlUnescapeHTMLToXML problem in Mozilla 1.5 and 1.6
Brought to you by:
djoham,
witchhunter
From: David J. <dj...@ya...> - 2004-02-08 04:25:11
|
<oops, forgot to cc the list. I'm doing so now and added another question> Hi James, No clue here. I just tried the Linux version of Mozilla 1.6 with the xmlIOLoadLocalData sample application and it worked fine. Are you using Windows? If so, what happens when you go to http://xmljs.sourceforge.net/website/tools-loadLocalXML.html and run the sample? Does it work? If so, can you see if there is any difference in what your php is putting out vs. the text file? Is your php script on the open internet somewhere where I can take a look at it? David --- "James S. Elkins" <jam...@co...> wrote: > From the Desk of James S. ElkinsDavid, > > I'm having a strange problem with xmlIOLoadLocalData in Mozilla 1.5 > and 1.6. It's strange because it's happening in one application I've > written, but not in another. Here's what's happening: > > My PHP server application escapes XML as follows: > > $xml = "<?xml version=\"1.0\" ?>" > . " <personal-agent > member=\"".$this->member->get_handle()."\" > messages=\"".$this->new_messages."\" alerts=\"".$this->alerts."\" > posts=\"".$this->new_posts."\" > events=\"".$this->events."\"></personal-agent>"; > $xml = str_replace('<',chr(171),$xml); > $xml = str_replace('>',chr(187),$xml); > $xml = str_replace('&',chr(167),$xml); > > In Internet Explorer 6, xmlUnescapeHTMLToXML correctly unescapes this > as follows (for example): > > <?xml version="1.0" ?> > <personal-agent member="member_name" messages="1" alerts="0" posts="5" > events="0"></personal-agent> > > In Mozilla, however, xmlUnescapeHTMLToXML returns this: > > <?xml version="1.0" ?< > <personal-agent member="member_name" messages="1" alerts="0" posts="5" > events="0"<</personal-agent< > > In other words, it unescapes both greater-than and less-than symbols > as less-than sysmbols. Any ideas what might be causing this? > > Thanks, > James > authorized agent > > > James S. Elkins > 3606 S. Lee Ave. > Oklahoma City OK 73109 > > E-mail: jam...@co... > WWW: http://digitalarcana.net > > Specializing in: > > Web Development > Shopping Carts > Discussion Boards > Live Chat Systems > Content Management > E-Commerce Solutions > User Interface Design > Custom Integration > Standards Compatibility > > > PHP · MySQL · DHTML · CSS · XML > > digital arcana > > "Weaving Wicked Webs > Since 1994" > > > __________________________________ Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online. http://taxes.yahoo.com/filing.html |