private void parseVaries(Varies datatypeObject, Element datatypeElement) throws DataTypeException {
//figure out what data type it holds
//short nodeType = datatypeElement.getFirstChild().getNodeType();
if (!hasChildElement(datatypeElement)) {
//it's a primitive
datatypeObject.setData(new GenericPrimitive(datatypeObject.getMessage()));
}
else {
//it's a composite ... almost know what type, except that we don't have the version here
datatypeObject.setData(new GenericComposite(datatypeObject.getMessage()));
}