XML::LibXML::Namespace - Online Linux Manual PageSection : 3pm
Updated : 2020-11-08
Source : perl v5.32.0
Note : User Contributed Perl Documentation
NAMEXML::LibXML::Namespace − XML::LibXML Namespace Implementation
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();
print();
$localname = $ns−>getLocalName();
print();
print();
print();
$known_uri = $ns−>getNamespaceURI();
$known_prefix = $ns−>getPrefix();
$key = $ns−>unique_key();
DESCRIPTIONNamespace 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 not a sub class of 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.
METHODSnew 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 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. declaredURI Returns the URI for this namespace. declaredPrefix Returns the prefix for this namespace. nodeName print();
Returns ‟xmlns:prefix”, where prefix is the prefix for this namespace. name print();
Alias for() 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. getData print();
Returns the URI of the namespace, i.e. the value of this node as if it were an attribute. getValue print();
Alias for() value print();
Alias for() getNamespaceURI $known_uri = $ns−>getNamespaceURI();
Returns the string ‟http://www.w3.org/2000/xmlns/” getPrefix $known_prefix = $ns−>getPrefix();
Returns the string ‟xmlns” 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.
AUTHORSMatt Sergeant, Christian Glahn, Petr Pajas
VERSION2.0134
COPYRIGHT2001−2007, AxKit.com Ltd. 2002−2006, Christian Glahn. 2006−2009, Petr Pajas.
LICENSEThis program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. 0
Johanes Gumabo
Data Size : 13,770 byte
man-XML::LibXML::Namespace.3pmBuild : 2024-12-05, 20:55 :
Visitor Screen : x
Visitor Counter ( page / site ) : 3 / 199,929
Visitor ID : :
Visitor IP : 3.23.101.241 :
Visitor Provider : AMAZON-02 :
Provider Position ( lat x lon ) : 39.962500 x -83.006100 : x
Provider Accuracy Radius ( km ) : 1000 :
Provider City : Columbus :
Provider Province : Ohio , : ,
Provider Country : United States :
Provider Continent : North America :
Visitor Recorder : Version :
Visitor Recorder : Library :
Online Linux Manual Page : Version : Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page : Library : lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page : Library : lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base : Version : Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base : Library : lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36
Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.
ERROR : Need New Coding : (parse_manual_page_|249|XML::LibXML::Namespace.3pm|36/37|el══─{─══.|.el══─{─══. ds -- \|\(em\|
) (htmlprn|149|XML::LibXML::Namespace.3pm|36/37|.el══─{─══. ds -- — |.el══─{─══. ds -- \|\(em\|
) (parse_manual_page_|249|XML::LibXML::Namespace.3pm|43|br══─}─══|'br══─}─══
) (htmlprn|149|XML::LibXML::Namespace.3pm|43|'br══─}─══ |'br══─}─══
)