Re: Dynamic tokens while parsing, again :(



it seems I've done it. the idea was not to parse the complete tag with
optional at once. instead, i parse for the start tags and then for the
end tags. on each end tag i try to find it's matching start tag - and
it seems it works;)

.



Relevant Pages

  • Re: Manipulating existing web pages from Smalltalk
    ... which most web designers don't. ... dangling end tag and raises an error. ... less strict parse, and seems to get rid of most dangling tag problems. ...
    (comp.lang.smalltalk)
  • Re: web in windows ?
    ... add a extra "non-html" tag before and after the part of html you need (if ... > I basically want to parse a particular page content in an application. ... the trouble is the page has a script to be executed onLoad and i ... > The webbrowser control can link to the url i want and it runs the script ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Writing parser right way in c#
    ... I need to parse certain text from a paragraph. ... Xml file will also have a way to say what should be the pervious tag ... You'll always end up with code that's tied to the grammar of your ... streams of terminals into non-terminals and execute actions ...
    (microsoft.public.dotnet.general)
  • Re: Regex greedy/lazy problem
    ... I suspected that you might simply be trying to parse each bit that comes ... you have a string ending with the end tag. ... second string buffer and putting each chunk received into it. ...
    (microsoft.public.dotnet.general)
  • Re: HTMLParser.HTMLParseError: EOF in middle of construct
    ... is valid HTML or not? ... if so it's a bug on HTMLParser ... may appear in an element's start tag. ... And I have to parse many different sites, I just want extract the links, so ...
    (comp.lang.python)