*/
@NotNull
public String resolveTargetText(@NotNull XmlTag xmlTag, @NotNull IXMappingExp mappingExp)
throws XMappingException
{
PsiXPath xPath;
try
{
xPath = new PsiXPath((XmlFile) xmlTag.getContainingFile(), mappingExp.getRawExp());
}
catch (JaxenException e)
{
throw new XMappingException("Error while parsing resolution expression : <" +
mappingExp + ">", e);
}
try
{
return xPath.stringValueOf(xmlTag);
}
catch (JaxenException e)
{
throw new XMappingException("Error while evaluating value. Mapping expression : <"
+ mappingExp + ">. Xml content : <" + xmlTag.getText() + ">", e);