Problème avec XMLWriter.startElement and JDK 5.0 => pas de nom de balise ??
"Corinne KUBLER" <[email protected]> Mon, 21 Jan 2008 16:36:39 +0100
| Newsgroups | gmane.text.xml.french.tech |
|---|---|
| Message-ID | <00aa01c85c43$6a630e60$450415ac@D20314> |
Bonjour à tous !
Jai un souci avec la classe XMLWriter. Jai créé une classe pour résumer
mon problème :
import java.io.CharArrayWriter;
import org.xml.sax.SAXException;
import com.sun.xml.bind.marshaller.XMLWriter;
public class JAXBTest {
public static void main(String[] args) throws SAXException {
CharArrayWriter writer = new CharArrayWriter();
XMLWriter xmlWriter = new XMLWriter(writer, "UTF-8");
xmlWriter.startElement("test");
xmlWriter.endElement("test");
System.out.print(writer.toString());
}
}
Ce code renvoie avec le JDK 5.0 </> (librairie: jaxb-ri.jar ou version JAXB
2.0 jaxb-impl.jar => même résultat)
Ce code renvoie avec le JDK 1.4 <test/> (library: jaxb-ri.jar)
On va migrer notre application de JDK 1. 4 à JDK 5.0 et pas mal de code
utilise XMLWriter. Alors jai besoin de savoir doù provident le problème.
Merci pour votre lecture.
Cordialement,
Corinne Kubler
CONFIDENTIALITI
Les informations contenues dans ce document sont de nature confidentielle et
` l'usage exclusif des destinataires privus.
Si vous l'avez regu par erreur, son utilisation sous quelque forme qu'elle
soit est strictement interdite. Nous vous
remercions dans ce cas de ditruire le message et de prendre contact avec son
expiditeur. L'intigriti des messages n'itant
pas assurie sur Internet, Experian ne saurait jtre tenu responsable si ce
message s'avirait modifii ou falsifii.
CONFIDENTIAL
The information contained in this message and any attachments hereto are
confidential and intended solely for the addressee(s)
intended. If you are not the intended addressee of this message, you are
hereby notified that you have received this document
in error. Any review, dissemination, distribution, or copying of this
message is prohibited. Please delete it and inform the
sender immediately. Thank you for your help. Messages are susceptible to
alteration. Experian shall not be liable for the
message if altered, changed or falsified.