The above is an example where I am able to reproduce the issue. I realize many people here will not be able to recreate the scenario (as you'll need MKVExtract and a MKV file with chapters) so I'll summarize. The above code is extracting an XML from the MKV then immediately loading it up with load_xml. The issue is that load_xml in this type of situation does not like that there is a space in the directory path ("My Folder"). I'm not sure how to work around the issue apart from using folders that contain no spaces. Below is the error. Any help would be greatly appreciated!use warnings; use strict; use XML::LibXML; my $mkvext = 'mkvextract'; my ($self) = {}; $self->{xml} = XML::LibXML->new(); my $item = "F:\\My Folder\\split-001.mkv"; my $cmd = "$mkvext chapters $item"; open my $H, "$cmd |"; binmode $H; my $xml = $self->{xml}->load_xml(IO => $H);
L:>Test.pl Entity: line 1: parser error : Document is empty Error: Unrecognized command line option 'Folder\split-001.mkv'. ^
In reply to Load XML issues by Elegant
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |