| Prueba :: xpath PRUEBA XML y contenido HTML y estructura con expresiones XPATH |
Descargar ahora |
Prueba :: xpath Clasificación y resumen
- Licencia:
- Perl Artistic License
- Nombre del editor:
- David E. Wheeler
- Sitio web del editor:
- http://search.cpan.org/~dwheeler/
Prueba :: xpath Etiquetas
Prueba :: xpath Descripción
Pruebe el contenido XML y HTML y la estructura con expresiones XPATH Use la potencia de las expresiones XPATH para validar la estructura de su XML y HTML Documents.Synopsis Use Test :: Más pruebas => 5; Usar prueba :: xpath; My $ XML = <'xml';
hola Bienvenido a mi guarida.
xml My $ tx = prueba :: xpath-> nuevo (xml => $ XML); $ tx-> OK ('/ html / cabeza', 'debería haber una cabeza'); $ tx-> es ('/ html / cabeza / título', 'hola', 'el título debe ser correcto'); # Recursiendo en un documento: mi @css = qw (foo.css bar.css); $ tx-> OK ('/ HTML / cabeza / estilo ', Sub {My $ CSS = Shift @csss; Shift-> es ('./@src', $ CSS, "Estilo SRC debe ser $ CSS");}, 'debería tener estilo'); # Mejor aún, use Perlx :: MethodCallWithBlock: Use Perlx :: MethodCallWithBlock; mi @css = qw (foo.css bar.csss); Use Perlx :: MethodCallWithBlock; $ TX-> OK ('/ html / cabeza / estilo ', 'debería tener estilo') {My $ CSS = Shift @css; Shift-> es ('./@src', $ CSS, "Style SRC debe ser $ CSS"); }; Requisitos: · Perl
Prueba :: xpath Software relacionado