Re: [xml] Possible loss of TEXT node with htmlParseDoc



Thanks for your help, but how to avoid this annoying <p> element ? and
why does it appear here ?


  Well I can't reproduce this with the current version:

orchis:~/XML -> cat tst.html
Hello <a href=\"world\">world</a> !
orchis:~/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=Hello
        ELEMENT a
          ATTRIBUTE href
            TEXT
              content=\"world\"
          TEXT
            content=world
        TEXT
          content= !
orchis:~/XML ->

Daniel

--
Daniel Veillard      | Red Hat Network http://redhat.com/products/network/
veillard redhat com  | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/

-- 
---------------------------------------
Frédéric Gicquel

rnr easybusiness fr
---------------------------------------




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]