usr
/
local
/
lib64
/
perl5
/
XML
/
LibXML
/
Go to Home Directory
+
Upload
Create File
root@0UT1S:~$
Execute
By Order of Mr.0UT1S
[DIR] ..
N/A
[DIR] SAX
N/A
Attr.pod
4.02 KB
Rename
Delete
AttributeHash.pm
4.49 KB
Rename
Delete
Boolean.pm
1.56 KB
Rename
Delete
CDATASection.pod
1.28 KB
Rename
Delete
Comment.pod
1.36 KB
Rename
Delete
Common.pm
8.20 KB
Rename
Delete
Common.pod
3.59 KB
Rename
Delete
DOM.pod
6.23 KB
Rename
Delete
Devel.pm
4.91 KB
Rename
Delete
Document.pod
21.09 KB
Rename
Delete
DocumentFragment.pod
819 bytes
Rename
Delete
Dtd.pod
1.99 KB
Rename
Delete
Element.pod
13.48 KB
Rename
Delete
ErrNo.pm
27.83 KB
Rename
Delete
ErrNo.pod
591 bytes
Rename
Delete
Error.pm
8.45 KB
Rename
Delete
Error.pod
5.98 KB
Rename
Delete
InputCallback.pod
9.59 KB
Rename
Delete
Literal.pm
2.04 KB
Rename
Delete
Namespace.pod
3.28 KB
Rename
Delete
Node.pod
25.67 KB
Rename
Delete
NodeList.pm
7.31 KB
Rename
Delete
Number.pm
1.87 KB
Rename
Delete
PI.pod
2.22 KB
Rename
Delete
Parser.pod
27.79 KB
Rename
Delete
Pattern.pod
2.91 KB
Rename
Delete
Reader.pm
5.75 KB
Rename
Delete
Reader.pod
17.60 KB
Rename
Delete
RegExp.pod
1.54 KB
Rename
Delete
RelaxNG.pod
2.34 KB
Rename
Delete
SAX.pm
3.45 KB
Rename
Delete
SAX.pod
1.76 KB
Rename
Delete
Schema.pod
2.19 KB
Rename
Delete
Text.pod
5.47 KB
Rename
Delete
XPathContext.pm
3.15 KB
Rename
Delete
XPathContext.pod
11.49 KB
Rename
Delete
XPathExpression.pod
1.64 KB
Rename
Delete
=head1 NAME XML::LibXML::Namespace - XML::LibXML Namespace Implementation =head1 SYNOPSIS use XML::LibXML; # Only methods specific to Namespace nodes are listed here, # see the XML::LibXML::Node manpage for other methods my $ns = XML::LibXML::Namespace->new($nsURI); print $ns->nodeName(); print $ns->name(); $localname = $ns->getLocalName(); print $ns->getData(); print $ns->getValue(); print $ns->value(); $known_uri = $ns->getNamespaceURI(); $known_prefix = $ns->getPrefix(); $key = $ns->unique_key(); =head1 DESCRIPTION Namespace nodes are returned by both $element->findnodes('namespace::foo') or by $node->getNamespaces(). The namespace node API is not part of any current DOM API, and so it is quite minimal. It should be noted that namespace nodes are I<<<<<< not >>>>>> a sub class of L<<<<<< XML::LibXML::Node >>>>>>, however Namespace nodes act a lot like attribute nodes, and similarly named methods will return what you would expect if you treated the namespace node as an attribute. Note that in order to fix several inconsistencies between the API and the documentation, the behavior of some functions have been changed in 1.64. =head1 METHODS =over 4 =item new my $ns = XML::LibXML::Namespace->new($nsURI); Creates a new Namespace node. Note that this is not a 'node' as an attribute or an element node. Therefore you can't do call all L<<<<<< XML::LibXML::Node >>>>>> Functions. All functions available for this node are listed below. Optionally you can pass the prefix to the namespace constructor. If this second parameter is omitted you will create a so called default namespace. Note, the newly created namespace is not bound to any document or node, therefore you should not expect it to be available in an existing document. =item declaredURI Returns the URI for this namespace. =item declaredPrefix Returns the prefix for this namespace. =item nodeName print $ns->nodeName(); Returns "xmlns:prefix", where prefix is the prefix for this namespace. =item name print $ns->name(); Alias for nodeName() =item getLocalName $localname = $ns->getLocalName(); Returns the local name of this node as if it were an attribute, that is, the prefix associated with the namespace. =item getData print $ns->getData(); Returns the URI of the namespace, i.e. the value of this node as if it were an attribute. =item getValue print $ns->getValue(); Alias for getData() =item value print $ns->value(); Alias for getData() =item getNamespaceURI $known_uri = $ns->getNamespaceURI(); Returns the string "http://www.w3.org/2000/xmlns/" =item getPrefix $known_prefix = $ns->getPrefix(); Returns the string "xmlns" =item unique_key $key = $ns->unique_key(); This method returns a key guaranteed to be unique for this namespace, and to always be the same value for this namespace. Two namespace objects return the same key if and only if they have the same prefix and the same URI. The returned key value is useful as a key in hashes. =back =head1 AUTHORS Matt Sergeant, Christian Glahn, Petr Pajas =head1 VERSION 2.0210 =head1 COPYRIGHT 2001-2007, AxKit.com Ltd. 2002-2006, Christian Glahn. 2006-2009, Petr Pajas. =cut =head1 LICENSE This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Save