|
Posted by 1234marlon on June 25, 2007, 6:06 pm
Please log in for more thread options
Can someone tell me if a reliable production PERL package was ever
created to handle either W3C DTD or Schema standards? I realize
libxml2 based packages are very good, but I am not willing to tackle
the maintenance required for compiled libxml2 program in our
production environment.
It is the year 2007 for heavens sake; did anyone ever create something
other than poorly tested, partial W3C standards, barely usable module
to handle DTD or Schemas? I have been search CPAN and tested modules
franticly for months without finding anything that is good (other than
lidxml2 stuff looks good).
I am using XML::SAX::ParserFactory (PurePerl) as my parser and
original thought I would easily find a FILTER to handle DTD or Schema
validation; instead after months of reseach, I find myself pleading
for help in the newsgroup. Perl is really treating me bad for this
XML project; I did a similar project with VB6 and it was a breeze.
Anyway, right now I am trying to test XML-DTD-0.06. However the
documentation is gibberish, it keeps referring to $rt without
explaining what $rt is...omg!!! If someone has a working example of
using XML-DTD-0.06, I would love to see it.
Thank you in advance for any guidance you can give me!!!!!!
|
|
Posted by Gunnar Hjalmarsson on June 25, 2007, 7:02 pm
Please log in for more thread options
1234marlon@gmail.com wrote:
> did anyone ever create something
> other than poorly tested, partial W3C standards, barely usable module
> to handle DTD or Schemas? I have been search CPAN and tested modules
> franticly for months without finding anything that is good (other than
> lidxml2 stuff looks good).
Well, if that's true, please feel free to contribute with bug fixes and
improvements.
> Anyway, right now I am trying to test XML-DTD-0.06. However the
> documentation is gibberish, it keeps referring to $rt without
> explaining what $rt is...omg!!!
I don't understand what you are talking about.
--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
|
|
Posted by 1234marlon on June 25, 2007, 8:14 pm
Please log in for more thread options
> 1234mar...@gmail.com wrote:
> Well, if that's true, please feel free to contribute with bug fixes and
> improvements.
I do not have a problem contributing. However, I would rather not
spend countless hours reinventing/fixing the wheel, which is an
unplanned task for this project. I just find it hard to believe there
are not solid modules for validating XML other than LIBXML. I am
seriously hoping someone says something like "try
XML::FOO::FILTER:DTD; it implements nearly all W3C standards and works
great".
> > Anyway, right now I am trying to test XML-DTD-0.06. However the
> > documentation is gibberish, it keeps referring to $rt without
> > explaining what $rt is...omg!!!
>
> I don't understand what you are talking about.
I am talking about XML::DTD::Parser and the POD located
http://search.cpan.org/~wohl/XML-DTD-0.06/lib/XML/DTD/Parser.pm. The
information does not make sense and I was wondering if anyone has a
working example. Currently, I do not know where the parsed output
resides, which I need for passing to SAX processing. Sooner or later I
will figure out what the author is trying to say; I am just hoping it
can be sooner and that it is good stuff, because I am way behind
schedule.
Thank you for your assistance.
|
|
Posted by mirod on June 26, 2007, 4:01 am
Please log in for more thread options
1234marlon@gmail.com wrote:
> Can someone tell me if a reliable production PERL package was ever
> created to handle either W3C DTD or Schema standards? I realize
> libxml2 based packages are very good, but I am not willing to tackle
> the maintenance required for compiled libxml2 program in our
> production environment.
It looks like yur choice is between maintening the dependencies needed
by working Perl modules that use external library, or writing the module
yourself.
If you don't want to maintain a libxml2 environment (why? I don't think
it's that hard to compile), you can have a look at XML::Xerces
(http://search.cpan.org/dist/XML-Xerces/ ) which depends on Xerces (I
have never used it though). I don't think there is any other sane choice.
It appears that no one in the Perl community has had the will, time and
energy to write a complete validating XML parser, prefering instead to
rely on external resources. Whether that's good or bad is debatable. My
take would be that PR-wise it's pretty bad, but practically it makes sense.
--
mirod
|
|
Posted by MM on June 26, 2007, 8:09 pm
Please log in for more thread options
> 1234mar...@gmail.com wrote:
> It looks like yur choice is between maintening the dependencies needed
> by working Perl modules that use external library, or writing the module
> yourself.
Maybe. However, I will probably just code the validation/defaults
right into the program (the old fashion way).
For this project, I decided to use XML as the format for user
configuration data because XML is awesome.
> If you don't want to maintain a libxml2 environment (why? I don't think
> it's that hard to compile), you can have a look at XML::Xerces
> (http://search.cpan.org/dist/XML-Xerces/) which depends on Xerces (I
> have never used it though). I don't think there is any other sane choice.
It is hard to maintain in a production Unix environment, where there
is not a licenced compiler, different flavors of both Unix and Perl, I
do not have root access, politics, and the list does go on.... It is
easier to just say "a production environment". However, I still may
battle to use a libxml2 based package someday, but it is not worth my
effort for this project.
> It appears that no one in the Perl community has had the will, time and
> energy to write a complete validating XML parser, prefering instead to
> rely on external resources. Whether that's good or bad is debatable. My
> take would be that PR-wise it's pretty bad, but practically it makes sense.
>
> --
> mirod
I am still testing and hoping there is something good out there (other
than the mighty libxml2 stuff). Are you trying to scare me?...haha
-Long Live Perl!!!!-
|
| Similar Threads | Posted | | ANNOUNCE: Initial release of WSF/Perl (Perl bindings for a WS-* framework) | October 4, 2007, 1:37 am |
| PLJava - Perl embeded into Java (calling Perl from Java) - 1sr release - call for tests and review, please. | July 13, 2004, 4:06 am |
| Perl MakeMaker - how to force Perl linking with the static C library (libcrt.lib) instead of dynamic C library (msvcrt.lib) | April 17, 2007, 5:22 pm |
| MFC with Perl | July 19, 2005, 9:38 pm |
| Net::SSH::Perl | October 23, 2005, 11:16 pm |
| perl with ASP | November 9, 2005, 10:19 am |
| Perl | December 30, 2005, 9:28 pm |
| perl DBI help | March 1, 2006, 10:25 am |
| Help with Net::SSH::Perl | August 25, 2006, 2:26 pm |
| perl -> VB .NET | September 2, 2006, 11:17 pm |
|