Questions tagged [xml-libxml]

For the Perl XML parsing module. For the C library libxml2, use the libxml2 tag.

225 questions
0
votes
2 answers

Change few characters only in a node value in XML using Perl script

Original XML: Peter_Parker@library.com Expected Result: Peter.Parker@library.com
London
Further XML…
NewUser
  • 3
  • 4
0
votes
1 answer

XML parsing using XML::LibXML

Here is the Sample data that am trying to parse to extract attribute value corresponding to node Company : CID, Name, Symbol, Value for all the Company nodes under Companies node
madmatrix
  • 205
  • 1
  • 4
  • 12
0
votes
0 answers

Perl LibXML to get node value report uninitialized

I try to get the node value using LibXML, Returns below log: Use of uninitialized value $long_name in concatenation (.) or string at validate.0.1.pl line 105, line 1. ###LI### 11 node_ln is:
dellair
  • 427
  • 4
  • 22
0
votes
1 answer

Extract data from an XML file with XML::LibXML

I have an XML file like this containing thousands of entries page1 2621 6 2005-10-09T01:00:18Z
rim
  • 39
  • 4
0
votes
1 answer

How to find child elements of a specified parent using XML::LibXML?

Suppose I have a XML file 1 Adam Math 90 7
vatsal
  • 109
  • 2
  • 12
0
votes
1 answer

Compatibility matrix for XML::LibXSLT with libxslt and libxml2

How can I tell if XML::LibXSLT-1.94 is most compatible with libxslt 1.1.29 or libxslt 1.1.28 ? I have this report which says Compiled against: libxslt 10128, libxml2 20902 Running: libxslt 10128, libxml2 20902 Does this mean its…
Recker
  • 1,915
  • 25
  • 55
0
votes
1 answer

Sorting XML elements by their attribute values

I have the following XML
tchike
  • 154
  • 4
  • 21
0
votes
3 answers

Replace a tag and value in xml using perl one liner

I need to replace the date value 2016-11-02 in the date tag with a new value using a perl one liner
V5 CDS Composites 1.1a 2016-11-02
I can do…
BRATVADDI
  • 199
  • 1
  • 2
  • 10
0
votes
1 answer

Does XML::LibXML::Node replaceNode() replace Perl instances of the replaced node

... so after I replace a with b, all previous references to a now point to b?
ZzZombo
  • 1,082
  • 1
  • 11
  • 26
0
votes
1 answer

Perl XML::LibXML - read the nodevalue from an element if nodevalue of it's parent element matches a string

I am using Perl XML::LibXML for extracting some data from an XML like below one. The XML: name_level1_name1
Shreyas
  • 1
  • 1
0
votes
1 answer

Download XML::LibXML and its dependencies

I want to install XML::LibXML (among others) on a Linux machine with no internet and no root access. My current solution is to download XML::LibXML and its dependencies from Windows, with strawberry perl, then install them on my linux machine. But…
mikedu95
  • 1,725
  • 2
  • 12
  • 24
0
votes
1 answer

perl arrays of array, elements are missing

I'm trying to generate arrays of array from xml string for nested tree structure. But when I generating reference variable $output few elements inside B1 are missing(C1, D1, D2). $testis generated using XML::LibXML::Readercpan module. use…
waghso
  • 623
  • 7
  • 23
0
votes
1 answer

Dump XML file elements and attributes

I wanted to print all elements and their attributes names and values from an XML file. Bill Message TEST Stub Message TEST 34
Prashant Deore
  • 57
  • 1
  • 10
0
votes
1 answer

Problems with installing XML::LibXML on ActiveState Perl 5.16.0. on Windows

I'm struggling on setting up LibXML on ActiveState Perl version 5.16.0. So far I followed the instrutions from this post How can I install Lib::XML on ActiveState Perl 5.20?: First, get the libxml2 binaries from http://xmlsoft.org/sources/win32/…
0
votes
2 answers

unable to parse xml file using registered namespace

I am using XML::LibXML to parse a XML file. There seems to some problem in using registered namespace while accessing the node elements. I am planning to covert this xml data into CSV file. I am trying to access each and every element here. To start…
chidori
  • 1,052
  • 3
  • 12
  • 25