Hello,
on 12/02/2006 10:43 PM dobes_vandermeer said the following:
> I've been working on an XSD schema for the configuration, so that my
> xml editor can do auto-completion and friendly structured editing/
> validation. I've had to modify my copy of xml_parser.php to ignore
> attributes since it rejects the declaration saying "Simplified XML
> can not have attributes in tags".
>
> Hopefully this idea of te XSD schema is something people will like
> and you'll maintain it, or at least make it allowable to use the
> schema in your xml.
Sorry for the delay. I have been at PHP Conference Brasil 2006 and I am
still catching up on pending e-mail.
I need to make time to look at this closer, but you do not need to hack
the XML parser class, it the simplified XML option is controlled by the
MetaL compiler.
I was not aware that when you specify the schema with a XML file for
MetaL engine, the schema als gets parsed. I need to look closer at this
to avoid thes problems.
Anyway, I use Kate to edit my project files. I am not sure if it
supports XML schema based validation or auto-completion . Which editor
do you use that makes use of the XML schema?
As for the schema file, it may be useful to distribute with Metastorage,
if you would not mind. Of course you would be credited for your
contribution.
--
Regards,
Manuel Lemos
Metastorage - Data object relational mapping layer generator
http://www.metastorage.net/
PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/