Re: [xml] About white spaces
- From: Daniel Veillard <veillard redhat com>
- To: chinlu chinawa <chinluchinawa yahoo co uk>, xml gnome org
- Subject: Re: [xml] About white spaces
- Date: Fri, 20 Oct 2006 03:59:48 -0400
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:
<node>
some text, bla bla bla
</node>
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
Daniel
--
Red Hat Virtualization group http://redhat.com/virtualization/
Daniel Veillard | virtualization library http://libvirt.org/
veillard redhat com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]