String tmp = "";
String tmpXML = "";
String className = getValueOfNodeByTagName(configXML, TAG_VONAME);
classCV[0] = Class.forName(className);
Node met = null;
NodeList listItem = configXML.getChildNodes();
int length = listItem.getLength();
for (int i = 0; i < length; i++)
{
tagName = listItem.item(i).getNodeName();
if (tagName.equals("#text") || !listItem.item(i).hasAttributes())
continue;
NamedNodeMap attr = listItem.item(i).getAttributes();
if (attr.getNamedItem("cvtoaa") != null)
{
tmpXML = getAAfromCV(objectCV, attr, classCV, tagName);
if (!tmpXML.trim().equals(""))
xml += tmpXML;
continue;
}
if (attr.getNamedItem("xml") != null)
{
configForQBXML = getDocumentFromString(getDocumentFromString(attr.getNamedItem("xml").getNodeValue()).getElementsByTagName(attr.getNamedItem("tag").getNodeValue()).item(0).toString());
tmpXML = forwardXML(classCV, attr, objectCV, className, configForQBXML);
if (!tmpXML.trim().equals(""))
xml += "<" + tagName + ">" + tmpXML + "</" + tagName + "> \n";
continue;
}
met = attr.getNamedItem("get");
method = classCV[0].getMethod(met.getNodeValue(), null);
ret = method.invoke(objectCV, null);
if (ret != null)
{
value = ret.toString();
if (met.getNodeValue().equalsIgnoreCase("getExternalID"))
{
xml += "<" + tagName + ">" + value + "</" + tagName + "> \n";
xml += "<EditSequence>" + hm.get(value) + "</EditSequence> \n";
continue;