Re: [xml] Feature request

Date view Thread view Subject view Author view

From: Daniel Veillard (Daniel.Veillard@w3.org)
Date: Tue Dec 05 2000 - 21:36:05 EST


On Wed, Nov 29, 2000 at 04:05:10PM +0100, Manuel Guesdon wrote:
>
> Hello,
>
> We have two problems with the HTML parser:
> o when <html><body> is missing in the file/buffer to parse (because it's a "sub-component"), libxml add it (it is
> done in htmlCheckImplied function).
> o we use a "proprietary" tag which is not recognized so a message is printed.
>
> Is it possible to add a parameter/option, so libxml doesn't add the <html><body> tags when they are missing ?

  yes, I added the following call, just call it at init time with val = 0;
to desactivate the auto-insertion of omitted tags.

  int htmlHandleOmittedElem(int val);
> Is it possible to add a function so "proprietary tags" could be added in HTMLparser knwon tags ?

  Hum, I dislike that. I would prefer you establish you own error handler
and catch this specific error. I prefer that libxml reports errors like
this, and that you work around it, unless you can point me to a public
request to add this extension in some standard body (W3C/IETF/...).
  Sorry the proper way is to use XHTML and XML namespaces to extend the
original vocabulary ...

Daniel

-- 
Daniel.Veillard@w3.org | W3C, INRIA Rhone-Alpes  | Today's Bookmarks :
Tel : +33 476 615 257  | 655, avenue de l'Europe | Linux XML libxml WWW
Fax : +33 476 615 207  | 38330 Montbonnot FRANCE | Gnome rpm2html rpmfind
 http://www.w3.org/People/all#veillard%40w3.org  | RPM badminton Kaffe
----
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 : Wed Dec 06 2000 - 09:43:47 EST