I have multiple XML files that I need to check on a daily basis. I have a script that reads the entire file into a string and then it performs some checks using regular expressions. I now need to do another check on the following line:
What I want to do is take just the (worksite data) info and turn that into a string. I'm having some difficulty figuring out how to do that because the data is of variable length and may contain any combination of letters, numbers, punctuation, and blank spaces.
Does anyone have a suggestion as to how I can accomplish this?
Code:
<Company:WorkSite>(worksite data)</Company:WorkSite>
Does anyone have a suggestion as to how I can accomplish this?