What do I pass here as the second parameter to v_get_xpath_base in order to get it to work, no matter what I try, there always seems to be a problem. Either the class is a base class and cannot be instantiated or the class cannot be casted.
I'm at a loss, someone help me please?
TiXmlElement* outputnode = new TiXmlElement("test");
bool isAttrib;
proc.v_get_xpath_base(1, outputnode, isAttrib);
As it currently stands, the TiXmlElement
cannot be cast to const TiXmlBase*&
The API is going to return you the matching node - I imagine you need something like:
and after the call,
outputNode
will point to the matched data. Seems like you have to useconst TiXmlBase*
as the type foroutputnode
. There is a sample here that does this.Note that this only works after you have done this, per the TinyXml docs:
I got the same problem. Steve solution works fine but I don't see how to use
outputnode
after. It cannot be cast fromTiXmlBase
toTiXmlElement
nor be directly used with method from this child class. I'm browsing the documentation without finding a way to manipulate thisTiXmlBase
pointer.