Re: XML_Functions

From: Date: Thu, 01 Apr 2004 07:24:04 +0000
Subject: Re: XML_Functions
References: 1 2 3 4  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-26915@lists.php.net to get a copy of this message
Le jeu 01/04/2004 à 02:11, Moritz Heidkamp a écrit : > vorwärta und nie vergessen > worin unsre stärke besteht > beim hungern und beim essen > vorwärts und nie vergessen > die solidarität Can you translate your text in english please ? Thanks > > > > > > 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'), > >> $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 (#26915) next »