Of course - this is a sample of the XML and the relevant code bits; they won’t work ofc, but the whole files contains some sensitive information. XML.xaml (6.8 KB)
For Mey ist OK the readcted Version. But please provide the top Elements information that are defining the Namespaces. This ist very imported to Proof that Code ist running sucessfully. Thanks
@mickeymack
PFA demo xaml: mickeymack2.xaml (8.6 KB)
I did some corrections on the XML and inserted a beginning invoiceLine element. This was correcting the structure as on end the closing tag was already present. mickeymack.xml (2.2 KB)
Try to run my xaml standalone before integrating in your code. Adopt the XML Filepath accordingly before running the xaml
@mickeymack
Your XAMl was not so far from the result. You are on a good track
In case of XML is System generated and you do need to do a fixing, you can do it on txt base level in advance before passing it ti Deserialize activity
Regex will do a good job and here in the forum there are a lot of brains very familiar with this. But please open for the XML correction task a new Post. So this Topic can cleaned finished and other members with XML questions can easy find the solution
When I pipe my XML-file into your file, it works correcly, so going to set this as solved - many thanks. I’m having some issues getting the correct sums when I incorporate it into my other code, but I’ll work on that tomorrow - on the tail end of a 17 hour day now. Thank you so much for all your help!