i am using TinyXPath to find the node whose tag is "node" using attribute, it is not working. for other node whose tag is "nodes" or "objects" or "sg" is working fine.
has the name "node" some internal meaning or what? i m confused??
the sample code is…
xpath_processor XPathParam(root, "//dgn/sg/objects");
int nParamCnt = XPathParam.u_compute_xpath_node_set();
TiXmlElement* pTiXmlEle = XPathParam.XNp_get_xpath_node(0)->ToElement();
xpath_processor XPathPrm(pTiXmlEle, "object[@name = 'abc'");
int iParam = XPathPrm.u_compute_xpath_node_set();
TiXmlElement* pTiXmlEleParam = XPathPrm.XNp_get_xpath_node(0)->ToElement();
it is working.
but when i am using node in place of object it is giving the all nodes and not considering attribute 'abc'
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.