strange problem with firefox xml parser
-
Hi, I've got a problem with XML parser of FFOX, I've some xml files that have this structure : [code] {05215E96-BF43-4B5B-A10E-38CBC8449FE1} /NR/rdonlyres/E64D2C29-5A93-4DA8-845B-C0656993D581/0/lyons.jpg Text1. /NR/rdonlyres/163B38BA-561C-40B9-B2D5-358827478B8C/0/kickoff.jpg Text2. /NR/rdonlyres/F3DBC164-E3F0-4486-9707-F324252A27FC/0/pichot.jpg Text3. /NR/rdonlyres/A26D3961-3C37-421C-AA1E-E2184BD98804/0/sailortry.jpg Text4. [/code] with IE everything runs clear, with FFOX I've blank nodes betweens the real ones in corrispondence of \n, so I've for example <"\n "><"\n "><"\n ">.... Is there a way to tell the XML parser to remove them? Is there also a methos as in IE to search for nodes with
currentNode.selectSingleNode("//PhotoCaption")???
Thanks Paolo -
Hi, I've got a problem with XML parser of FFOX, I've some xml files that have this structure : [code] {05215E96-BF43-4B5B-A10E-38CBC8449FE1} /NR/rdonlyres/E64D2C29-5A93-4DA8-845B-C0656993D581/0/lyons.jpg Text1. /NR/rdonlyres/163B38BA-561C-40B9-B2D5-358827478B8C/0/kickoff.jpg Text2. /NR/rdonlyres/F3DBC164-E3F0-4486-9707-F324252A27FC/0/pichot.jpg Text3. /NR/rdonlyres/A26D3961-3C37-421C-AA1E-E2184BD98804/0/sailortry.jpg Text4. [/code] with IE everything runs clear, with FFOX I've blank nodes betweens the real ones in corrispondence of \n, so I've for example <"\n "><"\n "><"\n ">.... Is there a way to tell the XML parser to remove them? Is there also a methos as in IE to search for nodes with
currentNode.selectSingleNode("//PhotoCaption")???
Thanks Paolo -
Hi, I've got a problem with XML parser of FFOX, I've some xml files that have this structure : [code] {05215E96-BF43-4B5B-A10E-38CBC8449FE1} /NR/rdonlyres/E64D2C29-5A93-4DA8-845B-C0656993D581/0/lyons.jpg Text1. /NR/rdonlyres/163B38BA-561C-40B9-B2D5-358827478B8C/0/kickoff.jpg Text2. /NR/rdonlyres/F3DBC164-E3F0-4486-9707-F324252A27FC/0/pichot.jpg Text3. /NR/rdonlyres/A26D3961-3C37-421C-AA1E-E2184BD98804/0/sailortry.jpg Text4. [/code] with IE everything runs clear, with FFOX I've blank nodes betweens the real ones in corrispondence of \n, so I've for example <"\n "><"\n "><"\n ">.... Is there a way to tell the XML parser to remove them? Is there also a methos as in IE to search for nodes with
currentNode.selectSingleNode("//PhotoCaption")???
Thanks PaoloThe problem is in how MS IE and FireFox XML parsers treat whitespace nodes. See this (read 1st and 2nd paragraphs). At the end of the section there is a link to a solution.
------------------------- Don't worry, be happy :o)