RangeInserter inserter = new RangeInserter(m_xDoc);
TreeNode text = new TextNode("123");
inserter.insertRange( new Range(0, 0, text) );
XText xDocText = m_xDoc.getText();
XTextCursor xDocTextCursor = xDocText.createTextCursor();
xDocTextCursor.goRight((short)1, false);
xDocTextCursor.goRight((short)3, true);
XTextField xMetaField = inserter.makeMetaField();
xDocText.insertTextContent(xDocTextCursor, xMetaField, true);