objectPropertyElem function

XmlElement objectPropertyElem(
  1. XmlElement objElem,
  2. String property
)

Implementation

XmlElement objectPropertyElem(XmlElement objElem, String property) {
  try{
    var propelem = objElem.findElements(property).first;
    if(propelem!=null) {
      return firstElement(propelem);
    }
  }catch(Exception){}
  return null;
}