[xmljs-users] xmlUnescapeHTMLToXML problem in Mozilla 1.5 and 1.6
Brought to you by:
djoham,
witchhunter
|
From: James S. E. <jam...@co...> - 2004-02-07 23:56:05
|
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"
|