Convert String to XML Object Where DOMParser Is Not Supported

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • vunet

    Convert String to XML Object Where DOMParser Is Not Supported

    I used DOMParser to convert a response string to XML object:

    DOMParser.parse FromString()

    In browsers where DOMParser is not supported (Safari 1-2 for my case)
    I cannot use DOMParser. What method is normally used to convert a
    string to XML object. For Firefox I use E4X. For IE I use
    ActiveXObject loadXML() method.

    Thanks.
  • Martin Honnen

    #2
    Re: Convert String to XML Object Where DOMParser Is Not Supported

    vunet wrote:
    It did not work in Safari 1.3.
    It did not work? As said I have not tested that myself but blog entries
    like <URL:http://web-graphics.com/mtarchive/001606.phpsugge st it works
    with Safari versions where DOMParser is not implemented.
    In Firefox, however, it gave me an
    error: "Permission denied to call method XMLHttpRequest. open"
    Well Firefox has DOMParser so I don't understand why you tried the data:
    URL approach with Firefox.


    --

    Martin Honnen

    Comment

    • vunet

      #3
      Re: Convert String to XML Object Where DOMParser Is Not Supported

      On Dec 17, 12:01 pm, Martin Honnen <mahotr...@yaho o.dewrote:
      vunet wrote:
      It did not work in Safari 1.3.
      >
      It did not work? As said I have not tested that myself but blog entries
      like <URL:http://web-graphics.com/mtarchive/001606.phpsugge st it works
      with Safari versions where DOMParser is not implemented.
      >
      In Firefox, however, it gave me an
      error: "Permission denied to call method XMLHttpRequest. open"
      >
      Well Firefox has DOMParser so I don't understand why you tried the data:
      URL approach with Firefox.
      >
      --
      >
      Martin Honnen
      http://JavaScript.FAQTs.com/
      You are right. But I just wanted to see the behavior. Anyway, where do
      I look for a solution? Thanks.

      Comment

      • vunet

        #4
        Re: Convert String to XML Object Where DOMParser Is Not Supported

        On Dec 17, 12:07 pm, vunet <vunet...@gmail .comwrote:
        On Dec 17, 12:01 pm, Martin Honnen <mahotr...@yaho o.dewrote:
        >
        >
        >
        vunet wrote:
        It did not work in Safari 1.3.
        >
        It did not work? As said I have not tested that myself but blog entries
        like <URL:http://web-graphics.com/mtarchive/001606.phpsugge st it works
        with Safari versions where DOMParser is not implemented.
        >
        In Firefox, however, it gave me an
        error: "Permission denied to call method XMLHttpRequest. open"
        >
        Well Firefox has DOMParser so I don't understand why you tried the data:
        URL approach with Firefox.
        >
        --
        >>
        You are right. But I just wanted to see the behavior. Anyway, where do
        I look for a solution? Thanks.
        Sorry I missed the reference: http://web-graphics.com/mtarchive/001606.php
        Thanks.

        Comment

        • vunet

          #5
          Re: Convert String to XML Object Where DOMParser Is Not Supported

          On Dec 17, 12:10 pm, vunet <vunet...@gmail .comwrote:
          On Dec 17, 12:07 pm, vunet <vunet...@gmail .comwrote:
          >
          >
          >
          On Dec 17, 12:01 pm, Martin Honnen <mahotr...@yaho o.dewrote:
          >
          vunet wrote:
          It did not work in Safari 1.3.
          >
          It did not work? As said I have not tested that myself but blog entries
          like <URL:http://web-graphics.com/mtarchive/001606.phpsugge st it works
          with Safari versions where DOMParser is not implemented.
          >
          In Firefox, however, it gave me an
          error: "Permission denied to call method XMLHttpRequest. open"
          >
          Well Firefox has DOMParser so I don't understand why you tried the data:
          URL approach with Firefox.
          >
          --
          >>
          You are right. But I just wanted to see the behavior. Anyway, where do
          I look for a solution? Thanks.
          >
          Sorry I missed the reference:http://web-graphics.com/mtarchive/001606.php
          Thanks.
          As mentioned in one of the comments, it does not work on Mac Safari
          1.3. I have exact same problem.

          Comment

          • Thomas 'PointedEars' Lahn

            #6
            Re: Convert String to XML Object Where DOMParser Is Not Supported

            vunet wrote:
            As mentioned in one of the comments, it does not work on Mac Safari
            1.3. I have exact same problem.
            Safari 1.3 is hopelessly outdated.


            PointedEars
            --
            Prototype.js was written by people who don't know javascript for people
            who don't know javascript. People who don't know javascript are not
            the best source of advice on designing systems that use javascript.
            -- Richard Cornford, cljs, <f806at$ail$1$8 300dec7@news.de mon.co.uk>

            Comment

            Working...