Re: Help with validating XML (DTD or Schema) with PERL
- From: MM <1234marlon@xxxxxxxxx>
- Date: Thu, 28 Jun 2007 23:52:00 -0000
On Jun 28, 8:53 am, Keith <keith.wing...@xxxxxxxxxxxxxxxxx> wrote:
I've said as much before on this group but, .....
Amongst the many things I've happily & successfully done with Perl &
CPAN modules in the last 15 years
or so, parsing XML is not one. Pickup "Java & XML" by O'Reilly, and
with little background in the
language you'll probably be able to solve your problem in hours.
I actually tried using Java for XML processing last year and found the
same situation that I am having with Perl looking for XML/XSLT/Schema/
DTD/XPath support (for a production environment). I thought about
buying a Java-XML book, but did not know which one to get or if it
would help - Java support for stable XML processing looked horrible to
me. However, thanks for the "Java & XML" by O'Reilly tip, I will
definitely look at it!!!!
Perl SHOULD be good at this sort of thing (and as others haveyes, yes, yes... libxml2 based modules is the Perl solution that
suggested, the Perl community would love some
help on this, I'm sure) but issues w/ recursion and lack of an
adequate threading model seem to put it
at a disadvantage vis a vis Java, in my opinion, for tasks like this,
while one of Perl's great
strengths over Java (built-in regular expression matching) are
somewhat wasted on data as structured as XML.
everyone is using. I am not sure about this, but it appears that all
other modules for core XML processing on CPAN were practically
abandoned, maybe due to the superior libxml2 based modules.
If you don't want to re-invent Perl wheels here, and can't or don'tI wanted to use Java for this project, but was afraid about XML module
want to use Java, why not go back
to VB (if you're running on Windows only)?
support and development time. I am unable to write Java code as fast
as I can write Perl code, which is funny because this validation thing
is taking me forever to resolve. I am doing this for Unix, otherwise,
yes, VB (6/.net).
I've had to write my own lexers & parsers for even the lightest of XML
tasks in Perl. As good as it
is for other things, XML seems to be an Achilles heel.
Keith
I need this done by next week, so I will probably write my own
(garbage) code to handle XML validation. As for now, I am still
looking around CPAN and dissecting weird modules like
XML::DTD::Parser.
Thanks for your feedback!
.
- References:
- Prev by Date: Re: GD::Graph with Image Map implementation question
- Next by Date: Re: bignum incompatible with looks_like_number() ???
- Previous by thread: Re: Help with validating XML (DTD or Schema) with PERL
- Next by thread: XPath to Line Number?
- Index(es):
Relevant Pages
|