Hi Nicholas,

I'm not sure I follow the issue you're having. Can you give a concrete
example?

Thanks.

Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: mrgla...@ca.ibm.com
E-mail: mrgla...@apache.org

<thayer_nicho...@emc.com> wrote on 12/14/2009 01:02:22 PM:

> 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 seeing the resulting serialized file is simply an empty XML
> element.  Is it possible to configure the DOM builder to preserve
> the spaces if they exist, or does this go against the XML spec?  If
> so, can you help me understand how to make that happen?
>
> Thanks,
> Nicholas

Reply via email to