DOM parsing the XML configuration File
by Jaebin Lee other posts by this author
Nov 13 2006 8:37AM messages near this date
view in the new Beta List Site
Re: Deleting a Node
|
Re: DOM parsing the XML configuration File
& XSLT Hi,
I have just joined the perl user mailing list and am new to using Perl.
Thank you for reading my question first of all.
I want to parse and update certain elements of a XML configuration
File, and tried using XML::DOM module for parsing. However, I have
problem in reading in the file at first,
which is named "reuters.express.web.config", with type: xml configuration file.
I tried doing both
my $doc = $parser-> parsefile("reuters.express.web.config");
my $doc = $parser-> parsefile("reuters.express.web.config.xml");
but it complains of not being able to read the file in at all.
My question is...
1. is it possible to use DOM parser to parse the XML configuration
file which is different than normal XML file I believe?
2. If so, how can I exactly read in the file?
3. If now, which kind of parser is recommended for parsing XML
configuration file? and how exactly can the file be read in?
I'd really appreciate if I get help for the problem.
Thank you.
-Jaebin
_______________________________________________
Perl-XML mailing list
Perl-XML@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Thread:
Jaebin Lee
Robin Berjon
Jaebin Lee
|