Re: [xml] About white spaces

On Fri, Oct 20, 2006 at 07:33:37AM +0200, Mike Hommey wrote:
On Thu, Oct 19, 2006 at 05:10:10PM -0400, Daniel Veillard <veillard redhat com> wrote:
On Thu, Oct 19, 2006 at 08:25:52PM +0100, chinlu chinawa wrote:

   some text, bla bla bla


I wonder if there's any function that allows me to
retrieve a normalized string, thus:

"some text, bla bla bla"

  in general 'blanks' are significant in XML. There is a function
xmlSchemaStrip() in xmlschemastypes.c but it's private. You would have
to copy it.

Isn't there a way to use the xpath function normalize-space() ?

  Probably but its interface would be XPath specific (XPath context, 
XPath args etc ...) and rather unpractical at a code level I guess


Red Hat Virtualization group
Daniel Veillard      | virtualization library
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]