Re: source encoding (was: Some suggestions for documentation)
Brought to you by:
bs_php,
nigelswinson
From: Nigel S. <nig...@us...> - 2002-06-04 22:58:56
|
> However, whilst investigating this, I came across another phpxpath > feature that I wasn't aware of before. Why does the handling of the > xml PI and other header info such as dtd differ between exportAsXml > and exportToFile? As default, exportAsXml keeps it, whereas > exportToFile drops it. Is not the main difference between these 2 > functions that exportToFile, er, well, writes the xml to a file? Well you could pass in the third argument as NULL and that would prevent it from overwriting the PI. I'm not sure why it's the way it is. Perhaps Sam has a comment? If not then perhaps we should only add the "default" PI if none is present. Nigel |