Re: XML_Functions
| From: | Moritz Heidkamp | Date: | Thu, 01 Apr 2004 00:11:29 +0000 |
| Subject: | Re: XML_Functions | ||
| References: | 1 2 3 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-26910@lists.php.net to get a copy of this message | ||
vorwärta und nie vergessen
worin unsre stärke besteht
beim hungern und beim essen
vorwärts und nie vergessen
die solidarität
sorry I'm just too trunk to give you annn answer ... but remeber ma messagee
Stephan Schmidt wrote:
Hi,Can you explain me how to do this example with your package please ? $x->div(array ('class'=>'myDivClass'),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$x->h1("Hello"). $x->a(array('href'=>$url), $x->span("World") ))