This is the sample code
use XML::DOM; use strict; use File::Find; use XML::SAX; use XML::SAX::Writer; use XML::Filter::XInclude; use File::Copy; use IO::File; my $output = new IO::File "> output.xml"; my $parser = XML::SAX::ParserFactory->parser( Handler => XML::Filter::XInclude->new( Handler => XML::SAX::Writer->new(Output=>$output) ) ); $parser->parse_uri("./project.xml");
output.xml has a has some data and also has a xinclude, ie reference to another file in another location. As of now the paths are absolute, but can it support any variable?
In reply to Re^2: Using environment variables in xi:include
by joeperl
in thread Using environment variables in xi:include
by joeperl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |