Given an XML schema I probably shouldn't change I'm creating a javax.xml.validation.Schema and a javax.xml.validation.ValidatorHandler. I'm using the...
That's because <foo bar=100> is not XML. Any XML parser should cough on that -- unless you have special options, like HTML portability turned on. Attributes...
You might take a look at TagSoup: A SAX parser in Java for nasty, ugly HTML http://www.idealliance.org/papers/xml02/slides/cowan/cowan.ppt or search google for...
You're right about the quotes, but then <foo bar=100/> is as much wrong as <foo bar=100> </foo> and apparently the first one is ok. Jon is right that these 2...
Hmm, I just checked http://www.w3.org/TR/xhtml1/ and according to that doc a <br></br> is fine as well although C.2. Empty Elements Include a space before the...
Yeah, sorry. I should have written: <foo bar="100"/> and <foo bar="100"> </foo> The problem seems to be the way the xsd is written. This would probably work:...
Sorry, I'm a little groggy with a cold today. Please see this page: http://www.w3schools.com/Schema/schema_complex_empty.asp I think what you are seeing is...
I'm pretty sure that's what my problem is. I have written an ErrorHandler that glosses over the problem. But it seems fragile to me since it involves...
On Mon, 6 Oct 2008 10:59:22 -0400, "Jon Strayer" <jon.strayer@...> ... Hadn't seen this before. Looks nice, but also a lot of effort (initially) to set...
I'll have to look into Spring's mock framework. DOF does look like a lot of work to set up. I haven't been able to decide that it's worth the effort. It seems...
... The Object Mother or test data builder approaches work pretty well to lessen the creation overhead: http://nat.truemesh.com/archives/000714.html ...
OK, this is admittedly a simple issue, that I should be able to figure out on my own, but I'm spending too much time scratching my head on it and figured I'd...
I think a valid question is should io.close() ever except? What can you do about it? What would you do? Yes it's bad to swallow exceptions, but if Java ...
My thought would be: try { out.flush(); } finally { out.close(); } But my assumption is that you don't care which call failed. ... -- Esse Quam Videre To Be,...
I thought close() did a flush()? ... -- Curtis Cooley curtis.cooley@... =============== Once a programmer had a problem. He thought he could solve it...
Yep. Check the JavaDocs. "Close the stream. This is done by flushing the stream and then closing the underlying output stream." ... [Non-text portions of this...
In case this helps, and something I didn't know, from the Java6 API docs: "The flush method of OutputStream does nothing." FileOutputStream overrides close)_...
http://java.sun.com/j2se/1.4.2/docs/api/java/io/OutputStream.html#close() "Closes this output stream and releases any system resources associated with this...
... Javadoc says: "Closes this output stream and releases any system resources associated with this stream. The general contract of close is that it closes the...
... Jakarta IOUtils has a closeQuietly() method that will ignore exceptions during close(). I think they provide that because they agree with Jon that close()...