The XmlStreamBuf.shortTag() overloads now accept optional XML attributes:
Old: final public void shortTag(str tag, str value) New: final public void shortTag(str tag, str value, <str, str>[] args=null) Old: final public void shortTag(str tag, int value) New: final public void shortTag(str tag, int value, <str, str>[] args=null) Old: final public void shortTag(str tag, double value) New: final public void shortTag(str tag, double value, <str, str>[] args=null)
Each tuple in args is written as an attribute name and value. Existing two-argument calls retain their previous output.
Example:
buf.shortTag("Measurement", 1.25, [<"type", "width">, <"unit", "meter">]);