Donate. I desperately need donations to survive due to my health

Get paid by answering surveys Click here

Click here to donate

Remote/Work from Home jobs

Pattern matching unique XML tags

I have a folder of files that all have the same content except for a few lines in each file where the value of a few XML tags are unique. For example

<string>xGjZFTJxvqVQykiYFrdd</string>

I want to do a search of all the files to make sure that all of these tags follow the same format (20 characters). I also want to verify that the XML tag itself is formatted correctly, that <string> and </string> are present.

Is there a way to do this with some sort of parser tool since I should not use regex for XML?

Comments