just one remark - the entity you are describing is called XmlPath somewhere in the big real world :-))
you should have at least mentioned it.
just one remark - the entity you describe is called XmlPath somewhere in the big real world :-)
you should have at least mentioned it.
Did you read the last paragraph?
Do you mean to parse the HTML generated by the Report library? It is possible, but this HTML is generated by MQL, so it is not clear, why parse HTML, if the Report library can immediately save CSV on request?
Do you mean to parse HTML generated by the Report library? Maybe, but this HTML is generated by MQL, so why parse HTML when the Report library can save CSV on request?
The HTML report is passed to another person.
HTML report is passed to another person.
Well, that's what I mean: if for another person, you can generate not only html, but also csv ;-).
Can you give some ready example?
Well, that's what I mean: if it's for another person, you can generate not only html, but also csv ;-).
The person who makes an html report is not really interested in csv. Moreover, an impersonal version of the html report is often used. For example, such a report can be posted on a forum. Accordingly, someone else from the forum takes this report and parses it through your extractor.
Can you give some ready example?
Here in the trailer.
REGEXP ????
CSS selectors are much better suited for HTML parsing, taking into account the element hierarchy.
Excuse me, is this html css selector not available now?
I downloaded the source code, but found that the writing method cannot be compiled.
New article Extracting structured data from HTML pages using CSS selectors has been published:
The article provides a description of a universal method for analyzing and converting data from HTML documents based on CSS selectors. Trading reports, tester reports, your favorite economic calendars, public signals, account monitoring and additional online quote sources will become available straight from MQL.
Traders often deal with standard HTML files, such as testing reports and trading reports generated by MetaTrader. Such files can be received from other traders or downloaded from the Internet. The good idea is to visualize the data on a chart for further analysis. For this purpose data from HTML should be converted to a tabular view (to the CSV format in a simple case).
CSS selector in this utility application can automate this process.
Let us have a look inside the HTML files. Below is the appearance and part of HTML code of the MetaTrader 5 trading report (the ReportHistory.html file is attached below).
Trading report appearance and part of HTML code
Author: Stanislav Korotky