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



On Jun 26, 3:01 am, mirod <m...@xxxxxxxxxxx> wrote:
1234mar...@xxxxxxxxx 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!!!!-

.