At 15:20 08/01/2004 +0100, you wrote:
Be carrefull ultraedit can transform in entity automatically (if it's like textpad) when you write your data. Use notepad for more security. Do the test Sebastien ----- Original Message ----- From: "Lionel Crine" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, January 08, 2004 2:45 PM Subject: [entities] Problem
Hi,
You're my last chance to find my problem.
I have an XML document which contains some XML entities (", >, etc ). According to the element the entities are, the document is well or badly parsed. I'm not talking about entities into attributes but only into elements.
All the elements wich may contain this entities are #PCDATA.
Here is the parser method :
DocumentBuilder db = null; db = DocumentBuilderFactory.newInstance().newDocumentBuilder(); myDocument = db.parse(stream);
If I write : <element>"</element> (Ultraedit) [Fatal Error] :1:644: Element type "module" must be followed by either attribute specifications, ">" or "/>".
The crazy thing is that the document is well displayed in IE or mozilla AND there are other " in other elements of the document which don't crash the parser.
If I write <element>&quot;</element>(Ultraedit)
The parser is OK. But IE and mozilla displayed <element>"</element>.
By the way, this problem is only happening in a transformer. I don't know if this is related. This transformer gets the document from an XMLDB, convert it into a DOM and is returned into the flow.
Please what's happening ?
Lionel
Lionel CRINE Ingénieur Systèmes documentaires Société : 4DConcept 22 rue Etienne de Jouy 78353 JOUY EN JOSAS Tel : 01.34.58.70.70 Fax : 01.39.58.70.70
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Lionel CRINE Ingénieur Systèmes documentaires Société : 4DConcept 22 rue Etienne de Jouy 78353 JOUY EN JOSAS Tel : 01.34.58.70.70 Fax : 01.39.58.70.70
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]