I do feel that a XPath Approach is better for the retrieval
Setting up a NamespaceManager with a Config Datatable:
for the default namespace with empty prefix “def” is assigne as prefix
the retrieval is configured as another datatable (could also be externalize into an excel)
I did also for a deeper nested element for demo purpose
After all preperation it is iterating over the retrieval config and retrieves the specfied values. et voila:
So this result can be used and preprocess (e.g. removing path column, dynamic reating another structure…)
I did it as a quick prototype for you and you can finalize.
Open the XML in Chrome or Firefox and activate the Webtools (F12)
with following you can easy get the Xpath: Kopieren means Copy:
Demo XAML here:
Lector_V2.xaml (16.7 KB)