<?xml version="1.0" encoding="UTF-8"?>
<category tid="titleId">
<key>titlekey</key>
<category-abbreviation/>
<title>main title </title>
</category>
For example, say for above document I need value of tid that is "titleId" and to fetch it I have input key=titlekey. Let me know how to find attribute value tid using xpath expression. documents can have multiple category nodes.