Get the list of attributes of an XML node.

DESCRIPTION:

This returns a named character vector giving the name-value pairs of attributes of an XMLNode object which is part of an XML document.

USAGE:

 xmlAttrs(node)

ARGUMENTS:

node
The XMLNode object whose attributes are to be extracted.

VALUE:

A named character vector, where the names are the attribute names and the elements are the corresponding values. This corresponds to the (attr, "value") pairs in the XML tag <tag attr1="value1" attr2="value2"

AUTHOR(S):

Duncan Temple Lang

REFERENCES:

http://www.w3.org

SEE ALSO:

, ,

EXAMPLES:

 fileName <- system.file("exampleData", "mtcars.xml", package="XML")
 doc <- xmlTreeParse(fileName)

 xmlAttrs(doc$doc$children[["dataset"]])