I would like to know about how to retrieve corresponding xpaths when we input an xml file in java with eclipse platform.

For example,

```
<document>
<name>xml file</name>
<size>12 kb</size>
</document>   

```

the result is:

```
/document
/document/name
/document/size

```