Displaying the entire XPath to the user

Quick question, How would i go around displaying the entire XPath to the user? To clarify- I'm not asking about how to reference attributes to a text widget, but rather i would like to display the XPath the object lives in.    Ultimately i would want something like this:
1 answers

Give the model reflection module a try, this will provide the information in the database about the structure and entities in your app. With some logic you should be able to display the path to the entity as in the example from the question.