///Object[] arguments = new Object[]{"Name", baseBean.name()}; //NOI18N
///System.out.println(MessageFormat.format(format, arguments));
///arguments = new Object[]{"FullName", baseBean.fullName()}; //NOI18N
///System.out.println(MessageFormat.format(format, arguments));
BaseBean bean = baseBean;
BaseBean parentBean = null;
String xpath = bean.dtdName();
///boolean root = bean.isRoot();
boolean root = isRootElement(bean);
parentBean = bean.parent();
while(!root){
xpath = parentBean.dtdName() + Constants.XPATH_DELIMITER + xpath;
bean = parentBean;
parentBean = bean.parent();
///root = bean.isRoot();
root = isRootElement(bean);
}