comment utiliser un parseur xml

comment utiliser un parseur xml - XML/XSL - Programmation

Marsh Posté le 21-01-2014 à 14:45:40    

Bonjour,
 
J'ai un projet qui consiste à extraire les listes URLs d'un fichier xml dans le but de les utiliser après en java pour les analyser et effectuer des attaques sur chaque URL. Vous pouvez voir ci-joint le fichier xml et les URLs entre la balise <requestHeader>. Ma question est comment extraire les URls avec java.
Merci pour votre aide  
 
<?xmlversion="1.0"encoding="UTF-8"?>
<https>
<httpclass="object">
<cookieParams type="string">
security=high;PHPSESSID=ditia2lp2397djfur655f44dd3
</cookieParams><note type="string"/>
<requestBody type="string"/>
<requestHeader type="string">
GET http://192.168.229.128/dvwa/dvwa HTTP/1.1
Host: 192.168.229.128
User-Agent: Mozilla/5.0 (X11; Linux i686; rv:14.0) Gecko/20100101 Firefox/14.0.1
Accept:text/css,*/*;q=0.1
Accept-Language:en-us,en;q=0.5
Proxy-Connection: keep-aliveReferer: http://192.168.229.128/dvwa/login.php
Cookie: security=high; PHPSESSID=ditia2lp2397djfur655f44dd3
DNT: 1
Content-length: 0
</requestHeader>
<responseBody type="string"/>
<responseHeader type="string"> 0
</responseHeader>
<httpclass="object">
<cookieParams type="string">
security=high; PHPSESSID=ditia2lp2397djfur655f44dd3
</cookieParams>
<note type="string"/>
<requestBody type="string"/>
<requestHeader type="string">
GET http://192.168.229.128/dvwa/dvwa/css HTTP/1.1
Host: 192.168.229.128
User-Agent: Mozilla/5.0 (X11; Linux i686; rv:14.0) Gecko/20100101 Firefox/14.0.1
Accept:text/css,*/*;q=0.1
Accept-Language:en-us,en;q=0.5
Proxy-Connection: keep-alive
Referer: http://192.168.229.128/dvwa/login.php
Cookie: security=high; PHPSESSID=ditia2lp2397djfur655f44dd3
DNT: 1
Content-length: 0
</requestHeader>
<responseBody type="string"/>
<responseHeader type="string"> 0
/responseHeader>
</http>
</https>

Reply

Marsh Posté le 21-01-2014 à 14:45:40   

Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed