I need some way to get the full code of a xml file into a variable so i can get what i need with a regex. Example:
I have this xml:
<?xml version="1.0" encoding="utf-8"?>
<renderer>
<positions layout="submission">
<position name="content">Content</position>
<position name="media">Media</position>
<position name="meta">Meta</position>
<position name="administration">Administration</position>
</positions>
<positions layout="edit">
<position name="content">Content</position>
<position name="media">Media</position>
<position name="meta">Meta</position>
<position name="administration">Administration</position>
</positions>
</renderer>
And i want to get with regex all the content from the "name" tags. This part is not a problem for me, i have the regex for this, i just need to get the full code of the xml.
Thanks in advance!! :)