@Tal294
Often namespaces, other issues are leading to empty results. We worked heavily on such issues got it more and more under control. So I have following suggestions:
do a debug with breakpoints and check what is the result Step 3, verify that “trailer” is accepted as element name/localname. Otherwise printout element names and check out what is expected.
the 14 should be retrieved from Attribute totalRecords, due trailer is a so called empty element
Other option would be share the xml or demo data xml (but with all same settings e.g namespace definitions) so I can check the particular cases at my IMPs and share some code parts if there are matching to your needs