XML::LibXML::Literal - Simple string values.
Please see following description for synopsis
User Contributed Perl Documentation XML::LibXML::Literal(3)
NAME
XML::LibXML::Literal - Simple string values.
DESCRIPTION
In XPath terms a Literal is what we know as a string.
API
new($string)
Create a new Literal object with the value in $string. Note that "
and ' will be converted to " and ' respectively. That is not part
of the XPath specification, but I consider it useful. Note though that
you have to go to extraordinary lengths in an XML template file (be it
XSLT or whatever) to make use of this:
<xsl:value-of select=""I'm feeling &quot;sad&quot;""/>
Which produces a Literal of:
I'm feeling "sad"
value()
Also overloaded as stringification, simply returns the literal string
value.
cmp($literal)
Returns the equivalent of perl's cmp operator against the given
$literal.
ATTRIBUTES
See attributes(7) for descriptions of the following attributes:
+---------------+-------------------------------+
|ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+---------------+-------------------------------+
|Availability | library/perl-5/xml-libxml-532 |
+---------------+-------------------------------+
|Stability | Volatile |
+---------------+-------------------------------+
NOTES
Source code for open source software components in Oracle Solaris can
be found at https://www.oracle.com/downloads/opensource/solaris-source-
code-downloads.html.
This software was built from source available at
https://github.com/oracle/solaris-userland. The original community
source was downloaded from
http://search.cpan.org/CPAN/authors/id/S/SH/SHLOMIF/XML-
LibXML-2.0201.tar.gz.
Further information about this software can be found on the open source
community website at http://search.cpan.org/~shlomif/XML-LibXML/.
perl v5.32.0 2019-05-25 XML::LibXML::Literal(3)