Remove deprecated getChildren() usage
Remove deprecated getChildren() usage

Use of the getChildren() method is deprecated in favour of simply
iterating over an element.

Change-Id: Ica245ffbd5544df6b171d356aba1df61cdd2d999

tamac-io/jenkins-job-builder,gforcada/jenkins-job-builder,gforcada/jenkins-job-builder,phinexus/jenkins-job-builder,klmitch/jenkins-job-builder,wsoula/jenkins-job-builder,dataxu/jenkins-job-builder,OSSystems/jenkins-job-builder,david-caro/jenkins-job-builder,klmitch/jenkins-job-builder,joostvdg/jenkins-job-builder,tamac-io/jenkins-job-builder,lukas-bednar/jenkins-job-builder,gforcada/jenkins-job-builder,rsig/jenkins-job-builder,phinexus/jenkins-job-builder,twc-openstack/jenkins-job-builder,rsig/jenkins-job-builder,puppetlabs/jenkins-job-builder,joostvdg/jenkins-job-builder,puppetlabs/jenkins-job-builder,david-caro/jenkins-job-builder,rsig/jenkins-job-builder,klmitch/jenkins-job-builder,lukas-bednar/jenkins-job-builder,phinexus/jenkins-job-builder,gforcada/jenkins-job-builder,onshape/jenkins-job-builder,dataxu/jenkins-job-builder,gforcada/jenkins-job-builder,tamac-io/jenkins-job-builder,twc-openstack/jenkins-job-builder,twc-openstack/jenkins-job-builder,wsoula/jenkins-job-builder,wikimedia/integration-jenkins-job-builder,david-caro/jenkins-job-builder,tamac-io/jenkins-job-builder,mjeanson/jenkins-job-builder,puppetlabs/jenkins-job-builder,wikimedia/integration-jenkins-job-builder,wsoula/jenkins-job-builder,mjeanson/jenkins-job-builder,wsoula/jenkins-job-builder,OSSystems/jenkins-job-builder,wikimedia/integration-jenkins-job-builder,joostvdg/jenkins-job-builder,klmitch/jenkins-job-builder,phinexus/jenkins-job-builder,onshape/jenkins-job-builder,mjeanson/jenkins-job-builder,joostvdg/jenkins-job-builder,onshape/jenkins-job-builder,wikimedia/integration-jenkins-job-builder,david-caro/jenkins-job-builder,wikimedia/integration-jenkins-job-builder,phinexus/jenkins-job-builder,lukas-bednar/jenkins-job-builder,mjeanson/jenkins-job-builder,OSSystems/jenkins-job-builder,onshape/jenkins-job-builder,puppetlabs/jenkins-job-builder,dataxu/jenkins-job-builder,lukas-bednar/jenkins-job-builder,rsig/jenkins-job-builder,twc-openstack/jenkins-job-builder,OSSystems/jenkins-job-builder,dataxu/jenkins-job-builder