My question: What's a good way to parse the information below?I have a java program that gets it's input from XML. I have a feature which will send an error email if there was any problem in the processing. Because parsing the XML could be a problem, I want to have a feature that would be able to regex the emails out of the xml (because if parsing was the problem then I couldn't get the error e-mails out of the xml normally).Requirements:
- I want to be able to parse the to, cc, and bcc attributes seperately
- There are other elements which have to, cc, and bcc attributes
- Whitespace does not matter, so my example may show the attributes on a newline, but that's not always the case.
- The order of the attributes does not matter.