in reply to Re^3: XML::LibXML question: How to list XInclude files, which are supposed to be included?
in thread XML::LibXML question: How to list XInclude files, which are supposed to be included?

Sorry, you misunderstood me - I'm not trying to download any files from remote sites, all my files are local

My point is that in order to make the parser to expand XInclude's I have to call it with option "xinclude => 1" - but in this case the resulting tree doesn't contain any original filenames, from which XML pieces have been included

If I call the parser without this option (which is default), then it won't expand these XInclude's, so only the first-level filenames will be here (because no expansion will be happening)

So, in both cases I can't find ALL filenames I need

Alex
  • Comment on Re^4: XML::LibXML question: How to list XInclude files, which are supposed to be included?

Replies are listed 'Best First'.
Re^5: XML::LibXML question: How to list XInclude files, which are supposed to be included?
by ikegami (Patriarch) on Jul 06, 2011 at 22:28 UTC

    I'm not trying to download any files from remote sites, all my files are local

    It makes no difference if the urls point to remote or local resources. LWP::UserAgent will properly handle file: urls.

    So, in both cases I can't find ALL filenames I need

    Wee! I've done the impossible!

Re^5: XML::LibXML question: How to list XInclude files, which are supposed to be included?
by ikegami (Patriarch) on Jul 06, 2011 at 22:28 UTC

    I'm not trying to download any files from remote sites, all my files are local

    It makes no difference if the urls point to remote or local resources. LWP::UserAgent will properly handle file: urls.

    So, in both cases I can't find ALL filenames I need

    Wee! I've done the impossible!

      Oh yes, you did! You have even created a parser with the line:

      my $parser = LibXML::XML->new();

      which I couldn't reproduce for hours ;-)

      Thanks,

      Alex

        I didn't test it. I didn't have anything on which to test it, and I figured it was good enough to show you how to do it.

        The issue you mentioned has now been fixed, and I also addressed the need for an absolute url.