Re: total noob question about xml parsing
by Laurent_R (Canon) on Oct 25, 2014 at 16:57 UTC
|
I appreciate that you said you cannot install CPAN modules, but you could at the very least use some of the pure-Perl XML parsing modules (even copying and pasting the code into your program, if worse comes to worse).
You could try this: XML::Parser::Lite::Tree or this: http://www.kawa.net/works/perl/treepp/treepp-e.html (but you might have to solve manually some dependencies on your very old version of Perl). They certainly don't have all the bells and whistles of full-fledged heavy-weight Dom or Sax XML parsers, but they may possibly get you out of trouble.
| [reply] |
|
Thanks! I will try to see if this is possible.
| [reply] |
Re: total noob question about xml parsing
by wjw (Priest) on Oct 26, 2014 at 00:59 UTC
|
Maybe I missed it, but I don't see you saying what you DO have. Have you checked what modules are installed? Perhaps you might get lucky and find that the distro or whatever source of that locked down Perl has something useful.
Some ways to do that
Just a thought...
...the majority is always wrong, and always the last to know about it...
Insanity: Doing the same thing over and over again and expecting different results...
A solution is nothing more than a clearly stated problem...otherwise, the problem is not a problem, it is simply an inconvenient fact
| [reply] |
|
So, I don't have anything that starts with XML::
In the end, I just did the thing I said I was going to do -- parse each line the same way I would have done in C. I appreciate the suggestions you guys gave me, and this assignment has really made me want to get good at perl. I am hoping to start looking into learning it from the start -- the RIGHT way. Of course I am going to peruse through here a lot, I imagine, but do you guys have any text/website reccomendations aside from here and the camel book from O'Reilly?
Thanks again!!!
| [reply] |
Re: total noob question about xml parsing
by duelafn (Parson) on Oct 25, 2014 at 15:18 UTC
|
There are many XML modules on CPAN (XML), but it can be hard to find the "right one" since search results are alphabetical rather than by rating/number of reviews. I recommend XML-LibXML.
| [reply] |
|
| [reply] |
|
| [reply] |
Re: total noob question about xml parsing
by perlron (Pilgrim) on Oct 25, 2014 at 15:20 UTC
|
| [reply] |
|
Yeah, I am trying to balance family and work this whole weekend, and I'm trying to search for anything I can through google, but most of those results are saying to use XML::Parser, but I don't have that available to use due to a relentless IAM. (HIPAA requirements and such) I am trying to get a quick workaround done while the "true" implementation of a fix to the problem makes its way through the multiple tubes of "process"....
I will go see if I can find anything on those two resources you mentioned. Thanks!!
| [reply] |
|
| [reply] |
|
|
|
|
|