PBurtis
Thu, 10 Jan 2008 15:12:15 -0800
After 2+ years, someone tripped a "bug" in our system. An XML element
similar to this
<WceRequest uniqueName="prog 02" ..... >
failed. There are two spaces in "prog 02". That had never happed
before. (typically our uniqueName doesn't even have spaces)
We use dom4j 1.4 and simply instatiate the document, then pop the
attribute ala:
final Attribute attribute = element.attribute(attributeName);
returnValue = attribute.getText();
Well, looks like somebody strips consecutive blanks so we get "prog 02"
(note just 1 space not 2), which then doesn't match the name in
the database so we say we can't find it.
Is there a way to NOT strip consecutive whitespace in an attribute?
TIA
philby------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________ dom4j-dev mailing list dom4j-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dom4j-dev