XML::Compile::Schema::Specs3pm
Predefined schema information
Usage
# not for end-usersuse XML::Compile::Schema::Specs;
Overview
This package defines the various schema-specifications.
Methods
- XML::Compile::Schema::Specs->
builtInType( <$node|undef>, $expanded | <$uri,$local>, %options ) -
Provide an
$expanded(full) type name or an namespace$uriand a$localnode name. Returned is a HASH with process information or"undef"if not found.-Option --Defaultjson_friendly <false>sloppy_floats <false>sloppy_integers <false>- json_friendly => BOOLEAN
-
The READER is slightly different, to produce output which can be passed on to JSON serializers without need for conversion. Implies
"sloppy_floats".
- sloppy_floats => BOOLEAN
-
The float types of XML are all quite big, and support NaN, INF, and -INF. Perl's normal floats do not, and therefore Math::BigFloat is used. This, however, is slow. When true, your application will crash on any value which is not understood by Perl's default float... but run much faster.
- sloppy_integers => BOOLEAN
-
the <integer> types must accept huge integers, which require
"Math::BigInt"objects to process. But often, Perl's normal signed 32bit integers suffice... which is good for performance, but not standard compliant.
- XML::Compile::Schema::Specs->
predefinedSchema($uri) -
Return a HASH which contains the schema information for the specified
$uri(or undef if it doesn't exist).
- XML::Compile::Schema::Specs->
predefinedSchemas() -
Returns the uri of all predefined schemas.
Releases
6 releases since Debian 8 (Jessie); the text changed 5 times.