Tag Info

New answers tagged

0

It's an older question, but as I haven't seen it suggested yet: Perl with XML::Twig can handle large XML files thanks to having a 'purge' method, which discards in memory data as you go. use strict; use warnings; use XML::Twig; my $twig = XML::Twig->new( twig_handlers => { _all_ => sub { $_->purge } } )->parsefile( ...


2

OK. There's a pretty fundamental problem here. XML is complex language with a detailed spec. Without libraries this is difficult - XML is pretty fundamentally a thing that needs proper parsing. So for example using XML::Twig with Perl, you'd get: use strict; use warnings; use XML::Twig; my $twig = XML::Twig->new()->parsefile ( 'your_xml_file.xml' ...


1

I would have suggest following xsl file <?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output type="text" indent="yes" omit-xml-declaration="yes" /> <xsl:template match="//record"> <xsl:for-each select="data" > <xsl:value-of select="../id_localisation" ...



Top 50 recent answers are included