Xml jQ parsing

by Fernando De Leon

HTML

<button id="press">
Press
</button>
<button id="press2">
Press for other type
</button>
<button id="press3">
Press for iSheet
</button>

<button id="press4">
Press for iSheet 2
</button>
<button id="press5">
Press for abr searchname
</button>

JavaScript

var xml = '<?xml version="1.0" encoding="utf-8"?><ABRPayloadSearchResults xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://abr.business.gov.au/ABRXMLSearch/"><request>       <identifierSearchRequest>         <authenticationGUID>7ec3b4ac-9ead-4fac-ae6d-02e5e0a9351c</authenticationGUID>            <identifierType>ABN</identifierType><identifierValue>74172177893</identifierValue><history>N</history>      </identifierSearchRequest> </request> <response>        <usageStatement>The Registrar of the ABR monitors the quality of the information available on this website and updates the information regularly. However, neither the Registrar of the ABR nor the Commonwealth guarantee that the information available through this service (including search results) is accurate, up to date, complete or accept any liability arising from the use of or reliance upon this site.</usageStatement>        <dateRegisterLastUpdated>2016-11-14</dateRegisterLastUpdated> <dateTimeRetrieved>2016-11-14T09:47:25.2623207+11:00</dateTimeRetrieved> <businessEntity201408><recordLastUpdatedDate>2012-04-13</recordLastUpdatedDate>            <ABN>                <identifierValue>74172177893</identifierValue>                <isCurrentIndicator>Y</isCurrentIndicator> <replacedFrom>0001-01-01</replacedFrom> </ABN> <entityStatus>                <entityStatusCode>Active</entityStatusCode> <effectiveFrom>1999-11-01</effectiveFrom> <effectiveTo>0001-01-01</effectiveTo>            </entityStatus> <ASICNumber /> <entityType> <entityTypeCode>CSP</entityTypeCode>                <entityDescription>Commonwealth Government APRA Regulated Public Sector Scheme</entityDescription> </entityType>            <goodsAndServicesTax> <effectiveFrom>2000-07-01</effectiveFrom><effectiveTo>0001-01-01</effectiveTo>           </goodsAndServicesTax> <mainName><organisationName>THE TRUSTEE FOR PSS FUND</organisationName>               ...