in reply to Re: Using environment variables in xi:include
in thread Using environment variables in xi:include
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?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Using environment variables in xi:include
by dHarry (Abbot) on Jan 15, 2010 at 12:09 UTC |