How to identify the quantity of items in the NFe xml

We would recommend to check first if XML Namespaces are to handle:
XML Extraction - Handling Namespaces (Tableau, Soap, OASIS types) - Help / Community - UiPath Community Forum

Maybe you can share the XML as textfile with us