Re: [xml] Changes which might be required "Not converting names to lower-case in HTML parsing"



On Thu, Sep 29, 2005 at 01:22:04PM +0530, GPN wrote:
Daniel Veillard wrote:
I am assuming that pretty much all HTML related functionality
is contained within HTMLparser.c, and the core xml functions
need not change to accomodate this enhancement.


 This enhancement will have to be conditional to a parsing option.
Daniel, Can you expand on this?

  Sure:
    when you create an html parsing context like with htmlReadFile
you pass an options arguments which is a set of OR'ed htmlParserOption
There is already a few of them, another one would need to be added
to preserve case.
  Then the places where you want to make the changes should be tested
against the ctxt->options for that new option.
  This allows to plug your new behaviour without disturbing the default
one.

Daniel

-- 
Daniel Veillard      | Red Hat Desktop team http://redhat.com/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



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