xom-interest AT lists.ibiblio.org
Subject: XOM API for Processing XML with Java
List archive
Re: [XOM-interest] Ignoring white spaces and line breaks betweenelements
- From: "Michael Kay" <mike AT saxonica.com>
- To: "'ozkan ozcan'" <ozcozk AT gmail.com>, <XOM-interest AT lists.ibiblio.org>
- Subject: Re: [XOM-interest] Ignoring white spaces and line breaks betweenelements
- Date: Thu, 22 Dec 2005 10:48:04 -0000
>
> when i try to extract all Text nodes with XPath (//text()), I get line
> breaks also as Text nodes, which is not expected.
It might not be what you expect, but it is correct behaviour according to
the XPath specification.
> Is there an easy way of making Builder ignore line breaks.
You can insert a simple SAX filter that removes whitespace-only text nodes.
Michael Kay
http://www.saxonica.com/
-
[XOM-interest] Ignoring white spaces and line breaks between elements,
ozkan ozcan, 12/22/2005
- <Possible follow-up(s)>
-
[XOM-interest] Ignoring white spaces and line breaks between elements,
ozkan ozcan, 12/22/2005
- Re: [XOM-interest] Ignoring white spaces and line breaks betweenelements, Michael Kay, 12/22/2005
- Re: [XOM-interest] Ignoring white spaces and line breaks between elements, Elliotte Harold, 12/22/2005
Archive powered by MHonArc 2.6.24.