Parsing part of XML document type
Posted on 2003-04-01
As far as I know, HTML file is a XML document, right?
I need to know how to parse part of HTML file, for example I have a string like this :
s := '<TR><TH>Header1</TH><TH>Header2</TH><TH>Header3</TH></TR>';
I want to retrieve from s for each component .. <TR> ... <TH> ... Header1 ...
My goal is to reproduce s to be like this (for example) :
s := '<TR bgcolor="#CCFFFF"><TH><Font size="1">Header1</Font></TH>...';
Anyone can give me an example how to achieve this?
I tried to use TXMLDocument component for this, but I really dont understand how to do it.
Thanks for any help.