Re: Some suggestions for documentation
Brought to you by:
bs_php,
nigelswinson
From: Peter R. <php...@pe...> - 2002-05-17 17:07:54
|
On Friday 17 May 2002 11:34, Nigel Swinson wrote: > > hm, I can see that being able to update all the nodes in a set with one > > instruction is useful, but why getDataParts and not any of the other get > > functions? > > getData() calls getDataParts(), so getData() takes a xPathQuery. Have > updated the source... Which other "get" functions are missing this? I was using your list, Nigel. getDataParts was the only one of the retrieval functions on it. > This is probably a good point to mention that ANYONE can author > documentation for the class, had a feeling you might say that :-) > > On a related issue, could you add the ability to set the source encoding. > > Ummm I don't really know where to start in coding this feature, as I don't > really understand what's required. It does sound like a useful addition > though, as I know we have many european users. It's not an issue that is > directly affecting me, so I'm afraid it's unlikely that I will look into > this with any sort of priority. Don't suppose anyone else wants to? Sam? > Peter? see xml_parser_create add parameter to this statement (in, erm, importFromString), and then there would have to be some way of setting it to utf-8 or us-ascii (in case anyone actually uses that). Because you can pass the constructor the filename, you would have to pass this in as a param. Or of course not allow it here, but only with importFromString, and have a separate function to set before calling that. |