Re: [xml] Bug in parser (HTML)

Date view Thread view Subject view Author view

From: Daniel Veillard (Daniel.Veillard@w3.org)
Date: Mon Oct 30 2000 - 11:50:38 EST


On Mon, Oct 30, 2000 at 08:34:56PM +0300, Tenihin Andrey wrote:
>
>
> >
> > SAX has no sibling context informations...
> > If you use the DOM build those informations are available,
> >
>
> How to make all whitespaces significant while parsing?

  not possible in HTML on a general basis.

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

  Apply the patch I sent in this thread or wait for the next release !

~/XML -> ./testHTML --debug tst.html
HTML DOCUMENT
URL=tst.html
standalone=true
  DTD(HTML), PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN, SYSTEM http://www.w3.org/TR/REC-html40/loose.dtd
  ELEMENT html
    ELEMENT body
      ELEMENT p
        TEXT
          content= File
        ELEMENT b
          TEXT
            content=text
        TEXT
          content=
        ELEMENT em
          TEXT
            content=text

  Alternatively use CVS (instructions on the home page).

Daniel

-- 
Daniel.Veillard@w3.org | W3C, INRIA Rhone-Alpes  | libxml Gnome XML toolkit
Tel : +33 476 615 257  | 655, avenue de l'Europe | http://xmlsoft.org/
Fax : +33 476 615 207  | 38330 Montbonnot FRANCE | Rpmfind search site
 http://www.w3.org/People/all#veillard%40w3.org  | http://rpmfind.net/
----
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 - 12:43:34 EST