Deploy in 115+ regions with the modern database for every enterprise.
MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
8 Monitoring Tools in One APM. Install in 5 Minutes.
Errors, performance, logs, uptime, hosts, anomalies, dashboards, and check-ins. One interface.
AppSignal works out of the box for Ruby, Elixir, Node.js, Python, and more. 30-day free trial, no credit card required.
BAScript is a simple scripting engine written in Object Pascal you can use to add scripting to your Delphi, Lazarus or Free Pascal applications ("host program") to extend their functionality without the need of recompiling them.
The virtual machine defines its own language, called the BAScript language. It is a low-level language, somewhat similar to the Assembler language, which is not intended to be easy to program but easy to execute.
...This tested with version Delphi XE5,6
Usage
Add in Uses parser.pas;
begin
HtmlTxt:= ''; //here your html
NodeList:= TNodeList.Create;
ValueList:= TStringList.Create;
DomTree:= TDomTree.Create;
DomTreeNode:= DomTree.RootNode;
If DomTreeNode.RunParse(HtmlTxt) then
begin
{your code
example:
DomTreeNode.FindXPath('//*[@id="TopBox"]/div[1]/div[@class="draw default"]'),NodeList,ValueList)}
end;
end;
Xpath support:
attributes - //*[@id="TopBox"]/div/@class
comment - //*[@id="TopBox"]/div/comment()[3]
text - //*[@id="TopBox"]/div/text()[2]
previous level - /../div[@class="draw default"]/img[2]/@alt
partial coincidence by search in value of attribute:
/div[@class="draw] returned nodes [[div class="draw default"],[div class="draw"], [div class="draw any"]..]
...