xml data

xml data

by Fernando De Leon

HTML

<button id="button1">
Press me
</button>

<list>
	<officer id="1469500016618" type="H" status="1">
		<name>dfdr</name>
		<appointmentDate/>
		<formerNames/>
		<birthDate/>
		<birthPlace/>
		<deliveryAddr/>
		<postalAddr>Sydney, New South Wales, Australia</postalAddr>
		<fax/>
		<email/>
		<attentionOf/>
		<securityType count="23">rree</securityType>
		<system>
			<audit>
				<item date="1469500016620" userid="undefined" username="Fernando De Leon" action="CREATED"/>
				<item date="1469593998765" userid="undefined" username="Fernando De Leon" action="MODIFIED"/>
				<item date="1469670786943" userid="undefined" username="Fernando De Leon" action="MODIFIED"/>
			</audit>
		</system>
	</officer>
	<officer id="1469670741272" type="F" status="1">
		<name>rr</name>
		<appointmentDate/>
		<formerNames/>
		<birthDate/>
		<birthPlace/>
		<deliveryAddr/>
		<postalAddr>238 Bourke Street, Melbourne, Victoria, Australia</postalAddr>
		<fax/>
		<email/>
		<system>
			<audit>
				<item date="1469670741274" userid="undefined" username="Fernando De Leon" action="CREATED"/>
				<item date="1469670757636" userid="undefined" username="Fernando De Leon" action="MODIFIED"/>
				<item date="1469670780188" userid="undefined" username="Fernando De Leon" action="MODIFIED"/>
			</audit>
		</system>
	</officer>
	<officer id="1469670820316" type="F" status="1">
		<name>dfd</name>
		<appointmentDate/>
		<formerNames/>
		<birthDate/>
		<birthPlace/>
		<deliveryAddr/>
		<postalAddr>HF, Burwood, Victoria, Australia</postalAddr>
		<fax/>
		<email/>
		<system>
			<audit>
				<item date="1469670820316" userid="undefined" username="Fernando De Leon" action="CREATED"/>
			</audit>
		</system>
	</officer>
</list>

JavaScript

$("#button1").on("click",function() {
 var elem = $("list").find("officer");
 console.log(elem);
});