Question

XML navigation

  • 18 January 2024
  • 0 replies
  • 23 views

Badge

Hello everyone!

I have a question about XML navigation, hope you can help!

That’s basically the XML I have:

 

For every XML doc I have the infNFe and from 1 to 999 “det” nodes and inside each det nItem node, I have the other nodes.

The question here is how I can navigate from det node to det node if their name is the same and what differences them is the “nItem” attribute.

For the first “det” node I can already reach the inside nodes with:

NFe/infNFe/det/prod/NCM

But I don’t know how I can navigate throught them and get the NCM node from every “det” node.

 

I hope I could make myself clear on my question.

Thank you!

 


0 replies

Be the first to reply!

Reply