Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <root>
- <x>290</x>
- <y>204</y>
- <width>420</width>
- <height>70</height>
- <htmlText>
- <TEXTFORMAT LEADING="7">
- <P ALIGN="CENTER">
- <FONT FACE="Arial" SIZE="12" COLOR="#333333" LETTERSPACING="0" KERNING="0">
- SOME TEXT
- <A HREF="mailto:some@email.com" TARGET="">
- <U>some@email.com</U>
- </A> SOME TEXT
- </FONT>
- </P>
- </TEXTFORMAT>
- </htmlText>
- </root>
- <?php include("functions_modules.php");
- $module = new modules; $xmlcode = '<root>
- <x>290</x>
- <y>204</y>
- <width>420</width>
- <height>70</height>
- <htmlText>
- <TEXTFORMAT LEADING="7">
- <P ALIGN="CENTER">
- <FONT FACE="Arial" SIZE="12" COLOR="#333333" LETTERSPACING="0" KERNING="0">
- SOME TEXT
- <A HREF="mailto:some@email.com" TARGET="">
- <U>some@email.com</U>
- </A>
- SOME TEXT
- </FONT></P>
- </TEXTFORMAT>
- </htmlText>
- </root>';
- echo $module->moduleText($xmlcode); ?>
- SOME TEXT
- SOME TEXT
- <a href="mailto:some@email.com">some@email.com</a>
- <?php
- $xml = new SimpleXMLElement("xml_file_path", NULL, True);
- $tags = $xml->xpath('//a'); //use xpath on the XML to find the a tags
- foreach($tags as $tag){
- echo $image['href'] ; //here is the a tag src
- }
- ?>
Add Comment
Please, Sign In to add comment