<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Parsing XML with Perl - Which module in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/parsing-xml-with-perl-which-module/m-p/4916591#M104014</link>
    <description>Module has to be in @INC path only. Try to put XML/Parser.pm into /opt/aue/bin or anyother directories in @INC. Or else, include /opt/perl/lib/site_perl/5.6.1/PA-RISC1.1-thread-multi/ directory into @INC directory.&lt;BR /&gt;&lt;BR /&gt;hth.</description>
    <pubDate>Mon, 08 Aug 2005 00:58:46 GMT</pubDate>
    <dc:creator>Muthukumar_5</dc:creator>
    <dc:date>2005-08-08T00:58:46Z</dc:date>
    <item>
      <title>Parsing XML with Perl - Which module</title>
      <link>https://community.hpe.com/t5/operating-system-linux/parsing-xml-with-perl-which-module/m-p/4916590#M104013</link>
      <description>You will have to excuse me on this post as my knowledge and experience on CPan modules is a bit hit and miss.&lt;BR /&gt;&lt;BR /&gt;I have some fairly uncomplicated XML I wish to extract from fields from.&lt;BR /&gt;&lt;BR /&gt;If I can possibly avoid doing so I would like to avoid having to install extra modules on the clients server.&lt;BR /&gt;&lt;BR /&gt;Surfing the CPan modules XML::Parser showed promise but this line:&lt;BR /&gt;&lt;BR /&gt;use XML::Parser;&lt;BR /&gt;&lt;BR /&gt;produces this error:&lt;BR /&gt;_____________&lt;BR /&gt;&lt;BR /&gt;Can't locate XML/Parser.pm in @INC (@INC contains: /opt/aue/bin /opt/aue/lib /opt/perl5/lib/5.00503/PA-RISC2.0 /opt/perl5/lib/5.00503 /opt/perl5/lib/site_perl/5.005/PA-&lt;BR /&gt;RISC2.0 /opt/perl5/lib/site_perl/5.005 .) at ./t.pl line 12.&lt;BR /&gt;BEGIN failed--compilation aborted at ./t.pl line 12.&lt;BR /&gt;_____________&lt;BR /&gt;&lt;BR /&gt;However this module is installed in some places:&lt;BR /&gt;__________&lt;BR /&gt;&lt;BR /&gt;-r--r--r--   1 bin        bin          29402 Jun 21  2001 /opt/perl/lib/site_perl/5.6.1/PA-RISC1.1-thread-multi/XML/Parser.pm&lt;BR /&gt;-r--r--r--   1 bin        bin          23398 Jun 21  2001 /opt/perl/lib/site_perl/5.6.1/XML/XPath/Parser.pm&lt;BR /&gt;-r-xr-xr-x   1 bin        bin          29402 Nov  8  2000 /opt/perl5.005_03/lib/5.00503/PA-RISC1.1/XML/Parser.pm&lt;BR /&gt;__________&lt;BR /&gt;&lt;BR /&gt;My Question: Given that this module is installed is there are good reason why it is not installed for PA-RISC2.0?  Is there some other module I should be using instead?</description>
      <pubDate>Mon, 08 Aug 2005 00:51:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/parsing-xml-with-perl-which-module/m-p/4916590#M104013</guid>
      <dc:creator>Daavid Turnbull</dc:creator>
      <dc:date>2005-08-08T00:51:17Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing XML with Perl - Which module</title>
      <link>https://community.hpe.com/t5/operating-system-linux/parsing-xml-with-perl-which-module/m-p/4916591#M104014</link>
      <description>Module has to be in @INC path only. Try to put XML/Parser.pm into /opt/aue/bin or anyother directories in @INC. Or else, include /opt/perl/lib/site_perl/5.6.1/PA-RISC1.1-thread-multi/ directory into @INC directory.&lt;BR /&gt;&lt;BR /&gt;hth.</description>
      <pubDate>Mon, 08 Aug 2005 00:58:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/parsing-xml-with-perl-which-module/m-p/4916591#M104014</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2005-08-08T00:58:46Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing XML with Perl - Which module</title>
      <link>https://community.hpe.com/t5/operating-system-linux/parsing-xml-with-perl-which-module/m-p/4916592#M104015</link>
      <description>My gut feeling is that there has to be more to this one than that.  I picked the most likely looking candidate and put in a sym link:&lt;BR /&gt;____________&lt;BR /&gt;Can't locate loadable object for module XML::Parser::Expat in @INC (@INC contains: /opt/aue/bin /opt/aue/lib /opt/perl5/lib/5.00503/PA-RISC2.0 /opt/perl5/lib/5.00503 /o&lt;BR /&gt;pt/perl5/lib/site_perl/5.005/PA-RISC2.0 /opt/perl5/lib/site_perl/5.005 .) at /opt/aue/lib/XML/Parser.pm line 15&lt;BR /&gt;BEGIN failed--compilation aborted at /opt/aue/lib/XML/Parser.pm line 27.&lt;BR /&gt;BEGIN failed--compilation aborted at ./t.pl line 12.</description>
      <pubDate>Mon, 08 Aug 2005 01:15:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/parsing-xml-with-perl-which-module/m-p/4916592#M104015</guid>
      <dc:creator>Daavid Turnbull</dc:creator>
      <dc:date>2005-08-08T01:15:56Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing XML with Perl - Which module</title>
      <link>https://community.hpe.com/t5/operating-system-linux/parsing-xml-with-perl-which-module/m-p/4916593#M104016</link>
      <description>Hi Daavid,&lt;BR /&gt; &lt;BR /&gt;as XML lends itself to being parsed through Perl, as you can imagine, there is an abundance of Perl modules available for this purpose.&lt;BR /&gt;So it could be difficult to decide which one to use, and it depends on the XML source you need to parse, and on what you intend to achieve.&lt;BR /&gt;Most XML parsers fall into two categories.&lt;BR /&gt;Those that parse an XML document treating it as a tree, and those which are event based&lt;BR /&gt;(mind you there's even a SAX implementation for Perl).&lt;BR /&gt;However, some also are very versatile and allow both.&lt;BR /&gt;There are also pure Perl modules that don't require some extra C libraries, and of course the latter.&lt;BR /&gt;If your parsing is simple and if you don't have to parse huge chunks of XML I would suggest XML::Simple, which doesn't require the additional installation of XML libraries.&lt;BR /&gt;See&lt;BR /&gt;&lt;A href="http://search.cpan.org/~grantm/XML-Simple-2.14/lib/XML/Simple.pm" target="_blank"&gt;http://search.cpan.org/~grantm/XML-Simple-2.14/lib/XML/Simple.pm&lt;/A&gt;&lt;BR /&gt;for details.&lt;BR /&gt;However, be warned that XML::Simple can have a severe time penalty (especially if your XML is vast).&lt;BR /&gt;Afaik, it's also not suited for XML validation against a DTD or Schema (or RelaxNG), but merely well-formedness.&lt;BR /&gt;If the performance is prohibitive I'd suggest you go for XML::Parser which is based on one of the oldest XML parsers going back to an implimantation of Perl inventor Larry Wall himself.&lt;BR /&gt;&lt;A href="http://search.cpan.org/~msergeant/XML-Parser-2.34/Parser.pm" target="_blank"&gt;http://search.cpan.org/~msergeant/XML-Parser-2.34/Parser.pm&lt;/A&gt;&lt;BR /&gt;Thus XML::Parser possibly lacks the latest of XML specification adherence.&lt;BR /&gt;I'm not sure if XML::Parser would install without libexpat, but I fear not.&lt;BR /&gt;So you as well would need to install the C library Expat which the module has to be linked against.&lt;BR /&gt;&lt;A href="http://expat.sourceforge.net/" target="_blank"&gt;http://expat.sourceforge.net/&lt;/A&gt;&lt;BR /&gt;Because XML::Parser makes use of libexpat it's really rocking fast compared to XML::Simple.&lt;BR /&gt;The coding also differs significantly from XML::Simple as you would have to define callback functions for XML elements you need to catch.&lt;BR /&gt;As anside, many newer and more specialized XML Perl modules are based on XML::Simple.&lt;BR /&gt;Therefore it cannot hurt to have it installed.&lt;BR /&gt;Have you made sure that you installed the prerequisite libexpat?&lt;BR /&gt;Another nifty module is XML::XPath which I think also requires XML::Parser (thus also makes use of libexpat and is equally fast)&lt;BR /&gt;&lt;A href="http://search.cpan.org/~msergeant/XML-XPath-1.13/XPath.pm" target="_blank"&gt;http://search.cpan.org/~msergeant/XML-XPath-1.13/XPath.pm&lt;/A&gt;&lt;BR /&gt;It builds on the XPath specification and implements the XPath functions as Perl methods.&lt;BR /&gt;It's especially easy to use for people used to Unix directory paths, which can be thought of as an analogy.&lt;BR /&gt;Then there's another big contender XML::libXML&lt;BR /&gt;&lt;A href="http://search.cpan.org/~phish/XML-LibXML-1.58/LibXML.pod" target="_blank"&gt;http://search.cpan.org/~phish/XML-LibXML-1.58/LibXML.pod&lt;/A&gt;&lt;BR /&gt;which requires the Gnome libxml2&lt;BR /&gt;&lt;A href="http://xmlsoft.org/" target="_blank"&gt;http://xmlsoft.org/&lt;/A&gt;&lt;BR /&gt;With it you can adhere fully to XML specification as it implements the Document Object Module (DOM) as well as the Simple API to XML (SAX) which is heavily used in the Java community.&lt;BR /&gt;I think these are the most prominent Perl modules if you need anything to do XML.&lt;BR /&gt;But there are dozens of others which maybe even better serve your purpose.&lt;BR /&gt;I would suggest you browse through CPAN and have a look at the POD of the other modules.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 08 Aug 2005 01:34:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/parsing-xml-with-perl-which-module/m-p/4916593#M104016</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2005-08-08T01:34:17Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing XML with Perl - Which module</title>
      <link>https://community.hpe.com/t5/operating-system-linux/parsing-xml-with-perl-which-module/m-p/4916594#M104017</link>
      <description>1. You are using perl-5.005_03 which is not particulary recent. Though it is stable, chances that you hit problems that will never be solved are increasing by the day, certainly when using XS modules like XML::Parse that depend on external libraries (libexpat)&lt;BR /&gt;&lt;BR /&gt;2. Yes there is more:&lt;BR /&gt;&lt;BR /&gt;lt09:/home/merijn 104 &amp;gt; find /pro/lib/perl5 | grep XML | grep -w -v -e SAX -e PROCURA -e Twig -e XPath&lt;BR /&gt;/pro/lib/perl5/site_perl/5.8.7/Pod/Simple/XMLOutStream.pm&lt;BR /&gt;/pro/lib/perl5/site_perl/5.8.7/Pod/Simple/DumpAsXML.pm&lt;BR /&gt;/pro/lib/perl5/site_perl/5.8.7/XML&lt;BR /&gt;/pro/lib/perl5/site_perl/5.8.7/XML/Parser&lt;BR /&gt;/pro/lib/perl5/site_perl/5.8.7/XML/Parser/Lite.pm&lt;BR /&gt;/pro/lib/perl5/site_perl/5.8.7/Apache/XMLRPC&lt;BR /&gt;/pro/lib/perl5/site_perl/5.8.7/Apache/XMLRPC/Lite.pm&lt;BR /&gt;/pro/lib/perl5/site_perl/5.8.7/XMLRPC&lt;BR /&gt;/pro/lib/perl5/site_perl/5.8.7/XMLRPC/Lite.pm&lt;BR /&gt;/pro/lib/perl5/site_perl/5.8.7/XMLRPC/Transport&lt;BR /&gt;/pro/lib/perl5/site_perl/5.8.7/XMLRPC/Transport/TCP.pm&lt;BR /&gt;/pro/lib/perl5/site_perl/5.8.7/XMLRPC/Transport/HTTP.pm&lt;BR /&gt;/pro/lib/perl5/site_perl/5.8.7/XMLRPC/Transport/POP3.pm&lt;BR /&gt;/pro/lib/perl5/site_perl/5.8.7/XMLRPC/Test.pm&lt;BR /&gt;/pro/lib/perl5/site_perl/5.8.7/i686-linux-64int/XML&lt;BR /&gt;/pro/lib/perl5/site_perl/5.8.7/i686-linux-64int/XML/Parser&lt;BR /&gt;/pro/lib/perl5/site_perl/5.8.7/i686-linux-64int/XML/Parser/Style&lt;BR /&gt;/pro/lib/perl5/site_perl/5.8.7/i686-linux-64int/XML/Parser/Style/Debug.pm&lt;BR /&gt;/pro/lib/perl5/site_perl/5.8.7/i686-linux-64int/XML/Parser/Style/Objects.pm&lt;BR /&gt;/pro/lib/perl5/site_perl/5.8.7/i686-linux-64int/XML/Parser/Style/Stream.pm&lt;BR /&gt;/pro/lib/perl5/site_perl/5.8.7/i686-linux-64int/XML/Parser/Style/Subs.pm&lt;BR /&gt;/pro/lib/perl5/site_perl/5.8.7/i686-linux-64int/XML/Parser/Style/Tree.pm&lt;BR /&gt;/pro/lib/perl5/site_perl/5.8.7/i686-linux-64int/XML/Parser/LWPExternEnt.pl&lt;BR /&gt;/pro/lib/perl5/site_perl/5.8.7/i686-linux-64int/XML/Parser/Expat.pm&lt;BR /&gt;/pro/lib/perl5/site_perl/5.8.7/i686-linux-64int/XML/Parser/Encodings&lt;BR /&gt;/pro/lib/perl5/site_perl/5.8.7/i686-linux-64int/XML/Parser/Encodings/README&lt;BR /&gt;/pro/lib/perl5/site_perl/5.8.7/i686-linux-64int/XML/Parser/Encodings/x-euc-jp-jisx0221.enc&lt;BR /&gt;/pro/lib/perl5/site_perl/5.8.7/i686-linux-64int/XML/Parser/Encodings/x-sjis-unicode.enc&lt;BR /&gt;/pro/lib/perl5/site_perl/5.8.7/i686-linux-64int/XML/Parser/Encodings/euc-kr.enc&lt;BR /&gt;/pro/lib/perl5/site_perl/5.8.7/i686-linux-64int/XML/Parser/Encodings/Japanese_Encodings.msg&lt;BR /&gt;/pro/lib/perl5/site_perl/5.8.7/i686-linux-64int/XML/Parser/Encodings/x-sjis-cp932.enc&lt;BR /&gt;/pro/lib/perl5/site_perl/5.8.7/i686-linux-64int/XML/Parser/Encodings/x-euc-jp-unicode.enc&lt;BR /&gt;/pro/lib/perl5/site_perl/5.8.7/i686-linux-64int/XML/Parser/Encodings/x-sjis-jisx0221.enc&lt;BR /&gt;/pro/lib/perl5/site_perl/5.8.7/i686-linux-64int/XML/Parser/Encodings/x-sjis-jdk117.enc&lt;BR /&gt;/pro/lib/perl5/site_perl/5.8.7/i686-linux-64int/XML/Parser/Encodings/big5.enc&lt;BR /&gt;/pro/lib/perl5/site_perl/5.8.7/i686-linux-64int/XML/Parser/Encodings/iso-8859-2.enc&lt;BR /&gt;/pro/lib/perl5/site_perl/5.8.7/i686-linux-64int/XML/Parser/Encodings/iso-8859-3.enc&lt;BR /&gt;/pro/lib/perl5/site_perl/5.8.7/i686-linux-64int/XML/Parser/Encodings/iso-8859-4.enc&lt;BR /&gt;/pro/lib/perl5/site_perl/5.8.7/i686-linux-64int/XML/Parser/Encodings/iso-8859-5.enc&lt;BR /&gt;/pro/lib/perl5/site_perl/5.8.7/i686-linux-64int/XML/Parser/Encodings/iso-8859-7.enc&lt;BR /&gt;/pro/lib/perl5/site_perl/5.8.7/i686-linux-64int/XML/Parser/Encodings/iso-8859-8.enc&lt;BR /&gt;/pro/lib/perl5/site_perl/5.8.7/i686-linux-64int/XML/Parser/Encodings/iso-8859-9.enc&lt;BR /&gt;/pro/lib/perl5/site_perl/5.8.7/i686-linux-64int/XML/Parser/Encodings/windows-1250.enc&lt;BR /&gt;/pro/lib/perl5/site_perl/5.8.7/i686-linux-64int/XML/Parser/Encodings/windows-1252.enc&lt;BR /&gt;/pro/lib/perl5/site_perl/5.8.7/i686-linux-64int/XML/Parser.pm&lt;BR /&gt;/pro/lib/perl5/site_perl/5.8.7/i686-linux-64int/auto/XML&lt;BR /&gt;/pro/lib/perl5/site_perl/5.8.7/i686-linux-64int/auto/XML/Parser&lt;BR /&gt;/pro/lib/perl5/site_perl/5.8.7/i686-linux-64int/auto/XML/Parser/Expat&lt;BR /&gt;/pro/lib/perl5/site_perl/5.8.7/i686-linux-64int/auto/XML/Parser/Expat/Expat.bs&lt;BR /&gt;/pro/lib/perl5/site_perl/5.8.7/i686-linux-64int/auto/XML/Parser/Expat/Expat.so&lt;BR /&gt;/pro/lib/perl5/site_perl/5.8.7/i686-linux-64int/auto/XML/Parser/.packlist&lt;BR /&gt;lt09:/home/merijn 105 &amp;gt;&lt;BR /&gt;&lt;BR /&gt;I propose to upgrade :)&lt;BR /&gt;&lt;BR /&gt;Enjoy, Have FUN! H.Merijn</description>
      <pubDate>Mon, 08 Aug 2005 02:29:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/parsing-xml-with-perl-which-module/m-p/4916594#M104017</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2005-08-08T02:29:11Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing XML with Perl - Which module</title>
      <link>https://community.hpe.com/t5/operating-system-linux/parsing-xml-with-perl-which-module/m-p/4916595#M104018</link>
      <description>Yes, I forgot XML::Twig.&lt;BR /&gt;I also had a typo where I wrote that many other XML modules were "based on XML::Simple".&lt;BR /&gt;This of course is dead wrong and I meant XML::Parser.&lt;BR /&gt;Once you have a current Perl installed you should try to install your required XML modules via the CPAN module (or its successor, as procura would suggest).&lt;BR /&gt;The advantage of this is that it reminds you of all dependencies (which can be quite a few), and also tries to download and build them.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 08 Aug 2005 03:01:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/parsing-xml-with-perl-which-module/m-p/4916595#M104018</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2005-08-08T03:01:06Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing XML with Perl - Which module</title>
      <link>https://community.hpe.com/t5/operating-system-linux/parsing-xml-with-perl-which-module/m-p/4916596#M104019</link>
      <description>These detailed responses have given me something to think about.&lt;BR /&gt;&lt;BR /&gt;Upgrading to a more recent version of Perl does sound like the answer I was looking for.  I will have to talk to the sys admin for these machines to see what can be done.&lt;BR /&gt;&lt;BR /&gt;I will leave this thread open for a couple of days and assign points once I have digested the information and re read the posts a couple of times.&lt;BR /&gt;</description>
      <pubDate>Mon, 08 Aug 2005 03:25:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/parsing-xml-with-perl-which-module/m-p/4916596#M104019</guid>
      <dc:creator>Daavid Turnbull</dc:creator>
      <dc:date>2005-08-08T03:25:56Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing XML with Perl - Which module</title>
      <link>https://community.hpe.com/t5/operating-system-linux/parsing-xml-with-perl-which-module/m-p/4916597#M104020</link>
      <description>Thanks guys.  Your input was what I needed.</description>
      <pubDate>Tue, 09 Aug 2005 19:06:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/parsing-xml-with-perl-which-module/m-p/4916597#M104020</guid>
      <dc:creator>Daavid Turnbull</dc:creator>
      <dc:date>2005-08-09T19:06:47Z</dc:date>
    </item>
  </channel>
</rss>

