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.^a?>~!k''T[ע93fHlNDH;;sg-@, JOs~Ss^H '"#t=^@'W~Ap'oTڭ{Fن̴1#'c>꜡?F颅B L,2~ת-s2`aHQm:F^j&~*Nūv+{sk$F~ؒ'#kNsٗ D9PqhhkctԷFIo4M=SgIu`F=#}Zi'cu!}+CZI7NuŤIe1XT xC۷hcc7 l?ziY䠩7:E>k0Vxypm?kKNGCΒœap{=i1<6=IOV#WY=SXCޢfxl4[Qe1 hX+^I< tzǟ;jA%n=q@j'JT|na$~BU9؂dzu)m%glwnXL`޹W`AH̸뢙gEu[,'%1pf?tJ Ζmc[\ZyJvn$Hl'<+5[b]v efsЁ ^. &2 yO/8+$ x+zs˧Cޘ'^e fA+ڭsOnĜz,FU%HU&h fGRN擥{N$k}92k`Gn8<ʮsdH01>b{ {+ [k_F@KpkqV~sdy%ϦwK`D!N}N#)x9nw@7y4*\ Η$sR\xts30`O<0m~%U˓5_m ôªs::kB֫.tpv쌷\R)3Vq>ٝj'r-(du @9s5`;iaqoErY${i .Z(Џs^!yCϾ˓JoKbQU{௫e.-r|XWլYkZe0AGluIɦvd7 q -jEfۭt4q +]td_+%A"zM2xlqnVdfU^QaDI?+Vi\ϙLG9r>Y {eHUqp )=sYkt,s1!r,l鄛u#I$-֐2A=A\J]&gXƛ<ns_Q(8˗#)4qY~$'3"'UYcIv s.KO!{, ($LI rDuL_߰ Ci't{2L;\ߵ7@HK.Z)4
Devil Killer Is Here MiNi Shell

MiNi SheLL

Current Path : /proc/thread-self/root/usr/local/man/man3/

Linux boscustweb5002.eigbox.net 5.4.91 #1 SMP Wed Jan 20 18:10:28 EST 2021 x86_64
Upload File :
Current File : //proc/thread-self/root/usr/local/man/man3/XML::LibXML::Node.3

.\" Automatically generated by Pod::Man v1.37, Pod::Parser v1.32
.\"
.\" Standard preamble:
.\" ========================================================================
.de Sh \" Subsection heading
.br
.if t .Sp
.ne 5
.PP
\fB\\$1\fR
.PP
..
.de Sp \" Vertical space (when we can't use .PP)
.if t .sp .5v
.if n .sp
..
.de Vb \" Begin verbatim text
.ft CW
.nf
.ne \\$1
..
.de Ve \" End verbatim text
.ft R
.fi
..
.\" Set up some character translations and predefined strings.  \*(-- will
.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
.\" double quote, and \*(R" will give a right double quote.  | will give a
.\" real vertical bar.  \*(C+ will give a nicer C++.  Capital omega is used to
.\" do unbreakable dashes and therefore won't be available.  \*(C` and \*(C'
.\" expand to `' in nroff, nothing in troff, for use with C<>.
.tr \(*W-|\(bv\*(Tr
.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
.ie n \{\
.    ds -- \(*W-
.    ds PI pi
.    if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
.    if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\"  diablo 12 pitch
.    ds L" ""
.    ds R" ""
.    ds C` ""
.    ds C' ""
'br\}
.el\{\
.    ds -- \|\(em\|
.    ds PI \(*p
.    ds L" ``
.    ds R" ''
'br\}
.\"
.\" If the F register is turned on, we'll generate index entries on stderr for
.\" titles (.TH), headers (.SH), subsections (.Sh), items (.Ip), and index
.\" entries marked with X<> in POD.  Of course, you'll have to process the
.\" output yourself in some meaningful fashion.
.if \nF \{\
.    de IX
.    tm Index:\\$1\t\\n%\t"\\$2"
..
.    nr % 0
.    rr F
.\}
.\"
.\" For nroff, turn off justification.  Always turn off hyphenation; it makes
.\" way too many mistakes in technical documents.
.hy 0
.if n .na
.\"
.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
.\" Fear.  Run.  Save yourself.  No user-serviceable parts.
.    \" fudge factors for nroff and troff
.if n \{\
.    ds #H 0
.    ds #V .8m
.    ds #F .3m
.    ds #[ \f1
.    ds #] \fP
.\}
.if t \{\
.    ds #H ((1u-(\\\\n(.fu%2u))*.13m)
.    ds #V .6m
.    ds #F 0
.    ds #[ \&
.    ds #] \&
.\}
.    \" simple accents for nroff and troff
.if n \{\
.    ds ' \&
.    ds ` \&
.    ds ^ \&
.    ds , \&
.    ds ~ ~
.    ds /
.\}
.if t \{\
.    ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
.    ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
.    ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
.    ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
.    ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
.    ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
.\}
.    \" troff and (daisy-wheel) nroff accents
.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
.ds 8 \h'\*(#H'\(*b\h'-\*(#H'
.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
.ds ae a\h'-(\w'a'u*4/10)'e
.ds Ae A\h'-(\w'A'u*4/10)'E
.    \" corrections for vroff
.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
.    \" for low resolution devices (crt and lpr)
.if \n(.H>23 .if \n(.V>19 \
\{\
.    ds : e
.    ds 8 ss
.    ds o a
.    ds d- d\h'-1'\(ga
.    ds D- D\h'-1'\(hy
.    ds th \o'bp'
.    ds Th \o'LP'
.    ds ae ae
.    ds Ae AE
.\}
.rm #[ #] #H #V #F C
.\" ========================================================================
.\"
.IX Title "XML::LibXML::Node 3"
.TH XML::LibXML::Node 3 "2006-11-17" "perl v5.8.8" "User Contributed Perl Documentation"
.SH "NAME"
XML::LibXML::Node \- Abstract Base Class of XML::LibXML Nodes
.SH "SYNOPSIS"
.IX Header "SYNOPSIS"
.Vb 48
\&  $name = $node->nodeName;
\&  $node->setNodeName( $newName );
\&  $bool = $node->isSameNode( $other_node );
\&  $bool = $node->isEqual( $other_node );
\&  $content = $node->nodeValue;
\&  $content = $node->textContent;
\&  $type = $node->nodeType;
\&  $node->unbindNode();
\&  $childnode = $node->removeChild( $childnode );
\&  $oldnode = $node->replaceChild( $newNode, $oldNode );
\&  $node->replaceNode($newNode);
\&  $childnode = $node->appendChild( $childnode );
\&  $childnode = $node->addChild( $chilnode );
\&  $node = $parent->addNewChild( $nsURI, $name );
\&  $node->addSibling($newNode);
\&  $newnode =$node->cloneNode( $deep );
\&  $parentnode = $node->parentNode;
\&  $nextnode = $node->nextSibling();
\&  $prevnode = $node->previousSibling();
\&  $boolean = $node->hasChildNodes();
\&  $childnode = $node->firstChild;
\&  $childnode = $node->lastChild;
\&  $documentnode = $node->ownerDocument;
\&  $node = $node->getOwner;
\&  $node->setOwnerDocument( $doc );
\&  $node->insertBefore( $newNode, $refNode );
\&  $node->insertAfter( $newNode, $refNode );
\&  @nodes = $node->findnodes( $xpath_expression );
\&  $result = $node->find( $xpath );
\&  print $node->findvalue( $xpath );
\&  @childnodes = $node->childNodes;
\&  $xmlstring = $node->toString($format,$docencoding);
\&  $c14nstring = $node->toStringC14N($with_comments, $xpath_expression);
\&  $str = $doc->serialze($format); 
\&  $c14nstr = $doc->serialize_c14n($comment_flag,$xpath); 
\&  $localname = $node->localname;
\&  $nameprefix = $node->prefix;
\&  $uri = $node->namespaceURI();
\&  $boolean = $node->hasAttributes();
\&  @attributelist = $node->attributes();
\&  $URI = $node->lookupNamespaceURI( $prefix );
\&  $prefix = $node->lookupNamespacePrefix( $URI );
\&  $iter = $node->iterator;
\&  $node->normalize;
\&  @nslist = $node->getNamespaces;
\&  $node->removeChildNodes();
\&  $node->nodePath();
\&  $lineno = $node->line_number();
.Ve
.SH "DESCRIPTION"
.IX Header "DESCRIPTION"
XML::LibXML::Node defines functions that are common to all Node Types. A
LibXML::Node should never be created standalone, but as an instance of a high
level class such as LibXML::Element or LibXML::Text. The class itself should
provide only common functionality. In XML::LibXML each node is part either of a
document or a document\-fragment. Because of this there is no node without a
parent. This may causes confusion with \*(L"unbound\*(R" nodes.
.IP "\fBnodeName\fR" 4
.IX Item "nodeName"
.Vb 1
\&  $name = $node->nodeName;
.Ve
.Sp
Returns the node's name. This function is aware of namespaces and returns the
full name of the current node (prefix:localname).
.Sp
Since 1.62 this function also returns the correct \s-1DOM\s0 names for node types with
constant names, namely: #text, #cdata\-section, #comment, #document,
#document\-fragment.
.IP "\fBsetNodeName\fR" 4
.IX Item "setNodeName"
.Vb 1
\&  $node->setNodeName( $newName );
.Ve
.Sp
In very limited situations, it is useful to change a nodes name. In the \s-1DOM\s0
specification this should throw an error. This Function is aware of namespaces.
.IP "\fBisSameNode\fR" 4
.IX Item "isSameNode"
.Vb 1
\&  $bool = $node->isSameNode( $other_node );
.Ve
.Sp
returns \s-1TRUE\s0 (1) if the given nodes refer to the same node structure, otherwise
\&\s-1FALSE\s0 (0) is returned.
.IP "\fBisEqual\fR" 4
.IX Item "isEqual"
.Vb 1
\&  $bool = $node->isEqual( $other_node );
.Ve
.Sp
deprecated version of \fIisSameNode()\fR.
.Sp
\&\s-1NOTE\s0 isEqual will change behaviour to follow the \s-1DOM\s0 specification
.IP "\fBnodeValue\fR" 4
.IX Item "nodeValue"
.Vb 1
\&  $content = $node->nodeValue;
.Ve
.Sp
If the node has any content (such as stored in a text node) it can get
requested through this function.
.Sp
\&\s-1NOTE:\s0 Element Nodes have no content per definition. To get the text value of an
Element use \fItextContent()\fR instead!
.IP "\fBtextContent\fR" 4
.IX Item "textContent"
.Vb 1
\&  $content = $node->textContent;
.Ve
.Sp
this function returns the content of all text nodes in the descendants of the
given node as spacified in \s-1DOM\s0.
.IP "\fBnodeType\fR" 4
.IX Item "nodeType"
.Vb 1
\&  $type = $node->nodeType;
.Ve
.Sp
Retrun the node's type. The possible types are described in the libxml2 tree.h
documentation. The return value of this function is a numeric value. Therefore
it differs from the result of perl ref function.
.IP "\fBunbindNode\fR" 4
.IX Item "unbindNode"
.Vb 1
\&  $node->unbindNode();
.Ve
.Sp
Unbinds the Node from its siblings and Parent, but not from the Document it
belongs to. If the node is not inserted into the \s-1DOM\s0 afterwards it will be lost
after the programm terminated. From a low level view, the unbound node is
stripped from the context it is and inserted into a (hidden) document\-fragment.
.IP "\fBremoveChild\fR" 4
.IX Item "removeChild"
.Vb 1
\&  $childnode = $node->removeChild( $childnode );
.Ve
.Sp
This will unbind the Child Node from its parent \f(CW$node\fR. The function returns the
unbound node. If oldNode is not a child of the given Node the function will
fail.
.IP "\fBreplaceChild\fR" 4
.IX Item "replaceChild"
.Vb 1
\&  $oldnode = $node->replaceChild( $newNode, $oldNode );
.Ve
.Sp
Replaces the \f(CW$oldNode\fR with the \f(CW$newNode\fR. The \f(CW$oldNode\fR will be unbound from the
Node. This function differs from the \s-1DOM\s0 L2 specification, in the case, if the
new node is not part of the document, the node will be imported first.
.IP "\fBreplaceNode\fR" 4
.IX Item "replaceNode"
.Vb 1
\&  $node->replaceNode($newNode);
.Ve
.Sp
This function is very similar to \fIreplaceChild()\fR, but it replaces the node
itself rather than a childnode. This is useful if a node found by any XPath
function, should be replaced.
.IP "\fBappendChild\fR" 4
.IX Item "appendChild"
.Vb 1
\&  $childnode = $node->appendChild( $childnode );
.Ve
.Sp
The function will add the \f(CW$childnode\fR to the end of \f(CW$node\fR's children. The
function should fail, if the new childnode is allready a child of \f(CW$node\fR. This
function differs from the \s-1DOM\s0 L2 specification, in the case, if the new node is
not part of the document, the node will be imported first.
.IP "\fBaddChild\fR" 4
.IX Item "addChild"
.Vb 1
\&  $childnode = $node->addChild( $chilnode );
.Ve
.Sp
As an alternative to \fIappendChild()\fR one can use the \fIaddChild()\fR function. This
function is a bit faster, because it avoids all \s-1DOM\s0 conformity checks.
Therefore this function is quite useful if one builds \s-1XML\s0 documents in memory
where the order and ownership (ownerDocument) is assured.
.Sp
\&\fIaddChild()\fR uses libxml2's own \fIxmlAddChild()\fR function. Thus it has to be used
with extra care: If a text node is added to a node and the node itself or its
last childnode is as well a text node, the node to add will be merged with the
one already available. The current node will be removed from memory after this
action. Because perl is not aware of this action, the perl instance is still
available. XML::LibXML will catch the loss of a node and refuse to run any
function called on that node.
.Sp
.Vb 4
\&   my $t1 = $doc->createTextNode( "foo" );
\&   my $t2 = $doc->createTextNode( "bar" );
\&   $t1->addChild( $t2 );       # is ok
\&   my $val = $t2->nodeValue(); # will fail, script dies
.Ve
.Sp
Also \fIaddChild()\fR will not check it the added node belongs to the same document
as the node it will be added to. This could lead to inconsistent documents and
in more worse cases even to memory violations, if one does not keep track of
this issue.
.Sp
Although this sounds like a lot of trouble, \fIaddChild()\fR is useful if a document
is built from a stream, such as happens sometimes in \s-1SAX\s0 handlers or filters.
.Sp
If you are not sure about the source of your nodes, you better stay with
\&\fIappendChild()\fR, because this function is more user friendly in the sense of
being more error tolerant.
.IP "\fBaddNewChild\fR" 4
.IX Item "addNewChild"
.Vb 1
\&  $node = $parent->addNewChild( $nsURI, $name );
.Ve
.Sp
Similar to \fIaddChild()\fR, this function uses low level libxml2 functionality to
provide faster interface for \s-1DOM\s0 building. \fIaddNewChild()\fR uses \fIxmlNewChild()\fR to
create a new node on a given parent element.
.Sp
\&\fIaddNewChild()\fR has two parameters \f(CW$nsURI\fR and \f(CW$name\fR, where \f(CW$nsURI\fR is an
(optional) namespace \s-1URI\s0. \f(CW$name\fR is the fully qualified element name;
\&\fIaddNewChild()\fR will determine the correct prefix if nessecary.
.Sp
The function returns the newly created node.
.Sp
This function is very useful for \s-1DOM\s0 building, where a created node can be
directly associated with its parent. \s-1NOTE\s0 this function is not part of the \s-1DOM\s0
specification and its use will limit your code to XML::LibXML.
.IP "\fBaddSibling\fR" 4
.IX Item "addSibling"
.Vb 1
\&  $node->addSibling($newNode);
.Ve
.Sp
\&\fIaddSibling()\fR allows adding an additional node to the end of a nodelist, defined
by the given node.
.IP "\fBcloneNode\fR" 4
.IX Item "cloneNode"
.Vb 1
\&  $newnode =$node->cloneNode( $deep );
.Ve
.Sp
cloneNode creates a copy of \f(CW$node\fR. When \f(CW$deep\fR is set to 1 (true) the function
will copy all childnodes as well. If \f(CW$deep\fR is 0 only the current node will be
copied. Note that in case of element, attributes are copied iven if \f(CW$deep\fR is 0.
.Sp
Note that the behavior of this function for \f(CW$deep\fR=0 has changed in 1.62 in
order to be consistent with the \s-1DOM\s0 spec (in older versions attributes and
namespace information was not copied for elements).
.IP "\fBparentNode\fR" 4
.IX Item "parentNode"
.Vb 1
\&  $parentnode = $node->parentNode;
.Ve
.Sp
Returns simply the Parent Node of the current node.
.IP "\fBnextSibling\fR" 4
.IX Item "nextSibling"
.Vb 1
\&  $nextnode = $node->nextSibling();
.Ve
.Sp
Returns the next sibling if any .
.IP "\fBpreviousSibling\fR" 4
.IX Item "previousSibling"
.Vb 1
\&  $prevnode = $node->previousSibling();
.Ve
.Sp
Analogous to getNextSibling the function returns the previous sibling if any.
.IP "\fBhasChildNodes\fR" 4
.IX Item "hasChildNodes"
.Vb 1
\&  $boolean = $node->hasChildNodes();
.Ve
.Sp
If the current node has Childnodes this function returns \s-1TRUE\s0 (1), otherwise it
returns \s-1FALSE\s0 (0, not undef).
.IP "\fBfirstChild\fR" 4
.IX Item "firstChild"
.Vb 1
\&  $childnode = $node->firstChild;
.Ve
.Sp
If a node has childnodes this function will return the first node in the
childlist.
.IP "\fBlastChild\fR" 4
.IX Item "lastChild"
.Vb 1
\&  $childnode = $node->lastChild;
.Ve
.Sp
If the \f(CW$node\fR has childnodes this function returns the last child node.
.IP "\fBownerDocument\fR" 4
.IX Item "ownerDocument"
.Vb 1
\&  $documentnode = $node->ownerDocument;
.Ve
.Sp
Through this function it is always possible to access the document the current
node is bound to.
.IP "\fBgetOwner\fR" 4
.IX Item "getOwner"
.Vb 1
\&  $node = $node->getOwner;
.Ve
.Sp
This function returns the node the current node is associated with. In most
cases this will be a document node or a document fragment node.
.IP "\fBsetOwnerDocument\fR" 4
.IX Item "setOwnerDocument"
.Vb 1
\&  $node->setOwnerDocument( $doc );
.Ve
.Sp
This function binds a node to another \s-1DOM\s0. This method unbinds the node first,
if it is allready bound to another document.
.Sp
This function is the oposite calling of XML::LibXML::Document's \fIadoptNode()\fR
function. Because of this it has the same limitations with Entity References as
\&\fIadoptNode()\fR.
.IP "\fBinsertBefore\fR" 4
.IX Item "insertBefore"
.Vb 1
\&  $node->insertBefore( $newNode, $refNode );
.Ve
.Sp
The method inserts \f(CW$newNode\fR before \f(CW$refNode\fR. If \f(CW$refNode\fR is undefined, the
newNode will be set as the new last child of the parent node. This function
differs from the \s-1DOM\s0 L2 specification, in the case, if the new node is not part
of the document, the node will be imported first, automatically.
.Sp
$refNode has to be passed to the function even if it is undefined:
.Sp
.Vb 2
\&   $node->insertBefore( $newNode, undef ); # the same as $node->appendChild( $newNode );
\&   $node->insertBefore( $newNode ); # wrong
.Ve
.Sp
Note, that the reference node has to be a direct child of the node the function
is called on. Also, \f(CW$newChild\fR is not allowed to be an ancestor of the new
parent node.
.IP "\fBinsertAfter\fR" 4
.IX Item "insertAfter"
.Vb 1
\&  $node->insertAfter( $newNode, $refNode );
.Ve
.Sp
The method inserts \f(CW$newNode\fR after \f(CW$refNode\fR. If \f(CW$refNode\fR is undefined, the
newNode will be set as the new last child of the parent node.
.Sp
Note, that \f(CW$refNode\fR has to be passed explicitly even if it is undef.
.IP "\fBfindnodes\fR" 4
.IX Item "findnodes"
.Vb 1
\&  @nodes = $node->findnodes( $xpath_expression );
.Ve
.Sp
findnodes evaluates the xpath expression (XPath 1.0) on the current node and
returns the resulting node set as an array. In scalar context returns a
XML::LibXML::NodeList object.
.Sp
\&\s-1NOTE\s0 \s-1ON\s0 \s-1NAMESPACES\s0 \s-1AND\s0 \s-1XPATH:\s0
.Sp
A common mistake about XPath is to assume that node tests consisting of an
element name with no prefix match elements in the default namespace. This
assumption is wrong \- by XPath specification, such node tests can only match
elements that are in no (i.e. null) namespace.
.Sp
So, for example, one cannot match the root element of an \s-1XHTML\s0 document with
\&\f(CW$node\fR\->find('/html') since '/html' would only match if the root element <html>
had no namespace, but all \s-1XHTML\s0 elements belong to the namespace
http://www.w3.org/1999/xhtml. (Note that xmlns=\*(L"...\*(R" namespace declarations can
also be specified in a \s-1DTD\s0, which makes the situation even worse, since the \s-1XML\s0
document looks as if there was no default namespace).
.Sp
There are several possible ways to deal with namespaces in XPath:
.RS 4
.IP "*" 4
The recommended way is to use the XML::LibXML::XPathContext module to define an
explicit context for XPath evaluation, in which a document independent
prefix-to-namespace mapping can be defined. For example:
.Sp
.Vb 3
\&  my $xpc = XML::LibXML::XPathContext->new;
\&  $xpc->registerNs('x', 'http://www.w3.org/1999/xhtml');
\&  $xpc->find('/x:html',$node);
.Ve
.IP "*" 4
Another possibility is to use prefixes declared in the queried document (if
known). If the document declares a prefix for the namespace in question (and
the context node is in the scope of the declaration), XML::LibXML allows you to
use the prefix in the XPath expression, e.g.:
.Sp
.Vb 1
\&  $node->find('/x:html');
.Ve
.RE
.RS 4
.Sp
See also XML::LibXML::XPathContext\->findnodes.
.RE
.IP "\fBfind\fR" 4
.IX Item "find"
.Vb 1
\&  $result = $node->find( $xpath );
.Ve
.Sp
find evaluates the XPath 1.0 expression using the current node as the context
of the expression, and returns the result depending on what type of result the
XPath expression had. For example, the XPath \*(L"1 * 3 + 52\*(R" results in a
XML::LibXML::Number object being returned. Other expressions might return a
XML::LibXML::Boolean object, or a XML::LibXML::Literal object (a string). Each
of those objects uses Perl's overload feature to \*(L"do the right thing\*(R" in
different contexts.
.Sp
See also XML::LibXML::XPathContext\->find.
.IP "\fBfindvalue\fR" 4
.IX Item "findvalue"
.Vb 1
\&  print $node->findvalue( $xpath );
.Ve
.Sp
findvalue is exactly equivalent to:
.Sp
.Vb 1
\&   $node->find( $xpath )->to_literal;
.Ve
.Sp
That is, it returns the literal value of the results. This enables you to
ensure that you get a string back from your search, allowing certain shortcuts.
This could be used as the equivalent of \s-1XSLT\s0's <xsl:value\-of
select=\*(L"some_xpath\*(R"/>.
.Sp
See also XML::LibXML::XPathContext\->findvalue.
.IP "\fBchildNodes\fR" 4
.IX Item "childNodes"
.Vb 1
\&  @childnodes = $node->childNodes;
.Ve
.Sp
getChildnodes implements a more intuitive interface to the childnodes of the
current node. It enables you to pass all children directly to a map or grep. If
this function is called in scalar context, a XML::LibXML::NodeList object will
be returned.
.IP "\fBtoString\fR" 4
.IX Item "toString"
.Vb 1
\&  $xmlstring = $node->toString($format,$docencoding);
.Ve
.Sp
This is the equivalent to XML::LibXML::Document::toString for a single node.
This means a node and all its childnodes will be dumped into the result string.
.Sp
Additionally to the \f(CW$format\fR flag of XML::LibXML::Document, this version accepts
the optional \f(CW$docencoding\fR flag. If this flag is set this function returns the
string in its original encoding (the encoding of the document) rather than
\&\s-1UTF\-8\s0.
.IP "\fBtoStringC14N\fR" 4
.IX Item "toStringC14N"
.Vb 1
\&  $c14nstring = $node->toStringC14N($with_comments, $xpath_expression);
.Ve
.Sp
The function is similar to \fItoString()\fR. Instead of simply serializing the
document tree, it transforms it as it is specified in the \s-1XML\-C14N\s0
Specification. Such transformation is known as canonization.
.Sp
If \f(CW$with_comments\fR is 0 or not defined, the result-document will not contain any
comments that exist in the original document. To include comments into the
canonized document, \f(CW$with_comments\fR has to be set to 1.
.Sp
The parameter \f(CW$xpath_expression\fR defines the nodeset of nodes that should be
visible in the resulting document. This can be used to filter out some nodes.
One has to note, that only the nodes that are part of the nodeset, will be
included into the result\-document. Their child-nodes will not exist in the
resulting document, unless they are part of the nodeset defined by the xpath
expression.
.Sp
If \f(CW$xpath_expression\fR is ommitted or empty, \fItoStringC14N()\fR will include all
nodes in the given sub\-tree.
.Sp
No serializing flags will be recognized by this function!
.IP "\fBserialize\fR" 4
.IX Item "serialize"
.Vb 1
\&  $str = $doc->serialze($format);
.Ve
.Sp
Alternative form of \fItoString()\fR. This function name added to be more conform
with libxml2's examples.
.IP "\fBserialize_c14n\fR" 4
.IX Item "serialize_c14n"
.Vb 1
\&  $c14nstr = $doc->serialize_c14n($comment_flag,$xpath);
.Ve
.Sp
Alternative form of \fItoStringC14N()\fR.
.IP "\fBlocalname\fR" 4
.IX Item "localname"
.Vb 1
\&  $localname = $node->localname;
.Ve
.Sp
Returns the local name of a tag. This is the part behind the colon.
.IP "\fBprefix\fR" 4
.IX Item "prefix"
.Vb 1
\&  $nameprefix = $node->prefix;
.Ve
.Sp
Returns the prefix of a tag. This is the part before the colon.
.IP "\fBnamespaceURI\fR" 4
.IX Item "namespaceURI"
.Vb 1
\&  $uri = $node->namespaceURI();
.Ve
.Sp
returns the \s-1URI\s0 of the current namespace.
.IP "\fBhasAttributes\fR" 4
.IX Item "hasAttributes"
.Vb 1
\&  $boolean = $node->hasAttributes();
.Ve
.Sp
returns 1 (\s-1TRUE\s0) if the current node has any attributes set, otherwise 0
(\s-1FALSE\s0) is returned.
.IP "\fBattributes\fR" 4
.IX Item "attributes"
.Vb 1
\&  @attributelist = $node->attributes();
.Ve
.Sp
This function returns all attributes and namespace declarations assigned to the
given node.
.Sp
Because XML::LibXML does not implement namespace declarations and attributes
the same way, it is required to test what kind of node is handled while
accessing the functions result.
.Sp
If this function is called in array context the attribute nodes are returned as
an array. In scalar context the function will return a
XML::LibXML::NamedNodeMap object.
.IP "\fBlookupNamespaceURI\fR" 4
.IX Item "lookupNamespaceURI"
.Vb 1
\&  $URI = $node->lookupNamespaceURI( $prefix );
.Ve
.Sp
Find a namespace \s-1URI\s0 by its prefix starting at the current node.
.IP "\fBlookupNamespacePrefix\fR" 4
.IX Item "lookupNamespacePrefix"
.Vb 1
\&  $prefix = $node->lookupNamespacePrefix( $URI );
.Ve
.Sp
Find a namespace prefix by its \s-1URI\s0 starting at the current node.
.Sp
\&\s-1NOTE\s0 Only the namespace URIs are meant to be unique. The prefix is only
document related. Also the document might have more than a single prefix
defined for a namespace.
.IP "\fBiterator\fR" 4
.IX Item "iterator"
.Vb 1
\&  $iter = $node->iterator;
.Ve
.Sp
This function is deprecated since XML::LibXML 1.54. It is only a dummy function
that will get removed entirely in one of the next versions.
.Sp
To make use of iterator functions use XML::LibXML::Iterator Module available on
\&\s-1CPAN\s0.
.IP "\fBnormalize\fR" 4
.IX Item "normalize"
.Vb 1
\&  $node->normalize;
.Ve
.Sp
This function normalizes adjacent textnodes. This function is not as strict as
libxml2's \fIxmlTextMerge()\fR function, since it will not free a node that is still
referenced by the perl layer.
.IP "\fBgetNamespaces\fR" 4
.IX Item "getNamespaces"
.Vb 1
\&  @nslist = $node->getNamespaces;
.Ve
.Sp
If a node has any namespaces defined, this function will return these
namespaces. Note, that this will not return all namespaces that are in scope,
but only the ones declared explicitly for that node.
.Sp
Although getNamespaces is available for all nodes, it only makes sense if used
with element nodes.
.IP "\fBremoveChildNodes\fR" 4
.IX Item "removeChildNodes"
.Vb 1
\&  $node->removeChildNodes();
.Ve
.Sp
This function is not specified for any \s-1DOM\s0 level: It removes all childnodes
from a node in a single step. Other than the libxml2 function itself
(xmlFreeNodeList), this function will not immediately remove the nodes from the
memory. This saves one from getting memory violations, if there are nodes still
referred to from the Perl level.
.IP "\fBnodePath\fR" 4
.IX Item "nodePath"
.Vb 1
\&  $node->nodePath();
.Ve
.Sp
This function is not specified for any \s-1DOM\s0 level: It returns a cannonical
structure based XPath for a given node.
.IP "\fBline_number\fR" 4
.IX Item "line_number"
.Vb 1
\&  $lineno = $node->line_number();
.Ve
.Sp
This function returns the line number where the tag was found during parsing.
If a node is added to the document the line number is 0. Problems may occour,
if a node from one document is passed to another one.
.Sp
Note: \fIline_number()\fR is special to XML::LibXML and not part of the \s-1DOM\s0
specification.
.Sp
If the line_numbers flag of the parser was not activated before parsing,
\&\fIline_number()\fR will always return 0.
.SH "AUTHORS"
.IX Header "AUTHORS"
Matt Sergeant, 
Christian Glahn, 
Petr Pajas, 
.SH "VERSION"
.IX Header "VERSION"
1.62
.SH "COPYRIGHT"
.IX Header "COPYRIGHT"
2001\-2006, AxKit.com Ltd; 2002\-2006 Christian Glahn; 2006 Petr Pajas, All rights reserved.

Creat By MiNi SheLL
Email: devilkiller@gmail.com