Hello I'm currently using DocumentHelper.parseText(String) to generate a Document. Despite how hassle-free this approach is, I've come across a problem.
My schema defines a text element into which my upstream application places text which must not be normalised. The schema does not define xml:space="preserve", so dom4j normalises the text element. I guess this is done for a reason, but I'm not sure why. I tried to make sense of the W3C spec ... Section 2.10 says that the XML processor must pass all characters that are not markup to the application. Does that include my text element? Section 3.3.1 talks about normalising attributes. A text element isn't a node attribute, right? While I'm keen to understand the answer to these questions, my real question is: Can I turn off text element normalisation when using DocumentHelper.parse(String)? Or, is there another approach I can take with the DOM4J API to get around this issue? Regards Jem -- Nothing can satisfy the man who is not satisfied with a little. ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ _______________________________________________ dom4j-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dom4j-user