voilci mon code
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
 
SAXParserFactory factory = SAXParserFactory.newInstance();
factory.setValidating(true);
 
// creation du parser
SAXParser parser;
 
parser = factory.newSAXParser();
 
//mon handler perso
HandlerWF hand = new HandlerWF();
 
ByteArrayInputStream aLire = new ByteArrayInputStream(<mon message xml au format String>
        .getBytes());
 
parser.parse(aLire, hand);
voici mon erreur:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
org.xml.sax.SAXParseException: Relative URI "xml_dtd/neid_cde.dtd"; can not be resolved without a base URI.
j'ai bien compris qu'il faut que je mette a jour l'uri de mon stream avec quelque chose comme ?