Re: getData help and CVS module names?
Brought to you by:
bs_php,
nigelswinson
From: Matt M. <car...@do...> - 2001-12-20 01:21:50
|
On Wed, Dec 19, 2001 at 11:06:22AM +0000, Paul / USH wrote: > I have some xml data like the following: (where you see [ and ] these > are really < and > so they don't get confused with html tags :) > > [root] > [en] > some text with [b] bold [b] inside it > [/en] > [root] > > What I want it to pull out ALL the contents of the [en] node > including all the bold tags etc. getData only gets : some text with > inside it (looses the stuff in the bold tags) getDataParts returns an > array with > [0]=>some text with > [1]=> inside it > substringData returns the same as getData > > How can I get all the tags properly within the [en] node. > I've tried doing a exportAsHTML on the [en] node and substring the > [en] and [/en] but that is a horrible way to do it. If you intend [b] bold [/b] to be an HTML tag, rather than an XML tag, you'll need to store it as <b> bold </b> As it is now, the XML parser will treat [b] bold [/b] as an XML tag, which is why it doesn't come out when you fetch [en]'s contents. > Also, I've seen talk of the ampersand problem being fixed in the > exportAsXML - so I'm trying to get the latest version from anonymous > CVS - but don't know what the module names are to get. Trying to list > the module names with -c results in nothing? You can browse the CVS repository with ViewCVS at http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/phpxpath/ HTH, Matt |