Go to main content

man pages section 3: Library Interfaces and Headers

Exit Print View

Updated: Wednesday, July 27, 2022
 
 

XML::LibXML::Literal (3)

Name

XML::LibXML::Literal - Simple string values.

Synopsis

Please see following description for synopsis

Description

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="&quot;I'm feeling &amp;quot;sad&amp;quot;&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)