Bonjour,
Je souhaite affiche le contenu text d'une balise xml dans une page jsp, or, l'affichage de l'html dans ma page jsp s'arrete au premier retour chariot rencontré dans le fichier xml.


Le ContentHandler :
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
17
 
        public void startElement(String uri, String qName, String lName, Attributes atts) {
 
            if (lName.equals("paragraphe")) {
                if (atts.getValue("num").equals(numParag)) {
                    bParag = true;
                }
 
            }
        }
 
        public void characters(char[] data, int start, int end) {
            if (bParag) {
                sbHTML =  new String(data, start, end);
            }
            bParag = false;
        }


Le fichier xml parsé
<?xml version="1.0" encoding="UTF-8" ?>
<aide xmlnssi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="aide.xsd">
<paragraphe titre="Composition" num="0">
<![CDATA[
<font face="Arial" size=4 color="#008000"><A name="Ecran"><b>Composition de l'écran</b></A></font> (ici retour chariot)
<ul><font face="Arial" size=2><li>Un cadre permanent à gauche proposant les options suivantes&nbsp;:</LI>
<p>
<ul>
...
]]>
Merci de votre aide