{
writeStartElement( XMLConstants.PackageRelationships.RELATIONSHIPS );
final int size = _relationships.size();
for (int i = 0; i != size; i++) {
final Relationship relationship = _relationships.get( i );
writeStartElement( XMLConstants.PackageRelationships.RELATIONSHIP );
writeAttribute( XMLConstants.PackageRelationships.ID, "rId" + String.valueOf( i + 1 ) );
writeAttribute( XMLConstants.PackageRelationships.TYPE, relationship.getType() );
writeAttribute( XMLConstants.PackageRelationships.TARGET, relationship.getTarget( this.root ) );
writeEndElement( XMLConstants.PackageRelationships.RELATIONSHIP );
}
writeEndElement( XMLConstants.PackageRelationships.RELATIONSHIPS );
}