Questions tagged [xml-simple]

The "simple" libraries for working with XML in Ruby or Perl.

The Perl XML::Simple module or the XmlSimple Ruby gem.

111 questions
1
vote
3 answers

How to parse multi record XML file ues XML::Simple in Perl

My data.xml Hide your heart Bonnie Tyler 10.0 Greatest Hits
Nano HE
  • 9,109
  • 31
  • 97
  • 137
1
vote
1 answer

Getting at XML tree data in perl

I need to parse an XML file using perl which I can load the file using the XML::Simple module but within the XML tree there is a tag that I can't see using the DataDumper module but I can see it's value instead. . …
todd1215
  • 293
  • 3
  • 13
1
vote
1 answer

Avoid "could not find parserDetail.ini" warning

When using XML::Simple, I always get the warning could not find ParserDetails.ini in /usr/lib/perl5/vendor_perl/5.8.8/XML/SAX I would like do do something like { no warning qw(insert_your_magic_here); my $hash_ref = XMLin('my_file.xml') } I red…
MUY Belgium
  • 2,330
  • 4
  • 30
  • 46
1
vote
1 answer

How to parse/extract a list of values from a deeply nested XML file using Perl

How can I parse/extract a list of values from an XML file with well nested values? I have tried XML Simple and I am only able to extract the first value from a list of over 10 values. I am trying to first select seriesName "Temperature" and extract…
BrianB
  • 133
  • 1
  • 12
1
vote
2 answers

Perl not interpreting value in ticks, calling it undefined value

I am writing a subroutine that uses the XML::Simple module to pull out information from a config file. The XML file has the following structure
Andrew
  • 397
  • 1
  • 3
  • 13
1
vote
1 answer

Perl parse unusual XML into an array of hashes

I am trying to parse XML into an array of hashes I know you can do this using XML::Simple, but it is not giving me the desired results. This is my XML:
CircuitB0T
  • 465
  • 2
  • 6
  • 19
1
vote
1 answer

perl XML::Simple for repeated elements

I have the following xml code
user1876128
  • 91
  • 14
1
vote
2 answers

XML::Simple check if node contains value

I can't figure out how to check if node contains value with XML::Simple module in Perl... Here is the my code: my $parser = XML::Simple->new; my $url = 'http://some/xml.aspx'; my $content = get $url or die "Unable to get $url\n"; my $data =…
nKognito
  • 6,297
  • 17
  • 77
  • 138
1
vote
0 answers

aws-s3 can't find xml-simple, but in gem list

I'm transitioning to heroku, and need to have AWS-s3 connections to deal with a variety of graphics. I've installed the aws-s3 gem, but one of its dependencies is not being found: xml-simple. My belief is that this is a standard part of RoR, and it…
Dan Donaldson
  • 317
  • 1
  • 4
  • 14
1
vote
2 answers

How to build a hashref with arrays in perl?

I am having trouble building what i think is a hashref (href) in perl with XML::Simple. I am new to this so not sure how to go about it and i cant find much to build this href with arrays. All the examples i have found are for normal href. The code…
1
vote
1 answer

XML::Simple - How to fix that the same xml structure results in 2 different Perl data structures, depending on amount of members/syblings?

I am new to XML::Simple (and also not very keen in xml). I want to use it for parsing a simple xml structure that I get as result of an API. I do not have any influence on the xml I get. When the returned xml list contains just one member I have a…
Enkidu
  • 149
  • 1
  • 1
  • 9
1
vote
1 answer

The xml attribute "id" seems to be a protected attribute. What config needed to be able to set it?

I am using the perl module XML::Simple to create an XML structure. Everything works fine except that the string " ABC " looks like ABC afterwards. I use the string with XML::Simple as follows my $simple =…
Thariama
  • 50,002
  • 13
  • 138
  • 166
1
vote
1 answer

forcing single quotes on XMLout()

Is there an easy way to force XMLout() of XML::Simple to use single quotes instead of double quotes for the attributes? I didn't find an according option (or I missed it...). should be
Christoph
  • 50,121
  • 21
  • 99
  • 128
1
vote
1 answer

Using a : in a variable name in perl

I'm really new to perl and have an issue where I load in XML using XML::Simple and I have the tag names as hash names. I want to get at the hash stored with the name "xsd:schema" but obviously $xsd:schema doesn't work. I've spent ages googling it…
Shane
  • 313
  • 1
  • 5
  • 12
1
vote
3 answers

How do I disable subtag sorting in Perl's XML::Simple?

I just want to find the way of disable the sort operation in XML::Simple For example: #!/usr/bin/perl use strict; use warnings; use XML::Simple; my %my_xml = ( NAME => [ 'test' ], EMAIL => [ 'test@example.com' ], ID => 12, ); my…
joe
  • 34,529
  • 29
  • 100
  • 137