query_src_text | R Documentation |
Queries srcML XML for code units (e.g. function names, declarations, etc.). For a list of code units and languages supported by srcML XML see: https://www.srcml.org/documentation.html.
query_src_text(srcml_path, xpath_query, srcml_filepath)
srcml_path |
The path to srcML binary |
xpath_query |
The XPath query to be performed on the .xml |
srcml_filepath |
The path to the srcML file to be queried
(see |
Note a query, unless explicitly specified to be parsed (e.g. by using the string() scrML function), is a srcML XML itself, which can be also queried.
The path where the output xml was saved (i.e. srcml_filepath)
For details, see https://www.srcml.org/tutorials/xpath-query.html.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.