I want to implement a plugin to suggest next child or attribute for XML tags for scala language. as an example if developer type <name> i have to suggest child tag <firstName> to editor. I can get next sibling and Childs using an xsd. but don't know how to know the position of curser (inside a xml tag or value) and to give sugestions based on the token. h have tried many ways with completion contributor and reference contributor. but still unable to find a success way. please help me with this if you can?