Bonjour,
quand je parse un doc xml avec sax, j'obtient systèmatiquement des exception IOException. je ne comprend pas pourquoi.
vUrl est un vector, l'instruction addElement plante dessu je ne comprend pas
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13 public void startElement(String nameSpaceURI, String localName, String rawName, Attributes attributs) throws SAXException { if(localName.equals("filiale")){ for (int index = 0; index < attributs.getLength(); index++) { // on parcourt la liste des attributs if(attributs.getLocalName(index).equals("url")){ vUrl.addElement(attributs.getValue(index)); } } } }
Partager