Extraces the tag name of an XMLNode object.

DESCRIPTION:

Each XMLNode object has a tag name introduced in the <name ...> entry in an XML document. This function returns that name.

USAGE:

xmlName(node, full = FALSE)

ARGUMENTS:

node
The XMLNode object whose tag name is being requested.
full
a logical value indicating whether to prepend the namespace prefix, if there is one, or return just the name of the XML element/node. TRUE means prepend the prefix.

VALUE:

A character vector of length textit{1} which is the node$name entry.

AUTHOR(S):

Duncan Temple Lang

REFERENCES:

http://www.w3.org/XML, http://www.jclark.com/xml, http://www.omegahat.org

SEE ALSO:

, ,

EXAMPLES:

 fileName <- system.file("exampleData", "test.xml",package="XML")
 doc <- xmlTreeParse(fileName)
 xmlName(xmlRoot(doc)[[1]])