NAME blx::xsdsql::schema_repository::catalog_xml

DESCRIPTION

API class for manage xml

VERSION

0.10.0

FUNCTIONS

this module defined the followed functions

store_xml - store an xml file into the repository if the repository is not installed the method return undef otherwise a uniq id associate to xml PARAMS: XML_NAME - if this param is set the association from your id is stored into the repository if XML_NAME already exist the method return undef and the file is not stored FD - file description opened in input mode relative to an xml file if is not set the standard input is assumed

put_xml - put on file descriptor an xml stored into the database if the repository is not installed or the xml name or id not exists return undef otherwise a uniq id associated to the xml PARAMS: NAME or ID - name of an xml file or it's id FD - file description opened in output mode relative to an xml file if it's not set standard output is assumed NO_WRITE_HEADER - if it's true not write the xml header NO_WRITE_FOOTER - if it's true not write the xml footer ROOT_TAG_PARAMS - customized the root xml params if it's set must be a list of pair param_name => value DELETE - if it's true, after the output on FD, the xml is deleted from repository HANDLE_BEFORE_XMLDECL - pointer sub called before xmlDecl HANDLE_AFTER_XMLDECL - pointer sub called after xmlDecl HANDLE_BEFORE_START_NODE - pointer sub called before a start node is write HANDLE_AFTER_START_NODE - pointer sub called after a start node is write HANDLE_BEFORE_END_NODE - pointer sub called before a end node is write HANDLE_AFTER_END_NODE - pointer sub called after a end node is write HANDLE_BEFORE_DATA_ELEMENT - pointer sub called before write dataElement HANDLE_AFTER_DATA_ELEMENT - pointer sub called after write dataElement HANDLE_BEFORE_END - pointer sub called before end of document HANDLE_AFTER_END - pointer sub called after end of document HANDLE_BEFORE_RAW_DATA - pointer sub called before write rawdata HANDLE_AFTER_RAW_DATA - pointer sub called after write rawdata

SEE ALSO

blx::xsdsql::00_readme_API blx::xsdsql::schema_repository blx::xsdsql::schema_repository::catalog blx::xsdsql::xsd_parser

BUGS

Please report any bugs or feature requests to https://rt.cpan.org/Public/Bug/Report.html?Queue=XSDSQL

AUTHOR

lorenzo.bellotti, <pauseblx@gmail.com>

COPYRIGHT AND LICENSE

Copyright (C) 2011 by lorenzo.bellotti

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