That's invalid XML. You closed the file with </LENGTH> The first element wraps everything.
-----Original Message----- From: Mark Van Orman [mailto:[EMAIL PROTECTED] Sent: Monday, March 17, 2003 10:39 AM To: [EMAIL PROTECTED] Subject: DOM Question Hi guys, I have a question regarding parsing a Document, if I have a doc of the form <LENGTH>345</LENGTH> <?xml version="1.0" encoding="ISO-8859-1"?> <RootElem> <header/> <request/> </RootElem> Is there a way I can parse this using dom. I tried, but it keeps throwing an exception saying "not valid after content". If I manualy take out the <LENGTH> tags, offcourse everything works fine. Is there a cleaner way(using the api) to do it other than having to search for LENGHT and deleting before passing the content to the Dom parser? Thanks, Mark --------------------------------------------------------------------- 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]
