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
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
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
SAXParserFactory spf = SAXParserFactory.newInstance();
SAXParser sp = spf.newSAXParser();
XMLReader xr = sp.getXMLReader();
SearchHandler sh=new SearchHandler();
xr.setContentHandler(sh);
String query=xml query;
4 matches
Mail list logo