Published 2004-07-25 11:02:53

Seeing mention of XML_XUL, the PEAR package on a few blogs and in PHPMag, I thought it might be worth mentioning that I did evaluate using it for a project a while back. At that point, the code was not mature. However, It was already clear that the concept behind it is pretty flawed.

XML_XUL, offers a couple ways of working
a) Read a XUL file, convert it into Big tree of XUL Elements, Manipulate it, then render it.
b) Start from scratch, building the whole tree manually PHP, and render

Both of these have huge memory issues, a) has performance issues of often needless requiring the parsing of XML. b) has a fatal flaw in that it totally obliterates the potential to wysiwyg edit the application.

In the end concluded that using the Flexy engine, was far more efficient, as we could prototype the look and feel (and easily make major changes late in the design process) without having to mess around with the code to much. (It's also mindblowingly faster).

It did not however go without having to make a few additions to Flexy.
a) allowing "<html:input" with Flexy's Element parser (so we could do file upload in XUL)
b) using id="this_is_a_tag" and being able to compiler and render parts of a file using the id tags: $flexy->compile("template.xul#this_is_a_tag);
c) Quite a few XML parsing additions to the Tokenizer (<?xml-stylesheet....)

While XML_XUL remains cute (and may even provide a reasonable way to add XUL elements to a Flexy Template) , I do ponder if just the ability to use the PHP DOM extension along with Flexy may be far more powerful, and doesnt involve learning a whole load of API's. - Time which is far better spent learning Javascript/W3C/PHP DOM (which are all pretty much identical).

Mentioned By: : php xul ( referals) : xul file upload ( referals) : april ( referals) : xul upload ( referals) : december ( referals) : xul php ( referals) : xul upload file ( referals) : XUL and PHP ( referals) : xul clear tree ( referals) : xul fileupload ( referals) : Tree XUL ( referals) : xml_xul ( referals) : upload XUL ( referals) : file upload xul ( referals) : file upload with xul ( referals) : clear tree xul ( referals) : compiler xul ( referals) : File Upload in XUL ( referals) : php xul parser ( referals) : xul javascript code for file upload ( referals)

Add Your Comment

Follow us on