Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. strange problem with firefox xml parser

strange problem with firefox xml parser

Scheduled Pinned Locked Moved Web Development
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Ponzano Paolo
    wrote on last edited by
    #1

    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

    B D 2 Replies Last reply
    0
    • P Ponzano 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

      B Offline
      B Offline
      Bradml
      wrote on last edited by
      #2

      Shog is the man you want for this question


      Brad Australian - Bradml on "MVP Status" If this was posted in a programming board please rate my answer

      1 Reply Last reply
      0
      • P Ponzano 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

        D Offline
        D Offline
        Dmitry Khudorozhkov
        wrote on last edited by
        #3

        The 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)

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups