C# XML Editor - Matching XMLNode
问题 I'm currently wanting to find out an XMLNode from a text location. I have a XML file in a textbox: <Assets id="assets"> <Asset id="background_asset" url="images/rooms/office/background.jpg" /> </Assets> and I'm wanting to fetch the current node name from my cursor/caret location within the textbox I could parse the current XML tag at the cursor/caret position, but I then wouldn't be able to find the parent... I'm wondering if there is a way of getting the XMLNode from an XMLDocument 回答1: You