Compartilhar via


dirxml method

Logs an XML node object to the console.

 

Syntax

console.dirxml(value);

Parameters

  • value [in]
    Type: xml node

Return value

This method does not return a value.

Remarks

Here is an example of how this would be used.

var parser = new DOMParser(); 
var xml = parser.parseFromString("<books isbn=\"1111\"><book><title>Hello world!</title></book></books>", "application/xml");
console.dirxml(xml);

See also

console

Using the F12 Tools Console to View Errors and Status