I have been tasked with documenting the toolkit, where it is not doxygen documented. Now i have come across the XMLNode::findPosition() function and i am a bit lost about how it works. Specifically, what "index" is used for. The function can be found inf ofxml.cc at line 1262, but i will post it here:
I believe the XML implementation originates from the separate XML parser library here: http://www.applied-mathematics.net/tools/xmlParser.html, therefore, I don't think we can answer this question, you should look up the new version upstream, whether the method is now documented, or send an email to the author Frank Vanden Berghen.
// these are functions and structures used internally by the XMLNode class (don't bother about them):
I would strongly recommend not to start with an "external implementation" like the XML parser (aka "ofxml"). Furthermore, I don't think that it makes sense to modify its source code apart from required fixes (bugs, compiler issues, etc.) because it makes it more difficult to update the code in the future.
// these are functions and structures used internally by the XMLNode class (don't bother about them):
Hi,
I did not. However, i dont want to document the function itself (should have mentioned that ), but a function ("XMLNode::positionOfText" and other of the same kind (in ofxml.h)) that call that function. These are located above the comment you mentioned but have parameters that are passed as the index parameter to this function. So I tried to write an explanation of what this parameter does, but I dont know what exactly it is used for in this final function call.