NAME
XML::Xerces::ParserLiaison - Perl interface to XercesParserLiaison class
SYNOPSIS
use XML::Xalan;
use XML::Xerces;
use XML::Xerces::ParserLiaison;
my $parser = new XML::Xerces::DOMParser;
$parser->parse(new XML::Xerces::LocalFileInputSource($src_file));
# create Xerces ParserLiaison
my $pl = new XML::Xerces::ParserLiaison(new XML::Xerces::DOMSupport);
# create an XML::Xalan::Document object from the parsed document
my $doc = $p_liaison->create_document($parser->getDocument);
DESCRIPTION
This module connects XML::Xalan and XML::Xerces.
METHODS
- new($xerces_dom_supp)
-
Constructor, takes an XML::Xerces::DOMSupport object as the argument. Return an XML::Xalan::Transformer object.
my $dom_supp = new XML::Xerces::DOMSupport; my $pl = new XML::Xerces::ParserLiaison($dom_supp);
- $pl->create_document($dom)
-
Takes a DOM tree, and returns an XML::Xalan::Document.
my $parser = new XML::Xerces::DOMParser; my $input_src = XML::Xerces::LocalFileInputSource->new($src_file); $parser->parse($input_src); my $xalan_doc = $pl->create_document($parser->getDocument);
BUGS
There's no error handling yet. Will be added soon.
AUTHOR
Edwin Pratomo, edpratomo@cpan.org
SEE ALSO
XML::Xalan(3), XML::Xerces(3).