whitespace management with DOM element

2009-12-14 Thread Thayer_Nicholas
Hello, I have an element that usually contains alpha characters, but depending upon the user input can contain a single space. I'm using the DocumentBuilderFactory to create an instance of DocumentBuilder, and then generating DOM elements from that and serializing the output to a file. I'm

RE: whitespace management with DOM element

2009-12-15 Thread Thayer_Nicholas
Hello Michael, Thanks for the response. After more investigation, I found that the desired text was indeed being stored with the DOM Text element, but that the serializer was truncating its value. After quite a bit of searching on the web, I found that setting the 'xml:space=preserve' attribu