My work uses software to fill out records that are expressed as XML documents. I have the task of trawling through these XML files to pull statistics out of them. The files themselves adhere to no schema and if a form field doesn’t get filled out then the XML corresponding to that field is not created.
What’s my best approach?
Example XML:
<Form>
<Field>
<id>Field ID</id>
<value>Entered Value</value>
</Field>
</Form>
I have been attempting to write software that I can use to query the files but have not been able to come up with anything even remotely useful.
Any thoughts appreciated.
EDIT: In terms of C#, what I would like (Though I’m sure it isn’t possible) is a Dictionary that has a string as the key and the corresponding value could EITHER be a string or another Dictionary.
Is like this ↓ ?
XML:
Source: