private static function getExtendedDataElement($values)
{
$result = "<ExtendedData>";
$ignore = ['parts', 'points', 'point'];
foreach ($values as $key => $val) {
if (!in_array($key, $ignore)) {
$result .= '<Data name="' . $key . '">';
$result .= '<displayName>' . $key . '</displayName>';
$result .= '<value>' . $val . '</value>';
$result .= '</Data>';
}
}
$result .= "</ExtendedData>";
return $result;
}