QUESTION: char content chunking in ContentHandler.characters() 2003-10-03 - By Meh-Lit Kim
Hi, Is there any guarantee that the org.xml.sax.ContentHandler.characters() callback will not break a whitespace-separated 'word' into different chunks ? e.g., given the following XML fragment : <NumberList> 111 222 333 444 555 666 </NumberList> The possible values for the string corresponding to the input param 'ch[start] ... ch[start+length-1]' in the callback method org.xml.sax.ContentHandler( char[] ch, int start, int length ) may be something like : "111 222 333" "444 555 666" but will NEVER be something like : "111 22" "2 333" "444 5" "55 666" Thanks, /Meh
--------------------------------- Do you Yahoo!? The New Yahoo! Shopping - with improved product search <DIV>Hi,</DIV> <DIV> </DIV> <DIV>Is there any guarantee that the org.xml.sax.ContentHandler.characters() callback</DIV> <DIV>will not break a whitespace-separated 'word' into different chunks ?</DIV> <DIV> </DIV> <DIV>e.g., given the following XML fragment :</DIV> <DIV> </DIV> <DIV> <NumberList></DIV> <DIV> 111 222 333</DIV> <DIV> 444 555 666</DIV> <DIV> </NumberList></DIV> <DIV> </DIV> <DIV>The possible values for the string corresponding to the input param</DIV> <DIV>'ch[start] ... ch[start+length-1]' in the callback method</DIV> <DIV> </DIV> <DIV> org.xml.sax.ContentHandler( char[] ch,  ; int start, int length )</DIV> <DIV> </DIV> <DIV>may be something like :</DIV> <DIV> "111 222 333"</DIV> <DIV> "444 555 666"</DIV> <DIV> </DIV> <DIV>but will NEVER be something like :</DIV> <DIV> "111 22"</DIV> <DIV> "2 333"</DIV> <DIV> "444 5"</DIV> <DIV> "55 666"</DIV> <DIV> </DIV> <DIV>Thanks,</DIV> <DIV>/Meh</DIV><p><hr SIZE=1> Do you Yahoo!?<br> <a href="http://shopping.yahoo.com/?__yltc=s%3A150000443%2Cd%3A22708228%2Cslk %3Atext%2Csec%3Amail">The New Yahoo! Shopping</a> - with improved product search
|
|