GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  XML::REWRITE::SCHEMA (3)

.ds Aq ’

NAME

XML::Rewrite::Schema - transform schemas

CONTENTS

INHERITANCE



 XML::Rewrite::Schema
   is a XML::Rewrite
   is a XML::Compile::Cache
   is a XML::Compile::Schema
   is a XML::Compile



SYNOPSIS



 my $rewriter = XML::Rewriter::Schema->new(...);
 my ($type, $data) = $rewriter->process($file);
 my $doc = $rewriter->buildDOM($type => $data);



DESCRIPTION

Implements additional transformations, available for SCHEMA (version 2001) specific extension.

Feel invited to contribute ideas of useful features.

METHODS

    Constructors

XML::Rewrite::Schema-><B>newB>([SCHEMA], OPTIONS)



 Option               --Defined in     --Default
 allow_undeclared       XML::Compile::Cache  <true>
 any_attribute          XML::Compile::Cache  ATTEMPT
 any_element            XML::Compile::Cache  ATTEMPT
 attribute_form                          <undef>
 blanks_before          XML::Rewrite     NONE
 change                 XML::Rewrite     TRANSFORM
 comments               XML::Rewrite     KEEP
 defaults_writer        XML::Rewrite     IGNORE
 element_form                            <undef>
 expand_includes                         <false>
 hook                   XML::Compile::Schema  undef
 hooks                  XML::Compile::Schema  []
 ignore_unused_tags     XML::Compile::Schema  <false>
 key_rewrite            XML::Compile::Schema  []
 opts_readers           XML::Compile::Cache  []
 opts_rw                XML::Compile::Cache  []
 opts_writers           XML::Compile::Cache  []
 output_compression     XML::Rewrite     <undef>
 output_encoding        XML::Rewrite     <undef>
 output_standalone      XML::Rewrite     <undef>
 output_version         XML::Rewrite     <undef>
 prefixes               XML::Compile::Cache  <smart>
 remove_annotation                       <false>
 remove_elements        XML::Rewrite     []
 remove_id_constraints                   <false>
 schema_dirs            XML::Compile     undef
 target_namespace                        <undef>
 typemap                XML::Compile::Schema  {}
 use_default_namespace  XML::Rewrite     <false>



. allow_undeclared => BOOLEAN

. any_attribute => CODE|’TAKE_ALL’|’SKIP_ALL’|’ATTEMPT

. any_element => CODE|’TAKE_ALL’|’SKIP_ALL’|’ATTEMPT

. attribute_form => ’qualified’|’unqualified’

. blanks_before => ’ALL’|’CONTAINERS’|’NONE

. change => ’REPAIR’|’TRANSFORM

. comments => ’REMOVE’|’KEEP

. defaults_writer => ’EXTEND’|’IGNORE’|’MINIMAL

. element_form => ’qualified’|’unqualified’

. expand_includes => BOOLEAN

Include all the include files recursively, and merge their content with the main schema.

. hook => ARRAY-WITH-HOOKDATA | HOOK

. hooks => ARRAY-OF-HOOK

. ignore_unused_tags => BOOLEAN|REGEXP

. key_rewrite => HASH|CODE|ARRAY-of-HASH-and-CODE

. opts_readers => HASH|ARRAY-of-PAIRS

. opts_rw => HASH|ARRAY-of-PAIRS

. opts_writers => HASH|ARRAY-of-PAIRS

. output_compression => -1, 0-8

. output_encoding => CHARSET

. output_standalone => BOOLEAN|’yes’|’no’

. output_version => STRING

. prefixes => HASH|ARRAY-of-PAIRS

. remove_annotation => BOOLEAN

. remove_elements => ARRAY

. remove_id_constraints => BOOLEAN

Remove the identity constraints (key, keyref, and unique elements) from the schema.

. schema_dirs => DIRECTORY|ARRAY-OF-DIRECTORIES

. target_namespace => URI

. typemap => HASH

. use_default_namespace => BOOLEAN

    Accessors

$obj-><B>addHookB>(HOOKDATA|HOOK|undef)

See Accessors in XML::Compile::Schema

$obj-><B>addHooksB>(HOOK, [HOOK, ...])

See Accessors in XML::Compile::Schema

$obj-><B>addKeyRewriteB>(CODE|HASH, CODE|HASH, ...)

See Accessors in XML::Compile::Schema

$obj-><B>addSchemaDirsB>(DIRECTORIES|FILENAME)

XML::Rewrite::Schema-><B>addSchemaDirsB>(DIRECTORIES|FILENAME)

See Accessors in XML::Compile

$obj-><B>addSchemasB>(XML, OPTIONS)

See Accessors in XML::Compile::Schema

$obj-><B>addTypemapB>(PAIR)

See Accessors in XML::Compile::Schema

$obj-><B>addTypemapsB>(PAIRS)

See Accessors in XML::Compile::Schema

$obj-><B>allowUndeclaredB>([BOOLEAN])

See Accessors in XML::Compile::Cache

$obj-><B>hooksB>

See Accessors in XML::Compile::Schema

$obj-><B>prefixesB>([PAIRS])

See Accessors in XML::Compile::Cache

    Compilers

$obj-><B>compileB>((’READER’|’WRITER’), TYPE, OPTIONS)

See Compilers in XML::Compile::Schema

$obj-><B>compileAllB>([’READER’|’WRITER’|’RW’, [NAMESPACE]])

See Compilers in XML::Compile::Cache

$obj-><B>dataToXMLB>(NODE|REF-XML-STRING|XML-STRING|FILENAME|FILEHANDLE|KNOWN)

See Compilers in XML::Compile

$obj-><B>readerB>(TYPE|NAME, OPTIONS)

See Compilers in XML::Compile::Cache

$obj-><B>templateB>(’XML’|’PERL’, TYPE, OPTIONS)

See Compilers in XML::Compile::Schema

$obj-><B>writerB>(TYPE|NAME)

See Compilers in XML::Compile::Cache

    Administration

$obj-><B>declareB>(’READER’|’WRITER’|’RW’, TYPE|ARRAY-of-TYPES, OPTIONS)

See Administration in XML::Compile::Cache

$obj-><B>elementsB>

See Administration in XML::Compile::Schema

$obj-><B>findNameB>(NAME)

See Administration in XML::Compile::Cache

$obj-><B>findSchemaFileB>(FILENAME)

See Administration in XML::Compile

$obj-><B>importDefinitionsB>(XMLDATA, OPTIONS)

See Administration in XML::Compile::Schema

$obj-><B>knownNamespaceB>(NAMESPACE|PAIRS)

XML::Rewrite::Schema-><B>knownNamespaceB>(NAMESPACE|PAIRS)

See Administration in XML::Compile

$obj-><B>namespacesB>

See Administration in XML::Compile::Schema

$obj-><B>printIndexB>([FILEHANDLE], OPTIONS)

See Administration in XML::Compile::Cache

$obj-><B>typesB>

See Administration in XML::Compile::Schema

$obj-><B>walkTreeB>(NODE, CODE)

See Administration in XML::Compile

    Processing

$obj-><B>buildDOMB>(TYPE, DATA, OPTIONS)

See Processing in XML::Rewrite

$obj-><B>processB>(XMLDATA, OPTIONS)

See Processing in XML::Rewrite

$obj-><B>repairXMLB>(TYPE, XML, DETAILS)

See Processing in XML::Rewrite

$obj-><B>transformDataB>(TYPE, DATA, DETAILS)

See Processing in XML::Rewrite

DETAILS

DIAGNOSTICS

Error: cannot find pre-installed name-space files

Use $ENV{SCHEMA_LOCATION} or new(schema_dirs) to express location of installed name-space files, which came with the XML::Compile distribution package.

Error: don’t known how to interpret XML data

SEE ALSO

This module is part of XML-Rewrite distribution version 0.10, built on August 11, 2008. Website: http://perl.overmeer.net/xml-compile/

All modules in this suite: XML::Compile, XML::Compile::SOAP, XML::Compile::SOAP::Daemon, XML::Compile::Tester, XML::Compile::Cache, XML::Rewrite, XML::Compile::Dumper.

Please post questions or ideas to the mailinglist at http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/xml-compile For life contact with other developers, visit the #xml-compile channel on irc.perl.org.

LICENSE

Copyrights 2008 by Mark Overmeer. For other contributors see ChangeLog.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See http://www.perl.com/perl/misc/Artistic.html

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 XML::REWRITE::SCHEMA (3) 2008-08-11

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.