Re: [android-developers] Re: SAX- \n \r not recognized

2010-11-26 Thread Frank Weiss
i have a node called emial under that content is the attribute, in that content I'll get some text that text is have \n and \r. It's not clear what you're saying. I suppose it would be an issue trying to put control characters into an XML attribute. It would help if you posted a snippet of

[android-developers] Re: SAX- \n \r not recognized

2010-11-26 Thread DanH
Yep, if you're expecting whitespace characters to make it through XML encode/decode, don't. In general they're ignored (except perhaps for CDATA), so if you want them preserved you should use some sort of substitution code. On Nov 22, 9:57 pm, Android Humanoid droid.hu...@gmail.com wrote: Hi

[android-developers] Re: SAX- \n \r not recognized

2010-11-25 Thread Jens
A single LF is the expected output for CR LF sequences. Normalization is part of the deal with XML. http://www.w3.org/TR/REC-xml/#sec-line-ends In short: Find a non-conformant XML parser or encode your content. On 23 Nov, 06:04, Android Humanoid droid.hu...@gmail.com wrote: SAXParserFactory

[android-developers] Re: SAX- \n \r not recognized

2010-11-22 Thread Android Humanoid
SAXParserFactory spf = SAXParserFactory.newInstance(); SAXParser sp = spf.newSAXParser(); XMLReader xr = sp.getXMLReader(); SearchHandler sh=new SearchHandler(); xr.setContentHandler(sh); String query=xml query;