Re: Grrh.. XML Schema Validation
Raf wrote: I've found XML::Schema which looks great but requires you to manually create a perl representation of your xml schema beforehand. Or you parse your XML schema document and transform it into the appropriate Perl representation. Non-trivial, but may be quicker than hand-coding Perl. A
Re: Grrh.. XML Schema Validation
Andy Wardley said: Raf wrote: I've found XML::Schema which looks great but requires you to manually create a perl representation of your xml schema beforehand. Or you parse your XML schema document and transform it into the appropriate Perl representation. Non-trivial, but may be quicker than hand-coding Perl. Was working on just that until I fell alseep upright last night. Trying to make it generic. Can send this to you when done. R.
Grrh.. XML Schema Validation
Hi, If anyone's awake, I need to find some package which will validate an xml document according to some provided xml schema. I don't want to write that bit myself and hoped that it existed. I've found XML::Schema which looks great but requires you to manually create a perl representation of your xml schema beforehand. From renewed glances at Parser, DOM and SAX, these don't appear to support it either... So, what's left? help? Cheers. R.
Re: Grrh.. XML Schema Validation
On Monday 23 June 2003 9:16 pm, Raf wrote: If anyone's awake, I need to find some package which will validate an xml document according to some provided xml schema. In a nutshell, you have to leave Perl and enter the world of Java. You oculd have a look at XML::Schematron, but that might not do what you want. The Perl XML community has been pretty hesitant about XML Schemas, largely because there are so many competing implementations, but also partly because of the complexity of schemas. However, there's definitely a whole in the Perl XML arsenal that needs filling if you/anyone is inclined. HTH Ian -- perl -e'sd012a012121012ad6a010b012a2b212131d0c212131010ad2b8121013121 31s\ss,$*=qr[2-9],$==length,s($*)$|x$1ge,$=*=3,yabc234,$= /=2,$|+=1,$=+=4,s($*)$|x$1gxes(\d{5})$*=$1,$-=0,$*=~s#(.)#$-*=2, $-=$-+$1#ge,chr($-+$=)gxes$$/sd(.)$\U$1gs^.print1'
Re: Grrh.. XML Schema Validation
On Mon, 23 Jun 2003, Ian Brayshaw wrote: On Monday 23 June 2003 9:16 pm, Raf wrote: If anyone's awake, I need to find some package which will validate an xml document according to some provided xml schema. In a nutshell, you have to leave Perl and enter the world of Java. You oculd have a look at XML::Schematron, but that might not do what you want. The Perl XML community has been pretty hesitant about XML Schemas, largely because there are so many competing implementations, but also partly because of the complexity of schemas. However, there's definitely a whole in the Perl XML arsenal that needs filling if you/anyone is inclined. [EMAIL PROTECTED] I'm in the processes, there of, as we speak. XML::Schema appears to be only a few footsteps away. As far as pseudo-simple validation goes, at least. There may be other holes in there; I'm only half an hour into trying to implement what I need though. Will check out XML::Schematron shortly and see if it will allow me to go to sleep. thx. R.