Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

use xi:include in XML file

by laozi (Novice)
on Aug 27, 2013 at 13:46 UTC ( [id://1051137]=perlquestion: print w/replies, xml ) Need Help??

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).

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1051137]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2024-04-24 17:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found