Re: ReplaceData() with "0" problem
Brought to you by:
bs_php,
nigelswinson
From: Nigel S. <nig...@us...> - 2002-01-17 00:39:12
|
> I think this problem is already known - but I could not find anything in the > latest messages: > When I try put the value "0" into a node it just gives me: > > <selectvalue/>0 > > instead of: > > <selectvalue>0</selectvalue> Fixed in CVS revision 1.51 (mid december). If this bug is a "showstopper" for you, then you might want to get the latest version from CVS. Thanks for the very complete bug report! :o) > By the way: > > 565 $xmlString = $this->exportAsXml($absoluteXPath); //Nothing modified > here > 566 $newline="\n"; //New > 567 if (!fwrite($hFile, $xmlHeader.$newline.$xmlString)) { //New > > makes the head of the written xml look nicer (new Line after <? ... ?> > part). That whole section of code needs review, as there seem to be about three different models that we should be considering when dealing with whitespace. Bin all, pretty print and preserve. I'm still trying to focus on "bugs" though, and a decent test harness, so this "review" might not be for a while yet.... Cheers, Nigel |