Re: XML and JAVA
Kevin Jones <[email protected]> Thu, 18 Jul 2002 20:12:16 +0100
| Newsgroups | gmane.comp.windows.devel.java.general |
|---|---|
| Message-ID | <000601c22e8f$0905a0c0$0900a8c0@milo> |
If you can use JAXP, call setExpandEntityReferences(false) on the DocumentBuilderFactory, the default value for this is 'true'. If you're not/cannot using JAXP check out the features of your parser, they should let you disable this expansion, Kevin Jones Developmentor www.develop.com > -----Original Message----- > From: Java Discussion [mailto:[email protected]] On=20 > Behalf Of Bernhard Gruber > Sent: 18 July 2002 18:36 > To: [email protected] > Subject: [JAVA] XML and JAVA >=20 >=20 > hallo all >=20 > I have following problem : >=20 > I convert a String into an XML Document this way >=20 >=20 > DOMParser parser =3D new DOMParser(); > parser.parse(new InputSource(new StringReader(xml))); > result =3D parser.getDocument(); >=20 > the Problem is, that the String contains HTTPEntities like=20 > "ü" (=3D=3D=20 > "=FC" for example) -> > the resulting XML contains then a "=FC" instead of "ü" >=20 > anybody an idea ?? >=20 > tnx >=20 > bernie >=20 > You can read messages from the JAVA archive, unsubscribe from=20 > JAVA, or subscribe to other DevelopMentor lists at=20 http://discuss.develop.com. You can read messages from the JAVA archive, unsubscribe from JAVA, or subscribe to other DevelopMentor lists at http://discuss.develop.com.