xpath                
            Encontrar elementos que contengan atributos específicos.
        
        
            
    Buscar..
Encuentra todos los elementos con un determinado atributo.
Imagina el siguiente XML:
<root>
    <element foobar="hello_world" />
    <element example="this is one!" />
</root>
 /root/element[@foobar]
  y devolverá el <element foobar="hello_world" /> . 
Encuentra todos los elementos con un determinado valor de atributo.
Imagina el siguiente XML:
<root>
    <element foobar="hello_world" />
    <element example="this is one!" />
</root>
 La siguiente expresión XPath:
/root/element[@foobar = 'hello_world']
  devolverá el <element foobar="hello_world" /> . 
También se pueden utilizar comillas dobles:
/root/element[@foobar="hello_world"]
    
    
    
    
    Modified text is an extract of the original Stack Overflow Documentation
        Licenciado bajo CC BY-SA 3.0
        No afiliado a Stack Overflow