Skip to content
Snippets Groups Projects
Commit 31c13ca1 authored by Jonas Wallden's avatar Jonas Wallden
Browse files

Added set_tag_name() accessor.

Rev: lib/modules/Parser.pmod/XML.pmod/Tree.pmod:1.52
parent 55c58b29
No related branches found
No related tags found
No related merge requests found
#pike __REAL_VERSION__ #pike __REAL_VERSION__
/* /*
* $Id: Tree.pmod,v 1.51 2004/05/14 18:37:31 grubba Exp $ * $Id: Tree.pmod,v 1.52 2004/06/23 15:13:40 jonasw Exp $
* *
*/ */
...@@ -734,6 +734,14 @@ static class VirtualNode { ...@@ -734,6 +734,14 @@ static class VirtualNode {
return (mTagName); return (mTagName);
} }
//! Change the tag name destructively. Can only be used on element and
//! processing-instruction nodes.
void set_tag_name(string name)
{
if (mNodeType & (XML_ELEMENT | XML_PI))
mTagName = name;
}
//! Return fully qualified name of the element node. //! Return fully qualified name of the element node.
string get_full_name() string get_full_name()
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment