SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Guru whisher's Avatar
    Join Date
    May 2006
    Location
    Kakiland
    Posts
    732
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    XMLHTTP check valid xml.

    Hi.
    I'm looking for a function to check if
    the xmlhttp.responseXML if a valid
    xml file.

    Could you help me, please ?


    Bye.

  2. #2
    I meant that to happen silver trophybronze trophy Raffles's Avatar
    Join Date
    Sep 2005
    Location
    Tanzania
    Posts
    4,662
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    You would be a lot better off doing this on the server side. However, if you really need to do it with JavaScript, you can use DOMParser (supported by Mozilla, Opera and Safari) and Microsoft's completely different (surprise, surprise) method, which is an ActiveX Object. See this thread where there is an example: http://www.tek-tips.com/viewthread.c...459948&page=12

    This is a clever implementation that creates a DOMParser wrapper for IE and browsers that support XHR but not DOMParser:

    http://erik.eae.net/archives/2005/07/03/20.19.18/


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •