I have a large amount of XML files and I need to extract specific lines from each file (the same line numbers in each file) and place them in a single Excel document. ie, Line 277 of every xml file in to column 'A' of excel worksheet & line 269 of every xml into column 'B' of excel sheet.
Is this possible and, if so, how do i do it please?
To do this manually would take me several weeks. There are @20 lines i need to copy from each file and several thousand XML files.
If it isn't doable using the above method, is there another solution someone could recommend please.
Huge thanks
I have seen the question on here about detecting specific text within a line (and copying that' but this wouldn't apply in my case as the content of each line (eg Line337) will not always be the same.
I've (hopefully) attached a screenshot of a section of 1 XML. THe only reference to the data i need is in the Line number. ie Line182 will always be 'filename' with the actual filename shown in Line183 (this changes depending on the XML file. Apply this also to Line230 'Creation Date' which stays the same but the actual creation date is on Line231.
I've also attached a excel screenshot of, ideally, how the data needs to be displayed. Hopefully this helps
Try a simple powershell script
Method 2 which skips the XML ident line when it is not UTF-8