Re: [xml] Preserving space when adding and deleting XML Nodes

On Wed, Feb 01, 2006 at 11:19:22AM -0800, Vedantam, Pavan wrote:


I followed up previous
and it seems the whitespace that is left when you delete a Node in the
xml file must be handled via code, my question is, how do you know that
it is an empty text node and then delete it.

  Precisely, you can't at the pure XML level. Only the application can
know if this is significant or not, and this is why all white spaces 
are preserved by the parser and toolkit by default.


Daniel Veillard      | Red Hat
veillard redhat com  | libxml GNOME XML XSLT toolkit | Rpmfind RPM search engine

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]