From: "Donald Ball" <[EMAIL PROTECTED]> > On Mon, 2002-07-15 at 15:39, Limotte, Marc [IT] wrote: > > I'd like to use Dom4j and I have to read some XML request messages that are > > not fully XML conforming. > > then it's not xml. it's a structured markup language that resembles xml, > it may even be sgml, but it's not xml. > > > 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. > > i think you would have to write your own parser, honestly. you might > find inspiration from andy clark's nekohtml parser, which can convert > most html into xml. see http://www.apache.org/~andyc/. or you might > manually massage your data into xml and then parse it.
Agreed. In fact I think Andy's NeckoHTML parser might do just what you need - its certainly worth a try James __________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.comm ------------------------------------------------------- This sf.net email is sponsored by: Jabber - The world's fastest growing real-time communications platform! Don't just IM. Build it in! http://www.jabber.com/osdn/xim _______________________________________________ dom4j-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dom4j-user