<?xml version='1.0' encoding='UTF-8'?>
<test>
  <options/>
  <result>
    <attrEmptyObject a="x"/>
    <attrEmptyArray a="x"/>
    <emptyObject/>
    <emptyArray/>
    <nullValue/>
    <emptyString/>
    <attrNullValue a="x"/>
  </result>
</test>
<test>
  <options>
    <encoding>UTF-8</encoding>
    <inlineCloseOn>never</inlineCloseOn>
    <writeDeclaration>false</writeDeclaration>
  </options>
  <result>
    <attrEmptyObject a="x"></attrEmptyObject>
    <attrEmptyArray a="x"></attrEmptyArray>
    <emptyObject></emptyObject>
    <emptyArray></emptyArray>
    <nullValue></nullValue>
    <emptyString></emptyString>
    <attrNullValue a="x"></attrNullValue>
  </result>
</test>
<test>
  <options>
    <encoding>UTF-8</encoding>
    <inlineCloseOn>empty</inlineCloseOn>
    <writeDeclaration>false</writeDeclaration>
  </options>
  <result>
    <attrEmptyObject a="x"/>
    <attrEmptyArray a="x"/>
    <emptyObject/>
    <emptyArray/>
    <nullValue/>
    <emptyString/>
    <attrNullValue a="x"/>
  </result>
</test>
<test>
  <options>
    <encoding>UTF-8</encoding>
    <inlineCloseOn>empty</inlineCloseOn>
    <writeDeclaration>false</writeDeclaration>
    <writeNilOnNull>true</writeNilOnNull>
  </options>
  <result>
    <attrEmptyObject a="x"/>
    <attrEmptyArray a="x"/>
    <emptyObject/>
    <emptyArray/>
    <nullValue xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
    <emptyString/>
    <attrNullValue a="x" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
  </result>
</test>
<test>
  <options>
    <encoding>UTF-8</encoding>
    <inlineCloseOn>empty</inlineCloseOn>
    <writeDeclaration>false</writeDeclaration>
    <skipNullOn>everywhere</skipNullOn>
  </options>
  <result>
    <attrEmptyObject a="x"/>
    <attrEmptyArray a="x"/>
    <emptyObject/>
    <emptyArray/>
    <emptyString/>
    <attrNullValue a="x"/>
  </result>
</test>