Convert HTML to XML - < file_html2xml >() ... [Pro]
File Convert HTML to XML |
||||||||||||||||
This command converts HTML file to XML file. HTML files are not always XML syntax compliant. This command makes an HTML file XML compliant so that XML maco commands can be used to parse the file content. |
||||||||||||||||
|
||||||||||||||||
|
||||||||||||||||
Example (Macro Steps):
|
||||||||||||||||
|
Example (Plain Text):
<#> This example shows how to use HTML to XML command.
<#>
<cmds>
<download>("macrotoolworks.html","http://www.macrotoolworks.com","","")
<file_html2xml>("macrotoolworks.html","macrotoolworks.xml")
<xml_file_open>("macrotoolworks.xml",vXmlDoc,vXmlDocRoot)
<xml_element_navigate>(%vXmlDoc%,"root\html\body\div\div\div\div\h1\a",vTestElem)
<xml_attribute_get>(%vTestElem%,title,vHtmlPageTitle)
<msg>(-100,-100,"%vHtmlPageTitle%","",1,0,0,0)