Guest User

Untitled

a guest
Feb 11th, 2019
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.28 KB | None | 0 0
  1. <root>
  2. <x>290</x>
  3. <y>204</y>
  4. <width>420</width>
  5. <height>70</height>
  6. <htmlText>
  7. <TEXTFORMAT LEADING="7">
  8. <P ALIGN="CENTER">
  9. <FONT FACE="Arial" SIZE="12" COLOR="#333333" LETTERSPACING="0" KERNING="0">
  10. SOME TEXT
  11. <A HREF="mailto:some@email.com" TARGET="">
  12. <U>some@email.com</U>
  13. </A> SOME TEXT
  14. </FONT>
  15. </P>
  16. </TEXTFORMAT>
  17. </htmlText>
  18. </root>
  19.  
  20. <?php include("functions_modules.php");
  21. $module = new modules; $xmlcode = '<root>
  22. <x>290</x>
  23. <y>204</y>
  24. <width>420</width>
  25. <height>70</height>
  26. <htmlText>
  27. <TEXTFORMAT LEADING="7">
  28. <P ALIGN="CENTER">
  29. <FONT FACE="Arial" SIZE="12" COLOR="#333333" LETTERSPACING="0" KERNING="0">
  30. SOME TEXT
  31. <A HREF="mailto:some@email.com" TARGET="">
  32. <U>some@email.com</U>
  33. </A>
  34. SOME TEXT
  35. </FONT></P>
  36. </TEXTFORMAT>
  37. </htmlText>
  38. </root>';
  39. echo $module->moduleText($xmlcode); ?>
  40.  
  41. SOME TEXT
  42. SOME TEXT
  43. <a href="mailto:some@email.com">some@email.com</a>
  44.  
  45. <?php
  46. $xml = new SimpleXMLElement("xml_file_path", NULL, True);
  47. $tags = $xml->xpath('//a'); //use xpath on the XML to find the a tags
  48.  
  49. foreach($tags as $tag){
  50. echo $image['href'] ; //here is the a tag src
  51. }
  52. ?>
Add Comment
Please, Sign In to add comment