Advertisement
Guest User

Untitled

a guest
Oct 17th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.04 KB | None | 0 0
  1. if ($loml->metametadata) {
  2. try {
  3. // etiqueta METAMETADATA
  4. //hace el tercero analisis del namespace mas externo PARA HIJOS DE METAMETADATA
  5. foreach ($loml->metametadata as $lommetameta) {
  6. //verificar que exista el namespace
  7. $namespacemeta = $lommetameta->getNameSpaces(true);
  8. //define que namespace se busca
  9. $lommeta = $lommetameta->children($namespacemeta['lom']);
  10.  
  11. //hace el tercero analisis del namespace mas externo PARA HIJOS DE CONTRIBUTE
  12. foreach ($lommeta->contribute as $lommetacontribute) {
  13. //verificar que exista el namespace
  14. $namespacesmetacontri = $lommetacontribute->getNameSpaces(true);
  15. //define que namespace se busca
  16. $lommetacon = $lommetacontribute->children($namespacesmetacontri['lom']);
  17.  
  18. //*****variables capturadas*****
  19. // guarda en variable el contenido de la etiqueta role posicion 18
  20. $metarol = $lommetacon->role;
  21. }
  22. }
  23. }
  24. catch (Exception $e) {
  25. $metarol = "";
  26.  
  27. }
  28. } else {
  29. $metarol = "";
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement