Android SAX Parser with newline character sample?
问题 I have a PHP webservice that returns an XML output, and one of the Tag contains a multiline "\n" String data. My problem is, all "\n" is being removed after I pass the XML data through the default SAX parser, but I really dont want this to happen! I want to retain all newline "\n" characters within the Tag so that I can extract it and display them in a simple TextView or EditText. I tried a couple of workarounds like substituting the "\n" with "&x#dA;" or something, but I cant get it to work