Re: Parsing XML based config files
Grant McLean <[email protected]>
| Newsgroups | gmane.comp.lang.perl.xml |
|---|---|
| Message-ID | <[email protected]> |
On Tue, 2009-02-17 at 15:13 -0500, Burton Simonds wrote:
> I have been scouring the internet trying to find out if there is
> already some code to parse the cluster.conf file for redhat
> clustering.
...
> the trouble I have been having is when I output the XML after inputing
> it, it is not identical, and the processes can not parse them.
Is that because you're using XML::Simple? If so, then the two things to
try are:
1. Turn off array folding with: KeyAttr => {}
2. Turn on: ForceArray => 1
If that still doesn't work, then you need to switch to a different
module. This article helps with the switch from XML::Simple to
XML::LibXML:
http://www.perlmonks.org/index.pl?node_id=490846
If you're not using XML::Simple then let us know what you've tried.
Cheers
Grant
_______________________________________________
Perl-XML mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs