Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if ($loml->metametadata) {
- try {
- // etiqueta METAMETADATA
- //hace el tercero analisis del namespace mas externo PARA HIJOS DE METAMETADATA
- foreach ($loml->metametadata as $lommetameta) {
- //verificar que exista el namespace
- $namespacemeta = $lommetameta->getNameSpaces(true);
- //define que namespace se busca
- $lommeta = $lommetameta->children($namespacemeta['lom']);
- //hace el tercero analisis del namespace mas externo PARA HIJOS DE CONTRIBUTE
- foreach ($lommeta->contribute as $lommetacontribute) {
- //verificar que exista el namespace
- $namespacesmetacontri = $lommetacontribute->getNameSpaces(true);
- //define que namespace se busca
- $lommetacon = $lommetacontribute->children($namespacesmetacontri['lom']);
- //*****variables capturadas*****
- // guarda en variable el contenido de la etiqueta role posicion 18
- $metarol = $lommetacon->role;
- }
- }
- }
- catch (Exception $e) {
- $metarol = "";
- }
- } else {
- $metarol = "";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement