I need to parse out the values from some data from select boxes.
Example: <option value="1">Apple</option><option value="2">Chicken</option>
Usage: If option = apple then get value.
Any suggestions?
I need to parse out the values from some data from select boxes.
Example: <option value="1">Apple</option><option value="2">Chicken</option>
Usage: If option = apple then get value.
Any suggestions?
DIHtmlParser? I'm not sure how "lightweight" it is, but Ralf's components always seemed to be well put together. He's also normally active and response on Embarcadero's Forums.
If it's a one-off and not too complex, you could probably split on symbols manually.
Another option would be the standard XML Parsers...that is if your document meets the XHTML standards.
Had searched for a while useful html-parsers for Delphi. Got lucky with htmlp and HTMLParserEx.
To parsing small html, use regular expressions.
© 2022 - 2024 — McMap. All rights reserved.