Re: DOM Implementation for PHP3

From: Date: Sun, 18 Apr 1999 21:51:02 +0000
Subject: Re: DOM Implementation for PHP3
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-5123@lists.php.net to get a copy of this message
Hello Stig, On 16-Apr-99 08:46:45, you wrote: >> On the client side, the DOM is really useful as a standard interface for >> DHTML, but on the server side, it seems to be less useful. I may be missing >> something though, because the idea is intriguing. Maybe it would be useful >> as a higher level API to the XML functions. >Something like this has been discussed before, only not in the context >of a DOM implementation. Like Thies said, this could make it much >easier to work with XML documents and it would make the existing XML >extension obsolete. The existing XML support in PHP is very useful for things that are completely unrelated with Web pages, like for example defining structure data formats. For instance, I have developed a XML based format for defining RDBMS independent database schemas. I wrote a PHP based parser with the current XML support to build the schema in memory and most importantly to validate the data in its context. Then I use such parsed data structure to create or update a database using RDBMS database independant classes. Without expat based support in PHP, I would hardly be able to do this. So, I don't think the current PHP XML support is that obsolete. >Apache's mod_dav (http://dav.lyra.org/) has functions to build a tree >from XML data. It would be cool if we could just use that code and map >the structures to PHP. Or we could implement DOM, but that's a lot more >work. :-) Right, but in my case I still need to keep the column and line numbers of each parsed XML tag to let my parser class tell the user where any context errors may be. I don't know, but I am afraid that mod_dav's code would dump tag and data location information. Regards, Manuel Lemos E-mail: mlemos@acm.org URL: http://www.e-na.net/the_author.html PGP key: finger://mlemos@zeus.ci.ua.pt -- -- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#5123) next »