[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
Re: [xml-dev] why whitespace counts as a node?
- From: Dimitre Novatchev <dnovatchev@gmail.com>
- To: Thufir Hawat <hawat.thufir@gmail.com>, xml-dev@lists.xml.org
- Date: Sun, 14 Nov 2010 10:20:51 -0800
The next thing to ask is: Why do blanks count as characters?
Obviouslywecandoperfectlywellwithoutthem.
--
Cheers,
Dimitre Novatchev
---------------------------------------
Truly great madness cannot be achieved without significant intelligence.
---------------------------------------
To invent, you need a good imagination and a pile of junk
-------------------------------------
Never fight an inanimate object
-------------------------------------
You've achieved success in your field when you don't know whether what
you're doing is work or play
On Sat, Nov 13, 2010 at 2:29 AM, Thufir Hawat <hawat.thufir@gmail.com> wrote:
> When parsed, why is whitespace counted as a node? It might just be my
> Java bias, but I would greatly prefer the idea of a Tree mapping 1-1 to
> XML. However, with whitespace counting, then the resulting XML text file
> all mushed together.
>
> At least that's my understanding. When parsing XML the parser must
> determine whether or not interpret whitespace as a node or not, so that
> different parsers will give different results. Shouldn't the goal be for
> their to be a single correct representation for a given document? So
> long as whitespace counts, then it depends upon the parser to either
> include or not include the whitespace.
>
> Is the choice to have whitespace count perceived of as design flaw, or
> does it server a purpose?
>
>
> -Thufir
>
>
> _______________________________________________________________________
>
> XML-DEV is a publicly archived, unmoderated list hosted by OASIS
> to support XML implementation and development. To minimize
> spam in the archives, you must subscribe before posting.
>
> [Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
> Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
> subscribe: xml-dev-subscribe@lists.xml.org
> List archive: http://lists.xml.org/archives/xml-dev/
> List Guidelines: http://www.oasis-open.org/maillists/guidelines.php
>
>
[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]