Re: [dom4j-dev] Way to NOT strip consecutive whitespace in attributes?

2008-01-11 Thread Edwin Dankert
The attribute value gets normalised by the underlying XML Parser.

Please see: http://www.w3.org/TR/REC-xml/#AVNormalize

Kind regards,
Edwin

-
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/dom4j-dev


[dom4j-dev] Way to NOT strip consecutive whitespace in attributes?

2008-01-10 Thread PBurtis
After 2+ years, someone tripped a "bug" in our system.  An XML element 
similar to this


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
[email protected]
https://lists.sourceforge.net/lists/listinfo/dom4j-dev