diff options
author | DongHun Kwak <dh0128.kwak@samsung.com> | 2022-07-25 08:44:28 +0900 |
---|---|---|
committer | DongHun Kwak <dh0128.kwak@samsung.com> | 2022-07-25 08:44:28 +0900 |
commit | 386653a5f530a4e00811bacc50ae734d5610695d (patch) | |
tree | c6f6c4e3d74f202bd65a80e06992debe83e4e1ab /lib | |
parent | bed2f52e9348362135cc7cc4e6cedfe306744b20 (diff) | |
download | perl-XML-LibXML-386653a5f530a4e00811bacc50ae734d5610695d.tar.gz perl-XML-LibXML-386653a5f530a4e00811bacc50ae734d5610695d.tar.bz2 perl-XML-LibXML-386653a5f530a4e00811bacc50ae734d5610695d.zip |
Imported Upstream version 2.0202upstream/2.0202
Diffstat (limited to 'lib')
41 files changed, 87 insertions, 77 deletions
diff --git a/lib/XML/LibXML/Attr.pod b/lib/XML/LibXML/Attr.pod index 6735393..8475146 100644 --- a/lib/XML/LibXML/Attr.pod +++ b/lib/XML/LibXML/Attr.pod @@ -121,7 +121,7 @@ Petr Pajas =head1 VERSION -2.0201 +2.0202 =head1 COPYRIGHT diff --git a/lib/XML/LibXML/AttributeHash.pm b/lib/XML/LibXML/AttributeHash.pm index e2f23ac..4610ab3 100644 --- a/lib/XML/LibXML/AttributeHash.pm +++ b/lib/XML/LibXML/AttributeHash.pm @@ -7,7 +7,7 @@ use Tie::Hash; our @ISA = qw/Tie::Hash/; use vars qw($VERSION); -$VERSION = "2.0201"; # VERSION TEMPLATE: DO NOT CHANGE +$VERSION = "2.0202"; # VERSION TEMPLATE: DO NOT CHANGE BEGIN { diff --git a/lib/XML/LibXML/Boolean.pm b/lib/XML/LibXML/Boolean.pm index 7a43d55..394e4fd 100644 --- a/lib/XML/LibXML/Boolean.pm +++ b/lib/XML/LibXML/Boolean.pm @@ -16,7 +16,7 @@ use warnings; use vars qw ($VERSION); -$VERSION = "2.0201"; # VERSION TEMPLATE: DO NOT CHANGE +$VERSION = "2.0202"; # VERSION TEMPLATE: DO NOT CHANGE use overload '""' => \&value, diff --git a/lib/XML/LibXML/CDATASection.pod b/lib/XML/LibXML/CDATASection.pod index 3d898c7..262ac5d 100644 --- a/lib/XML/LibXML/CDATASection.pod +++ b/lib/XML/LibXML/CDATASection.pod @@ -45,7 +45,7 @@ Petr Pajas =head1 VERSION -2.0201 +2.0202 =head1 COPYRIGHT diff --git a/lib/XML/LibXML/Comment.pod b/lib/XML/LibXML/Comment.pod index 610b6b6..b6d538c 100644 --- a/lib/XML/LibXML/Comment.pod +++ b/lib/XML/LibXML/Comment.pod @@ -46,7 +46,7 @@ Petr Pajas =head1 VERSION -2.0201 +2.0202 =head1 COPYRIGHT diff --git a/lib/XML/LibXML/Common.pm b/lib/XML/LibXML/Common.pm index 423e6f4..4d9e367 100644 --- a/lib/XML/LibXML/Common.pm +++ b/lib/XML/LibXML/Common.pm @@ -24,7 +24,7 @@ use vars qw( @ISA $VERSION @EXPORT @EXPORT_OK %EXPORT_TAGS); @ISA = qw(Exporter); -$VERSION = "2.0201"; # VERSION TEMPLATE: DO NOT CHANGE +$VERSION = "2.0202"; # VERSION TEMPLATE: DO NOT CHANGE use XML::LibXML qw(:libxml); diff --git a/lib/XML/LibXML/Common.pod b/lib/XML/LibXML/Common.pod index 6b64b42..68ac16c 100644 --- a/lib/XML/LibXML/Common.pod +++ b/lib/XML/LibXML/Common.pod @@ -116,7 +116,7 @@ Petr Pajas =head1 VERSION -2.0201 +2.0202 =head1 COPYRIGHT diff --git a/lib/XML/LibXML/DOM.pod b/lib/XML/LibXML/DOM.pod index 4e0db21..e417a0c 100644 --- a/lib/XML/LibXML/DOM.pod +++ b/lib/XML/LibXML/DOM.pod @@ -129,7 +129,7 @@ Petr Pajas =head1 VERSION -2.0201 +2.0202 =head1 COPYRIGHT diff --git a/lib/XML/LibXML/Devel.pm b/lib/XML/LibXML/Devel.pm index 36007d9..9f8dec1 100644 --- a/lib/XML/LibXML/Devel.pm +++ b/lib/XML/LibXML/Devel.pm @@ -12,7 +12,7 @@ use warnings; use XML::LibXML; use vars qw ($VERSION); -$VERSION = "2.0201"; # VERSION TEMPLATE: DO NOT CHANGE +$VERSION = "2.0202"; # VERSION TEMPLATE: DO NOT CHANGE use 5.008_000; diff --git a/lib/XML/LibXML/Document.pod b/lib/XML/LibXML/Document.pod index 1c0e255..8b415d1 100644 --- a/lib/XML/LibXML/Document.pod +++ b/lib/XML/LibXML/Document.pod @@ -683,7 +683,7 @@ Petr Pajas =head1 VERSION -2.0201 +2.0202 =head1 COPYRIGHT diff --git a/lib/XML/LibXML/DocumentFragment.pod b/lib/XML/LibXML/DocumentFragment.pod index a0edfd7..8f42fd3 100644 --- a/lib/XML/LibXML/DocumentFragment.pod +++ b/lib/XML/LibXML/DocumentFragment.pod @@ -27,7 +27,7 @@ Petr Pajas =head1 VERSION -2.0201 +2.0202 =head1 COPYRIGHT diff --git a/lib/XML/LibXML/Dtd.pod b/lib/XML/LibXML/Dtd.pod index 9851970..351944a 100644 --- a/lib/XML/LibXML/Dtd.pod +++ b/lib/XML/LibXML/Dtd.pod @@ -89,7 +89,7 @@ Petr Pajas =head1 VERSION -2.0201 +2.0202 =head1 COPYRIGHT diff --git a/lib/XML/LibXML/Element.pod b/lib/XML/LibXML/Element.pod index 023be0f..0fbe122 100644 --- a/lib/XML/LibXML/Element.pod +++ b/lib/XML/LibXML/Element.pod @@ -382,7 +382,7 @@ Petr Pajas =head1 VERSION -2.0201 +2.0202 =head1 COPYRIGHT diff --git a/lib/XML/LibXML/ErrNo.pm b/lib/XML/LibXML/ErrNo.pm index 6fc32f5..e3c5b84 100644 --- a/lib/XML/LibXML/ErrNo.pm +++ b/lib/XML/LibXML/ErrNo.pm @@ -14,7 +14,7 @@ use strict; use warnings; use vars qw($VERSION); -$VERSION = "2.0201"; # VERSION TEMPLATE: DO NOT CHANGE +$VERSION = "2.0202"; # VERSION TEMPLATE: DO NOT CHANGE use constant ERR_OK => 0; use constant ERR_INTERNAL_ERROR => 1; diff --git a/lib/XML/LibXML/ErrNo.pod b/lib/XML/LibXML/ErrNo.pod index 1919fa5..575a285 100644 --- a/lib/XML/LibXML/ErrNo.pod +++ b/lib/XML/LibXML/ErrNo.pod @@ -17,7 +17,7 @@ Petr Pajas =head1 VERSION -2.0201 +2.0202 =head1 COPYRIGHT diff --git a/lib/XML/LibXML/Error.pm b/lib/XML/LibXML/Error.pm index dfe235a..f6a69a9 100644 --- a/lib/XML/LibXML/Error.pm +++ b/lib/XML/LibXML/Error.pm @@ -29,7 +29,7 @@ use overload fallback => 1; $WARNINGS = 0; # 0: suppress, 1: report via warn, 2: report via die -$VERSION = "2.0201"; # VERSION TEMPLATE: DO NOT CHANGE +$VERSION = "2.0202"; # VERSION TEMPLATE: DO NOT CHANGE use constant XML_ERR_NONE => 0; use constant XML_ERR_WARNING => 1; # A simple warning diff --git a/lib/XML/LibXML/Error.pod b/lib/XML/LibXML/Error.pod index aaf7063..421dd82 100644 --- a/lib/XML/LibXML/Error.pod +++ b/lib/XML/LibXML/Error.pod @@ -244,7 +244,7 @@ Petr Pajas =head1 VERSION -2.0201 +2.0202 =head1 COPYRIGHT diff --git a/lib/XML/LibXML/InputCallback.pod b/lib/XML/LibXML/InputCallback.pod index 66e0c4a..0ed4519 100644 --- a/lib/XML/LibXML/InputCallback.pod +++ b/lib/XML/LibXML/InputCallback.pod @@ -280,7 +280,7 @@ Petr Pajas =head1 VERSION -2.0201 +2.0202 =head1 COPYRIGHT diff --git a/lib/XML/LibXML/Literal.pm b/lib/XML/LibXML/Literal.pm index 44e2194..86da094 100644 --- a/lib/XML/LibXML/Literal.pm +++ b/lib/XML/LibXML/Literal.pm @@ -16,7 +16,7 @@ use strict; use warnings; use vars qw ($VERSION); -$VERSION = "2.0201"; # VERSION TEMPLATE: DO NOT CHANGE +$VERSION = "2.0202"; # VERSION TEMPLATE: DO NOT CHANGE use overload '""' => \&value, diff --git a/lib/XML/LibXML/Namespace.pod b/lib/XML/LibXML/Namespace.pod index adc88a8..e444577 100644 --- a/lib/XML/LibXML/Namespace.pod +++ b/lib/XML/LibXML/Namespace.pod @@ -141,7 +141,7 @@ Petr Pajas =head1 VERSION -2.0201 +2.0202 =head1 COPYRIGHT diff --git a/lib/XML/LibXML/Node.pod b/lib/XML/LibXML/Node.pod index cfb0bfa..84ef18c 100644 --- a/lib/XML/LibXML/Node.pod +++ b/lib/XML/LibXML/Node.pod @@ -174,7 +174,7 @@ stripped from the context it is and inserted into a (hidden) document-fragment. $childnode = $node->removeChild( $childnode ); -This will unbind the Child Node from its parent C<<<<<< $node >>>>>>. The function returns the unbound node. If C<<<<<< oldNode >>>>>> is not a child of the given Node the function will fail. +This will unbind the Child Node from its parent C<<<<<< $node >>>>>>. The function returns the unbound node. If C<<<<<< $childnode >>>>>> is not a child of the given Node the function will fail. =item replaceChild @@ -763,7 +763,7 @@ Petr Pajas =head1 VERSION -2.0201 +2.0202 =head1 COPYRIGHT diff --git a/lib/XML/LibXML/NodeList.pm b/lib/XML/LibXML/NodeList.pm index 3c896d2..d2d0bc2 100644 --- a/lib/XML/LibXML/NodeList.pm +++ b/lib/XML/LibXML/NodeList.pm @@ -17,7 +17,7 @@ use XML::LibXML::Literal; use XML::LibXML::Number; use vars qw($VERSION); -$VERSION = "2.0201"; # VERSION TEMPLATE: DO NOT CHANGE +$VERSION = "2.0202"; # VERSION TEMPLATE: DO NOT CHANGE use overload '""' => \&to_literal, diff --git a/lib/XML/LibXML/Number.pm b/lib/XML/LibXML/Number.pm index 49f740e..63b72ee 100644 --- a/lib/XML/LibXML/Number.pm +++ b/lib/XML/LibXML/Number.pm @@ -14,7 +14,7 @@ use strict; use warnings; use vars qw ($VERSION); -$VERSION = "2.0201"; # VERSION TEMPLATE: DO NOT CHANGE +$VERSION = "2.0202"; # VERSION TEMPLATE: DO NOT CHANGE use overload '""' => \&value, diff --git a/lib/XML/LibXML/PI.pod b/lib/XML/LibXML/PI.pod index 50ea4f4..1ef5c21 100644 --- a/lib/XML/LibXML/PI.pod +++ b/lib/XML/LibXML/PI.pod @@ -74,7 +74,7 @@ Petr Pajas =head1 VERSION -2.0201 +2.0202 =head1 COPYRIGHT diff --git a/lib/XML/LibXML/Parser.pod b/lib/XML/LibXML/Parser.pod index d20382f..c91553d 100644 --- a/lib/XML/LibXML/Parser.pod +++ b/lib/XML/LibXML/Parser.pod @@ -174,13 +174,17 @@ eval{} block This function is available since XML::LibXML 1.70. It provides easy to use -interface to the XML parser that parses given file (or URL), string, or input -stream to a DOM tree. The arguments can be passed in a HASH reference or as -name => value pairs. The function can be called as a class method or an object -method. In both cases it internally creates a new parser instance passing the -specified parser options; if called as an object method, it clones the original -parser (preserving its settings) and additionally applies the specified options -to the new parser. See the constructor C<<<<<< new >>>>>> and L<<<<<< Parser Options >>>>>> for more information. +interface to the XML parser that parses given file (or non-HTTPS URL), string, +or input stream to a DOM tree. The arguments can be passed in a HASH reference +or as name => value pairs. The function can be called as a class method or an +object method. In both cases it internally creates a new parser instance +passing the specified parser options; if called as an object method, it clones +the original parser (preserving its settings) and additionally applies the +specified options to the new parser. See the constructor C<<<<<< new >>>>>> and L<<<<<< Parser Options >>>>>> for more information. + +Note that, due to a limitation in the underlying libxml2 library, this call +does not recognize HTTPS-based URLs. (It will treat an HTTPS URL as a filename, +likely throwing a "No such file or directory" exception.) =item load_html @@ -269,8 +273,8 @@ This is an alias to process_xincludes, but through a JAVA like function name. $doc = $parser->parse_file( $xmlfilename ); This function parses an XML document from a file or network; $xmlfilename can -be either a filename or an URL. Note that for parsing files, this function is -the fastest choice, about 6-8 times faster then parse_fh(). +be either a filename or a (non-HTTPS) URL. Note that for parsing files, this +function is the fastest choice, about 6-8 times faster then parse_fh(). =item parse_fh @@ -308,7 +312,7 @@ function. $doc = $parser->parse_html_file( $htmlfile, \%opts ); Similar to parse_file() but parses HTML (strict) documents; $htmlfile can be -filename or URL. +filename or (non-HTTPS) URL. An optional second argument can be used to pass some options to the HTML parser as a HASH reference. See options labeled with HTML in L<<<<<< Parser Options >>>>>>. @@ -984,7 +988,7 @@ Petr Pajas =head1 VERSION -2.0201 +2.0202 =head1 COPYRIGHT diff --git a/lib/XML/LibXML/Pattern.pod b/lib/XML/LibXML/Pattern.pod index 7eebfff..33be085 100644 --- a/lib/XML/LibXML/Pattern.pod +++ b/lib/XML/LibXML/Pattern.pod @@ -94,7 +94,7 @@ Petr Pajas =head1 VERSION -2.0201 +2.0202 =head1 COPYRIGHT diff --git a/lib/XML/LibXML/Reader.pm b/lib/XML/LibXML/Reader.pm index 8856f57..00b249c 100644 --- a/lib/XML/LibXML/Reader.pm +++ b/lib/XML/LibXML/Reader.pm @@ -14,7 +14,7 @@ use strict; use warnings; use vars qw ($VERSION); -$VERSION = "2.0201"; # VERSION TEMPLATE: DO NOT CHANGE +$VERSION = "2.0202"; # VERSION TEMPLATE: DO NOT CHANGE use 5.008_000; diff --git a/lib/XML/LibXML/Reader.pod b/lib/XML/LibXML/Reader.pod index 1745e26..390e1ca 100644 --- a/lib/XML/LibXML/Reader.pod +++ b/lib/XML/LibXML/Reader.pod @@ -90,7 +90,7 @@ where ... are (optional) reader options described below in L<<<<<< Reader option =item location -Read XML from a local file or URL. +Read XML from a local file or (non-HTTPS) URL. =item string @@ -129,14 +129,14 @@ override document encoding. =item RelaxNG => $rng_schema -can be used to pass either a L<<<<<< XML::LibXML::RelaxNG >>>>>> object or a filename or URL of a RelaxNG schema to the constructor. The schema -is then used to validate the document as it is processed. +can be used to pass either a L<<<<<< XML::LibXML::RelaxNG >>>>>> object or a filename or (non-HTTPS) URL of a RelaxNG schema to the constructor. +The schema is then used to validate the document as it is processed. =item Schema => $xsd_schema -can be used to pass either a L<<<<<< XML::LibXML::Schema >>>>>> object or a filename or URL of a W3C XSD schema to the constructor. The schema -is then used to validate the document as it is processed. +can be used to pass either a L<<<<<< XML::LibXML::Schema >>>>>> object or a filename or (non-HTTPS) URL of a W3C XSD schema to the constructor. +The schema is then used to validate the document as it is processed. =item ... @@ -657,7 +657,7 @@ Petr Pajas =head1 VERSION -2.0201 +2.0202 =head1 COPYRIGHT diff --git a/lib/XML/LibXML/RegExp.pod b/lib/XML/LibXML/RegExp.pod index 983ab92..9415c88 100644 --- a/lib/XML/LibXML/RegExp.pod +++ b/lib/XML/LibXML/RegExp.pod @@ -58,7 +58,7 @@ Petr Pajas =head1 VERSION -2.0201 +2.0202 =head1 COPYRIGHT diff --git a/lib/XML/LibXML/RelaxNG.pod b/lib/XML/LibXML/RelaxNG.pod index dee2a0e..399ed05 100644 --- a/lib/XML/LibXML/RelaxNG.pod +++ b/lib/XML/LibXML/RelaxNG.pod @@ -9,9 +9,9 @@ XML::LibXML::RelaxNG - RelaxNG Schema Validation use XML::LibXML; $doc = XML::LibXML->new->parse_file($url); - $rngschema = XML::LibXML::RelaxNG->new( location => $filename_or_url ); - $rngschema = XML::LibXML::RelaxNG->new( string => $xmlschemastring ); - $rngschema = XML::LibXML::RelaxNG->new( DOM => $doc ); + $rngschema = XML::LibXML::RelaxNG->new( location => $filename_or_url, no_network => 1 ); + $rngschema = XML::LibXML::RelaxNG->new( string => $xmlschemastring, no_network => 1 ); + $rngschema = XML::LibXML::RelaxNG->new( DOM => $doc, no_network => 1 ); eval { $rngschema->validate( $doc ); }; =head1 DESCRIPTION @@ -27,17 +27,20 @@ validation. =item new - $rngschema = XML::LibXML::RelaxNG->new( location => $filename_or_url ); - $rngschema = XML::LibXML::RelaxNG->new( string => $xmlschemastring ); - $rngschema = XML::LibXML::RelaxNG->new( DOM => $doc ); + $rngschema = XML::LibXML::RelaxNG->new( location => $filename_or_url, no_network => 1 ); + $rngschema = XML::LibXML::RelaxNG->new( string => $xmlschemastring, no_network => 1 ); + $rngschema = XML::LibXML::RelaxNG->new( DOM => $doc, no_network => 1 ); -The constructor of XML::LibXML::RelaxNG may get called with either one of three -parameters. The parameter tells the class from which source it should generate -a validation schema. It is important, that each schema only have a single -source. +The constructor of XML::LibXML::RelaxNG needs to be called with list of +parameters. At least location, string or DOM parameter is required to specify +source of schema. Optional parameter no_network set to 1 cause that parser +would not access network and optional parameter recover set 1 cause that parser +would not call die() on errors. + +It is important, that each schema only have a single source. The location parameter allows one to parse a schema from the filesystem or a -URL. +(non-HTTPS) URL. The string parameter will parse the schema from the given XML string. @@ -70,7 +73,7 @@ Petr Pajas =head1 VERSION -2.0201 +2.0202 =head1 COPYRIGHT diff --git a/lib/XML/LibXML/SAX.pm b/lib/XML/LibXML/SAX.pm index 3c685bc..f38bed7 100644 --- a/lib/XML/LibXML/SAX.pm +++ b/lib/XML/LibXML/SAX.pm @@ -14,7 +14,7 @@ use warnings; use vars qw($VERSION @ISA); -$VERSION = "2.0201"; # VERSION TEMPLATE: DO NOT CHANGE +$VERSION = "2.0202"; # VERSION TEMPLATE: DO NOT CHANGE use XML::LibXML; use XML::SAX::Base; diff --git a/lib/XML/LibXML/SAX.pod b/lib/XML/LibXML/SAX.pod index 4f848db..2b29625 100644 --- a/lib/XML/LibXML/SAX.pod +++ b/lib/XML/LibXML/SAX.pod @@ -47,7 +47,7 @@ Petr Pajas =head1 VERSION -2.0201 +2.0202 =head1 COPYRIGHT diff --git a/lib/XML/LibXML/SAX/Builder.pm b/lib/XML/LibXML/SAX/Builder.pm index fb5c51c..2f8758b 100644 --- a/lib/XML/LibXML/SAX/Builder.pm +++ b/lib/XML/LibXML/SAX/Builder.pm @@ -21,7 +21,7 @@ sub CLONE_SKIP { return $XML::LibXML::__threads_shared ? 0 : 1; } -$VERSION = "2.0201"; # VERSION TEMPLATE: DO NOT CHANGE +$VERSION = "2.0202"; # VERSION TEMPLATE: DO NOT CHANGE sub new { my $class = shift; diff --git a/lib/XML/LibXML/SAX/Builder.pod b/lib/XML/LibXML/SAX/Builder.pod index 4dd6b4b..bb4f628 100644 --- a/lib/XML/LibXML/SAX/Builder.pod +++ b/lib/XML/LibXML/SAX/Builder.pod @@ -38,7 +38,7 @@ Petr Pajas =head1 VERSION -2.0201 +2.0202 =head1 COPYRIGHT diff --git a/lib/XML/LibXML/SAX/Generator.pm b/lib/XML/LibXML/SAX/Generator.pm index 0ad3035..33aeed6 100644 --- a/lib/XML/LibXML/SAX/Generator.pm +++ b/lib/XML/LibXML/SAX/Generator.pm @@ -15,7 +15,7 @@ use warnings; use XML::LibXML; use vars qw ($VERSION); -$VERSION = "2.0201"; # VERSION TEMPLATE: DO NOT CHANGE +$VERSION = "2.0202"; # VERSION TEMPLATE: DO NOT CHANGE sub CLONE_SKIP { return $XML::LibXML::__threads_shared ? 0 : 1; diff --git a/lib/XML/LibXML/SAX/Parser.pm b/lib/XML/LibXML/SAX/Parser.pm index 3b1723f..c30bb84 100644 --- a/lib/XML/LibXML/SAX/Parser.pm +++ b/lib/XML/LibXML/SAX/Parser.pm @@ -18,7 +18,7 @@ use XML::LibXML::Common qw(:libxml); use XML::SAX::Base; use XML::SAX::DocumentLocator; -$VERSION = "2.0201"; # VERSION TEMPLATE: DO NOT CHANGE +$VERSION = "2.0202"; # VERSION TEMPLATE: DO NOT CHANGE @ISA = ('XML::SAX::Base'); sub CLONE_SKIP { diff --git a/lib/XML/LibXML/Schema.pod b/lib/XML/LibXML/Schema.pod index 58185e8..bc115ee 100644 --- a/lib/XML/LibXML/Schema.pod +++ b/lib/XML/LibXML/Schema.pod @@ -9,8 +9,8 @@ XML::LibXML::Schema - XML Schema Validation use XML::LibXML; $doc = XML::LibXML->new->parse_file($url); - $xmlschema = XML::LibXML::Schema->new( location => $filename_or_url ); - $xmlschema = XML::LibXML::Schema->new( string => $xmlschemastring ); + $xmlschema = XML::LibXML::Schema->new( location => $filename_or_url, no_network => 1 ); + $xmlschema = XML::LibXML::Schema->new( string => $xmlschemastring, no_network => 1 ); eval { $xmlschema->validate( $doc ); }; =head1 DESCRIPTION @@ -27,16 +27,19 @@ validation. As of 2.6.32, libxml2 only supports decimal types up to 24 digits =item new - $xmlschema = XML::LibXML::Schema->new( location => $filename_or_url ); - $xmlschema = XML::LibXML::Schema->new( string => $xmlschemastring ); + $xmlschema = XML::LibXML::Schema->new( location => $filename_or_url, no_network => 1 ); + $xmlschema = XML::LibXML::Schema->new( string => $xmlschemastring, no_network => 1 ); -The constructor of XML::LibXML::Schema may get called with either one of two -parameters. The parameter tells the class from which source it should generate -a validation schema. It is important, that each schema only have a single -source. +The constructor of XML::LibXML::Schema needs to be called with list of +parameters. At least location or string parameter is required to specify source +of schema. Optional parameter no_network set to 1 cause that parser would not +access network and optional parameter recover set 1 cause that parser would not +call die() on errors. + +It is important, that each schema only have a single source. The location parameter allows one to parse a schema from the filesystem or a -URL. +(non-HTTPS) URL. The string parameter will parse the schema from the given XML string. @@ -66,7 +69,7 @@ Petr Pajas =head1 VERSION -2.0201 +2.0202 =head1 COPYRIGHT diff --git a/lib/XML/LibXML/Text.pod b/lib/XML/LibXML/Text.pod index 89d9b7e..2a338d9 100644 --- a/lib/XML/LibXML/Text.pod +++ b/lib/XML/LibXML/Text.pod @@ -170,7 +170,7 @@ Petr Pajas =head1 VERSION -2.0201 +2.0202 =head1 COPYRIGHT diff --git a/lib/XML/LibXML/XPathContext.pm b/lib/XML/LibXML/XPathContext.pm index 8e6db87..6b32507 100644 --- a/lib/XML/LibXML/XPathContext.pm +++ b/lib/XML/LibXML/XPathContext.pm @@ -17,7 +17,7 @@ use Carp; use XML::LibXML; use XML::LibXML::NodeList; -$VERSION = "2.0201"; # VERSION TEMPLATE: DO NOT CHANGE +$VERSION = "2.0202"; # VERSION TEMPLATE: DO NOT CHANGE # should LibXML XPath data types be used for simple objects # when passing parameters to extension functions (default: no) diff --git a/lib/XML/LibXML/XPathContext.pod b/lib/XML/LibXML/XPathContext.pod index ec76860..7556bd7 100644 --- a/lib/XML/LibXML/XPathContext.pod +++ b/lib/XML/LibXML/XPathContext.pod @@ -362,7 +362,7 @@ Petr Pajas =head1 VERSION -2.0201 +2.0202 =head1 COPYRIGHT diff --git a/lib/XML/LibXML/XPathExpression.pod b/lib/XML/LibXML/XPathExpression.pod index 490e9be..6be16e9 100644 --- a/lib/XML/LibXML/XPathExpression.pod +++ b/lib/XML/LibXML/XPathExpression.pod @@ -52,7 +52,7 @@ Petr Pajas =head1 VERSION -2.0201 +2.0202 =head1 COPYRIGHT |