in reply to Need help in xml well formedness checker.

The canonical way to do that is to use what you say is unattainable to you. Hit it with XML::Parser and see if it chokes.

Is this job not important enough to get any institutional support?

Any proper XML parser should detect basic XML errors and refuse to proceed. You should be able to trap that error and report. Your problem seems to be obtaining one your bosses will let you have.

After Compline,
Zaxo

  • Comment on Re: Need help in xml well formedness checker.

Replies are listed 'Best First'.
Re^2: Need help in xml well formedness checker.
by jayakumark (Acolyte) on Feb 21, 2007 at 08:23 UTC
    Thanks for the reply Zaxo, Actually i dont have permission to install expat library needed by XML::Parser and so as of now i have no other choice other than writing stand alone checker. Parser functionality is not needed. Just well formedness checker.

      There are PurePerl versions of some XML parsers. You need a parser to check well-formedness even if you don't retain any content.

      It sounds like you need to find a way to cheat.

      After Compline,
      Zaxo

      XML is not trivial to parse so your options are do a lot of work yourself or get someone else to do a lot of work for you. People have actually done that work and provide it in a variety of modules.

      If your boss won't allow you to use code in the form of existing modules why should he allow you to use equivelent code obtained from somewhere else?

      Sure, something that validates a trivial subset of XML could be written in reasonable time. But how small a subset is really useful? What can be done with simple code is very trivial indeed!


      DWIM is Perl's answer to Gödel
      I agree with Zaxo---you need to find a way to cheat. The easiest way that I can think of to "cheat" is to use an online "well-formedness" checker like RUWF.