
Given a line-number and line-offset for an element in an xml document, how would I go about inserting a child node at that point in the document? I'm currently viewing and editing the document with an EditorDocument instance but am receiving the line-number/line-pos from another source. Alternatively, given that I know the parent element is the Nth element defined in the document, how would I find this in the EditorDocument and insert a child node?