Re: Help with validating XML (DTD or Schema) with PERL



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 have
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.

yes, yes, yes... libxml2 based modules is the Perl solution that
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't
want to use Java, why not go back
to VB (if you're running on Windows only)?

I wanted to use Java for this project, but was afraid about XML module
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!

.



Relevant Pages

  • need help for this project......
    ... I am new to XML and PERL and I have a few questions the answers to ... user and makes an XML file from the fetched data. ... will scrape data from the T-Mobile web page to an XML file. ...
    (comp.lang.perl.misc)
  • Re: Help with validating XML (DTD or Schema) with PERL
    ... to handle DTD or Schemas? ... Amongst the many things I've happily & successfully done with Perl & ... parsing XML is not one. ... original thought I would easily find a FILTER to handle DTD or Schema ...
    (comp.lang.perl.modules)
  • Re: :Oracle - Any advance on inserting CLOB to XMLTYPE?
    ... perl xmltypeinsert-testcase.pl ORCL scott tiger 63 ... DBI v1.47 ... >> with them (aside from convert the text into XML). ... >> insert on the table with the XMLTYPE in it. ...
    (perl.dbi.users)
  • RE: help me in reading the xml file
    ... Is there a way to parse and get the info from xml withou using ... There are many XML parsing modules in Perl; ... really need to learn how to install modules. ...
    (perl.beginners)
  • Re: Converting XML to Perl structures FAST
    ... I need to convert XML documents to Perl structures, very efficiently, ... (god of porn) ...
    (comp.lang.perl.misc)