This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit ezplatform.com

eZ Community » Blogs » eZ » XML schema and validation extension...

By

XML schema and validation extension for your ezxmltext attributes

Monday 03 September 2012 11:33:15 am

  • Currently 5 out of 5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

In the process of working on the XmlText FieldType of new new Public API, it has been decided to work with and provide an XML schema (XSD) that would validate the format used in the ezxmltext datatype.

Starting from a few examples, the command-line tool trang has been used to create a very alpha version of the schema. I rapidly wanted to test the validity of this schema with real life database, and this is how Damien Pobel and Jérôme Vieilledent helped me at first with respectively http://pwet.fr/ and http://www.metalfrance.net/. Thanks to them, the schema rapidly evolved and became quite stable and functional.

After some primarily tests, a much bigger site has been used to test the correctness of the schema: http://share.ez.no/, thanks to the help of our beloved community leader: Nicolas Pastorino!

After all this alpha testing phase, I came to the conclusion that the whole community might benefit from such a tool, I therefor decided to create it as an extension which is now available at: https://github.com/patrickallaert/schemavalidator and contains an option (--live) to always validate against the very latest available ezxmltext schema.

I would appreciate receiving feedback from the eZ community on this new extension as well as on the schema itself :-)

Proudly Developed with from