protected internal String ToXMLFragment()
{
StringBuilder xml = new StringBuilder();
if (IsSetHeight()) {
DecimalWithUnits height = this.Height;
xml.Append("<Height Units=" + "\"" + EscapeXML(height.Units) + "\"" + ">");
xml.Append(height.Value);
xml.Append("</Height>");
}
if (IsSetLength()) {
DecimalWithUnits length = this.Length;
xml.Append("<Length Units=" + "\"" + EscapeXML(length.Units) + "\"" + ">");
xml.Append(length.Value);
xml.Append("</Length>");
}
if (IsSetWeight()) {
DecimalWithUnits weight = this.Weight;
xml.Append("<Weight Units=" + "\"" + EscapeXML(weight.Units) + "\"" + ">");
xml.Append(weight.Value);
xml.Append("</Weight>");
}
if (IsSetWidth()) {
DecimalWithUnits width = this.Width;
xml.Append("<Width Units=" + "\"" + EscapeXML(width.Units) + "\"" + ">");
xml.Append(width.Value);
xml.Append("</Width>");
}
return xml.ToString();
}