For the Perl XML parsing module. For the C library libxml2, use the libxml2 tag.
Questions tagged [xml-libxml]
225 questions
2
votes
0 answers
Can't run XML::LibXML on Strawberry Perl - invalid path in Dynaloader.pm
I've just installed Strawberry Perl on a new computer, and installed XML::LibXML through cpan (I think it was already installed). When I try to run a script calling LibXML, I get the following error message:
Can't load…

Dom Glennon
- 43
- 6
2
votes
3 answers
Perl XML::LibXML, findnodes can only read the root of the XML file
I'm trying to parse this .kml file :

whippet
- 25
- 4
2
votes
1 answer
Handling the xml parser error
I have lots of XML files that I have to read them and then see if they are valid or not. I have some files that have problem withe missing endtag. Now my task is to write a code that read these files and just print the error message and the name of…
user4128379
2
votes
2 answers
Merging XML document hierarchies
Background
I'm designing a Perl application that uses XML files as inputs for config and settings information. There will be a hierarchy of documents, with global data overridden by more local information.
My program will be invoked with the most…

lzc
- 919
- 7
- 16
2
votes
1 answer
how insert an ancestor for an element
I Want to insert B1 element as a ancestor for 'C' Element. Below i have pasted my sample xml and perl code
Input
name
number
output
…

maddy
- 83
- 1
- 4
2
votes
2 answers
Why can't I access elements inside an XML file with XPath in XML::LibXML?
I have an XML file, part of which looks like this:
0.1123975676
... more wellID's and rawData continues…

John
- 5,139
- 19
- 57
- 62
2
votes
1 answer
parsing XML using perl XML::LibXML
I have a webservice that returns the XML in the following format. I'm using XML::LibXML to parse the output.
…

Jayaram
- 839
- 1
- 14
- 24
2
votes
4 answers
Parsing XML with Perl
Total noob here so I am sorry for my ignorance in advance.
Most of what I have searched and messed around with has centered around using XML::LibXML with XPath.
The problem that I have is that I am not looking to capture text between tags: I need…

user2891632
- 33
- 3
2
votes
1 answer
LibXML - Inserting a Comment
I'm using XML::LibXML, I'd like to add a comment such that the the comment is outside the tag. Is it even possible to put it outside the tag? I've tried appendChild, insertBefore | After, no difference ...
junk