code: public static Node toXML(Object value) throws PageException {
  	if (value instanceof Node) return XMLCaster.toXMLStruct((Node) value, false);
  	if (value instanceof ObjectWrap) {
  	    return toXML(((ObjectWrap) value).getEmbededObject());
  	}
  	try {
  	    return XMLCaster.toXMLStruct(XMLUtil.parse(XMLUtil.toInputSource(null, value), null, false), false);
  	}
  	catch (Exception outer) {
  	    throw Caster.toPageException(outer);
  	}
  
      }
docs: cast Object to a XML Node
  
  @param value
  @return XML Node
  @throws PageException