Re: XML_Functions

From: Date: Wed, 31 Mar 2004 22:15:00 +0000
Subject: Re: XML_Functions
References: 1 2  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-26907@lists.php.net to get a copy of this message
Hi,
Can you explain me how to do this example with your package please ? $x->div(array ('class'=>'myDivClass'), $x->h1("Hello"). $x->a(array('href'=>$url), $x->span("World") ) )
I'd need to do some small adjustments, but it would be possible to do something like: $div = new stdClass; $div->attribs = array( 'class' => 'foo' ); $div->a = new stdClass; $div->a->attribs = array( 'href' => '##' ); And then create XML from the structure. Furthermore you should take a look at PHP5's simpleXML. Stephan

« previous php.pear.dev (#26907) next »