I would like to perform a regex match on some XML content in JavaScript.
- How do we store XML contents in a JavaScript variable?
 - What are the effective ways to retrieve the XML content from a JavaScript variable to perform a regex match?
 - Note: Please suggest code snippets that works in all the browsers.
 
Sangeeth