XMLUtils - a module for useful XML utilities for Genex DBs
use XMLUtils; $out_string = pretty_print($in_string); assert_element($dom_node, 'node_name');
Methods for transforming information from a GeneX DB into XML.
This function takes an XML string and reformats it. The function takes an optional first parameter anonymous hash reference that enables modification of the internal reformatting parameters.
INDENT
The indent level in spaces. The defualt is 2.
COLLAPSE
A list of tags that should have their beginning and end tags collapsed onto a single line. This will result in any intervening tags collapsed onto the same line. The default is ('feature').
('feature')
NO_ATTR_BALANCE
A list of attribute names that should not be moved to a separate line. The default is ('xml').
('xml')
This raises an exception unless $dom_node is an obect of type XML::DOM::Node, and the tag name is $node_name.
Jason Stewart (jes@ncgr.org)
perl(1).
To install Bio::Genex::Fkey, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Bio::Genex::Fkey
CPAN shell
perl -MCPAN -e shell install Bio::Genex::Fkey
For more information on module installation, please visit the detailed CPAN module installation guide.