Peter Linss wrote: > You can either modify the _parseData method in your local copy or subclass the parser and override that method. Either way, replace the line: > tree = self.mParser.parse(StringReader(data), encoding = encoding) # XXX remove stringreader when upgrade to html5lib 1.0 > > with: > tree = self.mParser.parse(data, encoding = encoding) > > > The root section should indeed have a list of the top level sections and the anchors present at the root level. You can then traverse the section tree to find the sub-sections. Thanks Peter. With that fix the elements started coming through. I'll taste them tomorrow. --tak -- Takashi Hayakawa <t.hayakawa@cablelabs.com> CableLabsReceived on Friday, 7 June 2013 06:41:03 UTC
This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:34:08 UTC