fpc/packages/fcl-xml/examples/testhtml.pp
2017-12-29 13:25:49 +00:00

20 lines
351 B
ObjectPascal

program testhtml;
{
simple demo to demonstrate rewriting a HTML file
}
uses sysutils, dom_html,sax_html, XMLWrite;
Var
H : THTMLDocument;
begin
if ParamCount<>2 then
begin
Writeln('Usage: ',ExtractFileName(Paramstr(0)),' inputfile outputfile');
Halt(1);
end;
ReadHTMLFile(H,ParamStr(1));
WriteXMLFile(H,Paramstr(2));
end.