Linux server.nvwebsoft.co.in 3.10.0-1160.114.2.el7.x86_64 #1 SMP Wed Mar 20 15:54:52 UTC 2024 x86_64
Apache
: 162.240.12.249 | : 3.147.6.122
202 Domain
8.1.31
nbspublicschool
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
usr /
lib64 /
perl5 /
vendor_perl /
XML /
LibXML /
[ HOME SHELL ]
Name
Size
Permission
Action
SAX
[ DIR ]
drwxr-xr-x
Attr.pod
3.9
KB
-rw-r--r--
AttributeHash.pm
4.49
KB
-rw-r--r--
Boolean.pm
1.55
KB
-rw-r--r--
CDATASection.pod
1.16
KB
-rw-r--r--
Comment.pod
1.23
KB
-rw-r--r--
Common.pm
8.21
KB
-rw-r--r--
Common.pod
3.46
KB
-rw-r--r--
DOM.pod
6.09
KB
-rw-r--r--
Devel.pm
4.91
KB
-rw-r--r--
Document.pod
20.76
KB
-rw-r--r--
DocumentFragment.pod
691
B
-rw-r--r--
Dtd.pod
1.87
KB
-rw-r--r--
Element.pod
13.35
KB
-rw-r--r--
ErrNo.pm
27.82
KB
-rw-r--r--
ErrNo.pod
442
B
-rw-r--r--
Error.pm
8.47
KB
-rw-r--r--
Error.pod
5.85
KB
-rw-r--r--
InputCallback.pod
9.46
KB
-rw-r--r--
Literal.pm
2.03
KB
-rw-r--r--
Namespace.pod
2.81
KB
-rw-r--r--
Node.pod
24.42
KB
-rw-r--r--
NodeList.pm
6.64
KB
-rw-r--r--
Number.pm
1.86
KB
-rw-r--r--
PI.pod
2.09
KB
-rw-r--r--
Parser.pod
27.37
KB
-rw-r--r--
Pattern.pod
2.77
KB
-rw-r--r--
Reader.pm
5.69
KB
-rw-r--r--
Reader.pod
17.43
KB
-rw-r--r--
RegExp.pod
1.41
KB
-rw-r--r--
RelaxNG.pod
1.94
KB
-rw-r--r--
SAX.pm
2.94
KB
-rw-r--r--
SAX.pod
1.64
KB
-rw-r--r--
Schema.pod
1.83
KB
-rw-r--r--
Text.pod
5.33
KB
-rw-r--r--
XPathContext.pm
3.13
KB
-rw-r--r--
XPathContext.pod
11.35
KB
-rw-r--r--
XPathExpression.pod
1.51
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : Literal.pm
# $Id$ # # This is free software, you may use it and distribute it under the same terms as # Perl itself. # # Copyright 2001-2003 AxKit.com Ltd., 2002-2006 Christian Glahn, 2006-2009 Petr Pajas # # package XML::LibXML::Literal; use XML::LibXML::Boolean; use XML::LibXML::Number; use strict; use vars qw ($VERSION); $VERSION = "2.0018"; # VERSION TEMPLATE: DO NOT CHANGE use overload '""' => \&value, 'cmp' => \&cmp; sub new { my $class = shift; my ($string) = @_; # $string =~ s/"/"/g; # $string =~ s/'/'/g; bless \$string, $class; } sub as_string { my $self = shift; my $string = $$self; $string =~ s/'/'/g; return "'$string'"; } sub as_xml { my $self = shift; my $string = $$self; return "<Literal>$string</Literal>\n"; } sub value { my $self = shift; $$self; } sub cmp { my $self = shift; my ($cmp, $swap) = @_; if ($swap) { return $cmp cmp $$self; } return $$self cmp $cmp; } sub evaluate { my $self = shift; $self; } sub to_boolean { my $self = shift; return (length($$self) > 0) ? XML::LibXML::Boolean->True : XML::LibXML::Boolean->False; } sub to_number { return XML::LibXML::Number->new($_[0]->value); } sub to_literal { return $_[0]; } sub string_value { return $_[0]->value; } 1; __END__ =head1 NAME XML::LibXML::Literal - Simple string values. =head1 DESCRIPTION In XPath terms a Literal is what we know as a string. =head1 API =head2 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" =head2 value() Also overloaded as stringification, simply returns the literal string value. =head2 cmp($literal) Returns the equivalent of perl's cmp operator against the given $literal. =cut
Close