XML::CompareML - A processor for the CompareML markup language
Version 0.2.8
use XML::CompareML::HTML; my $converter = XML::CompareML::HTML->new( 'input_filename' => "my-comparison.xml", 'output_handle' => \*STDOUT, ); $converter->process();
Or alternatively:
use XML::CompareML::DocBook; my $converter = XML::CompareML::DocBook->new( 'input_filename' => "my-comparison.xml", 'output_handle' => \*STDOUT, ); $converter->process();
The CompareML language is currently undocumented, but one can see an example for a document written it in the t/files/scm-comparison.xml example in the distribution.
t/files/scm-comparison.xml
To convert a CompareML document to HTML instantiate an XML::CompareML::HTML object, and pass it the filename as the input_filename named parameter, and a reference to the IO handle to output the result as the output_handle named parameter.
input_filename
output_handle
To convert a CompareML document to DocBook do the same procedure only using an XML:CompareML::DocBook object.
Shlomi Fish, <shlomif@iglu.org.il>
<shlomif@iglu.org.il>
Please report any bugs or feature requests to bug-xml-compareml@rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=XML::CompareML. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-xml-compareml@rt.cpan.org
Copyright 2005 Shlomi Fish, All Rights Reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as the MIT X11 license.
To install XML::CompareML, copy and paste the appropriate command in to your terminal.
cpanm
cpanm XML::CompareML
CPAN shell
perl -MCPAN -e shell install XML::CompareML
For more information on module installation, please visit the detailed CPAN module installation guide.