public static void writeXml ( final XMLStreamWriter xsw, final List<InstallableUnit> ius ) throws XMLStreamException
    {
        xsw.writeStartElement ( "units" );
        xsw.writeAttribute ( "size", Integer.toString ( ius.size () ) );
        for ( final InstallableUnit iu : ius )
        {
            iu.writeXmlForUnit ( xsw );
        }
        xsw.writeEndElement ();
    }
public static void writeXml ( final XMLStreamWriter xsw, final List<InstallableUnit> ius ) throws XMLStreamException
    {
        xsw.writeStartElement ( "units" );
        xsw.writeAttribute ( "size", Integer.toString ( ius.size () ) );
        for ( final InstallableUnit iu : ius )
        {
            iu.writeXmlForUnit ( xsw );
        }
        xsw.writeEndElement ();
    }
public static void writeXml ( final XMLStreamWriter xsw , final List < InstallableUnit > ius ) throws XMLStreamException { xsw . writeStartElement ( "units" ) ; xsw . writeAttribute ( "size" , Integer . toString ( ius . size ( ) ) ) ; for ( final InstallableUnit iu : ius ) { iu . writeXmlForUnit ( xsw ) ; } xsw . writeEndElement ( ) ; }
Write a list of units inside a {@code units} element

@param xsw
the stream to write to
@param ius
The units to write
@throws XMLStreamException
if the underlying throws it
Write a list of units inside a { @code units } element