I am trying to make the solution found here xml with nested siblings to data frame in R work where there are repeated nests (I'm not an html person- so not sure if that is the right term)
The code referenced above is returning the first cycle, but I need to import all of the cycles.
The data look like this:
<Record>
<LastName>REDACTED</LastName>
<FirstName>REDACTED</FirstName>
<DOB>REDACTED</DOB>
<Rapsheet>
<Header>
<DateOfBirth>REDACTED</DateOfBirth>
<SID>REDACTED</SID>
<Summary>
<DateOfLastArrest>
10/01/2012
</DateOfLastArrest>
<AgeOfOffender>21</AgeOfOffender>
<FailuresToAppear>0</FailuresToAppear>
<ViolationOfCourtOrdersOrConditions>
0
</ViolationOfCourtOrdersOrConditions>
<FelonyArrestsConvictions>
0/0
</FelonyArrestsConvictions>
<MisdemeanorArrestsConvictions>
0/0
</MisdemeanorArrestsConvictions>
<UnknownOffenseLevelArrestsConvictions>
1/0
</UnknownOffenseLevelArrestsConvictions>
<AssaultOnOfficerCharges>
0
</AssaultOnOfficerCharges>
<DeadlyWeaponRelatedCharges>
0
</DeadlyWeaponRelatedCharges>
<EscapeCharges>
0
</EscapeCharges>
<ViolationOfProbationParoleCharges>
0/0
</ViolationOfProbationParoleCharges>
</Summary>
</Header>
<Title>VERMONT CRIMINAL HISTORY</Title>
<Identification>
<VermontStateID>REDACTED</VermontStateID>
<DateOfBirth>REDACTED</DateOfBirth>
<PlaceOfBirthCity></PlaceOfBirthCity>
<PlaceOfBirthStateOrCountry></PlaceOfBirthStateOrCountry>
<Sex>F</Sex>
<Race>W</Race>
<Ethnicity>
</Ethnicity>
<USCitizen></USCitizen>
<Height>503</Height>
<Weight>180</Weight>
<EyeColor>GRN</EyeColor>
<HairColor>BLN</HairColor>
<ScarsMarksTattoos>
<SMTCode>TATTOO</SMTCode>
<SMTDescription>ARABIC TATOO ON ARM</SMTDescription>
</ScarsMarksTattoos>
<ScarsMarksTattoos>
<SMTCode>TATTOO</SMTCode>
<SMTDescription>NOSE RING LIP RINGS</SMTDescription>
</ScarsMarksTattoos>
<PrintsNCIC></PrintsNCIC>
<HenryUp></HenryUp>
<HenryLow></HenryLow>
<PhotoAvailable></PhotoAvailable>
<Address>
<Street>REDACTED</Street>
<City>WINOOSKI</City>
<State>VT</State>
<Zip>05404</Zip>
</Address>
</Identification>
<CriminalHistory>
<Cycle>
<CycleNumber>1</CycleNumber>
<TrackingNumber>1709462</TrackingNumber>
<Arrest>
<DateOfArrest>10/01/2012 </DateOfArrest>
<ArrestAgency>WINOOSKI PD VT0040400</ArrestAgency>
<ArrestAgencyCaseNumber>12WS04470</ArrestAgencyCaseNumber>
<Fingerprint>NO</Fingerprint>
<Charge>
<ChargeNumber>01</ChargeNumber>
<ChargeDescription></ChargeDescription>
<Statute></Statute>
<Severity></Severity>
</Charge>
</Arrest>
<Arraignment>
<ArraignmentDate>04/18/2014</ArraignmentDate>
<ArraignmentAgency>CHITTENDEN CO. DISTRICT COURT</ArraignmentAgency>
<DocketNumber>REDACTED</DocketNumber>
<Charge>
<ChargeNumber>01</ChargeNumber>
<ChargeDescription>ASSAULT-AGG DOMESTIC-1ST DEG WITH WEAPON</ChargeDescription>
<Statute>13V1043A2</Statute>
<Severity>FELONY</Severity>
</Charge>
</Arraignment>
<CourtDisposition>
<ChargeNumber>01</ChargeNumber>
<Convicted>NO</Convicted>
<Felony>NO</Felony>
<ChargeDescription>ASSAULT-AGG DOMESTIC-1ST DEG WITH WEAPON</ChargeDescription>
<Statute>13V1043A2</Statute>
<Disposition>
06/09/2014 CASE DISMISSED
</Disposition>
</CourtDisposition>
</Cycle>
<Cycle>
<CycleNumber>2</CycleNumber>
<TrackingNumber>1685833</TrackingNumber>
<Arrest>
<DateOfArrest>09/30/2012 </DateOfArrest>
<ArrestAgency>WINOOSKI PD VT0040400</ArrestAgency>
<ArrestAgencyCaseNumber>12WS004770</ArrestAgencyCaseNumber>
<Fingerprint>NO</Fingerprint>
</Arrest>
<Arraignment>
<ArraignmentDate>10/01/2012</ArraignmentDate>
<ArraignmentAgency>CHITTENDEN CO. DISTRICT COURT</ArraignmentAgency>
<DocketNumber>REDACTED</DocketNumber>
<Charge>
<ChargeNumber>01</ChargeNumber>
<ChargeDescription>ASSAULT-AGG DOMESTIC-1ST DEG WITH WEAPON</ChargeDescription>
<Statute>13V1043A2</Statute>
<Severity>FELONY</Severity>
</Charge>
</Arraignment>
<CourtDisposition>
<ChargeNumber>01</ChargeNumber>
<Convicted>NO</Convicted>
<Felony>NO</Felony>
<ChargeDescription>ASSAULT-AGG DOMESTIC-1ST DEG WITH WEAPON</ChargeDescription>
<Statute>13V1043A2</Statute>
<Disposition>
12/02/2013 CASE DISMISSED
</Disposition>
</CourtDisposition>
</Cycle>
</CriminalHistory>
</Rapsheet>
Thank you in advance