Re: [xml] Bug in parser (HTML)

Date view Thread view Subject view Author view

From: Tenihin Andrey (algorithm@peterlink.ru)
Date: Mon Oct 30 2000 - 12:34:56 EST


>
> SAX has no sibling context informations...
> If you use the DOM build those informations are available,
>

How to make all whitespaces significant while parsing?

Simple example:
<p> File <b>text</b> <em>text</em></p>

gives:

HTML DOCUMENT
standalone=true
  ELEMENT html
    ELEMENT body
      ELEMENT p
        TEXT
        content= File
        ELEMENT b
          TEXT
          content=text
        ELEMENT em
          TEXT
          content=text

But I want to have TEXT node between `b' and `em'.

I have tried to do through SAX ignorableWhitespace,
but need `ctxt' for processing.

Andrey.

----
Message from the list xml@rpmfind.net
Archived at : http://xmlsoft.org/messages/
to unsubscribe: echo "unsubscribe xml" | mail  majordomo@rpmfind.net


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Mon Oct 30 2000 - 11:43:42 EST