laozi has asked for the wisdom of the Perl Monks concerning the following question:

Dear monks

i am using XML::Simple to parse an XML configuration file latley i was trying to make the XML hierarcial by including another XML file into it using the directive <xi:include>

i parsed the XML using XML::Simple but instead of the included xml file i just gut a hash entry that sayd "xi:include"

does XML::Simple process xi:inlcude directives if not is there another module that does it

Thanks laozi

Replies are listed 'Best First'.
Re: use xi:include in XML file
by daxim (Curate) on Aug 27, 2013 at 13:57 UTC

      thanks

      but i need the output to be hash which i think LibXML doesnt support. i have too much code to switch to DOM

      is there a way to do process xinlcude and translate it to hash ? <\p>

        1) parse with LibXML, 2) expand with LibXML, 3) serialize the LibXML doc and give to XML::Simple: XMLin($dom->serialize).