jQuery API

jQuery.isXMLDoc()

jQuery.isXMLDoc( node ) Returns: Boolean

Description: Check to see if a DOM node is within an XML document (or is an XML document).

  • version added: 1.1.4jQuery.isXMLDoc( node )

    nodeThe DOM node that will be checked to see if it's in an XML document.

Example:

Check an object to see if it's in an XML document.

jQuery.isXMLDoc(document) // false
jQuery.isXMLDoc(document.body) // false

Support and Contributions

Need help with jQuery.isXMLDoc() or have a question about it? Visit the jQuery Forum or the #jquery channel on irc.freenode.net.

Think you've discovered a jQuery bug related to jQuery.isXMLDoc()? Report it to the jQuery core team.

Found a problem with this documentation? Report it to the jQuery API team.

* All fields are required