Menu

Tags with textcontent of one Space are empty

Lars
2010-09-28
2013-05-20
  • Lars

    Lars - 2010-09-28

    Hi,
    I'm am parsing an XML-Document where Tags have a textcontent that consists of one space. Unfortunatly that one space gets removed during the parsing so that the content seems to be empty. I've tried setCondensWhiteSpace(false) but that does not help. Since one Space is allowed as a content as per XML-Specs I must be missing something. Or is this a bug?

    Example:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <DOCUMENT>
    <STEUERSATZ>
    <SOME_TAG> </SOME_TAG>
    </STEUERSATZ>
    </DOCUMENT>

    Any Help would be very much appreciated. ;)

    Ciao
    Lars

     

Log in to post a comment.