I'd like to use Dom4j and I have to read some XML request messages that are not fully XML conforming.
In particular, some of the elements do not have end-tags. As expected, Dom4j complains, with a messge such as: The element type "APPVER" must be terminated by the matching end-tag "</APPVER>". Nested exception: The element type "APPVER" must be terminated by the matching end-tag "</APPVER>". What can I do, to get dom4j or the xml parser to ignore this problem and "imply" the end-tags? Note that some of the XML tags are closed... If they contain only text data, then they are NOT closed, but if they contain other XML tags, then they are closed. As an example, see this XML block: <SIGNONMSGSRQV1> <SONRQ> <USERID>mlimotte <GENUSERKEY>N <APPID>QWIN <APPVER>0800 </SONRQ> <STMT> <ACCOUNT>123456789 <INCLUDE>Y </STMT> </SIGNONMSGSRQV1> <SONRQ> is closed (with </SONRQ>) because it contains other tags, but <APPVER> is not closed, because it contains only text. The requests are generated elsewhere, so it is not possible for me to change those. Any suggestions would be appreciated. Thanks, Marc ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ dom4j-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dom4j-user