Re: xml pull junit tests
Stefan Haustein <[email protected]>
| Newsgroups | gmane.text.xml.xmlpull.devel |
|---|---|
| Organization | Univ. Dortmund FB 4 LS 8 |
| Message-ID | <[email protected]> |
> I like that it closes out the document (being intelligent enough to close > tags along the way). It's very convenient to be deep in the tree and simply > close things out and know that it is well formed. So I vote to keep the > behavior. In my opinion, this leads to sloppy programming, and it is inconsistent with closeTag, which does not write implicit close tags. A cleaner option would be to add a method that closes a given number of tags. This could also help for writing exception traces to a stream for debugging purposes: Where handling an exception, this new method could be used to close all pending elements except from <html> and <body> (for xhtml documents), allowing to write a stack trace to the stream properly. Best, Stefan -- Stefan Haustein Univ. Dortmund, FB 4, LS 8 tel: +49 231 755 2499 Baroper Str. 301 fax: +49 231 755 5105 D-44221 Dortmund (Germany) www-ai.cs.uni-dortmund.de