How to find child elements of a specific node ? with TinyXpath
问题 I have successfully used TinyXpath with root node as below const char* xpath ="/MyRoot/A/B"; TinyXpath::xpath_processor xp_proc(mRootElement, xpath); (this will find all B under all A of MyRoot) I wonder if I can pass non-root element to the constructor something like below const char* xpath = "./A/B"; TinyXpath::xpath_processor xp_proc(A_Element, xpath); (I want to find all B under specific A, when I have A_Element) Thank you 回答1: Given this constructor definition from the TinyXPath