Hi i have a small problem. my XML File is as follows:
Code:
<Assets>
<Asset Code="30097" >
<Level Code="30091" TagName="MarketCap"/>
<Level Code="30092" TagName="Sector"/>
</Asset>
</Assets>
I have to access the TagName from my java program using a dom4j object.(This document is in dom4j format).
I have the Asset Code 30097 and the code for the Level as 30091. how can i access the TagName.
i have tried using the following :
domObj.valueOf ("//Assets/Asset[@Code='" + iAssetCode + "']/Level[@Code='" + iLevelCode + "']/@TagName");
plz help.
Thanks