On 06/12/2013 08:18 AM, yashpal jain wrote:
>
> Code is
>
> 1875 sub handle_char() {
> 1876 my ($parser, $text) = @_;
> 1877 debug("Value=$text");
> 1878 print "print value $text\n";
> 1879 }
>
> case 1
> XML data is
> <afffectedUsers>b11user3<&></afffectedUsers>
>
> it print
> print Value= b11user3
> print Value= <
> print Value= >
> print Value= &
>
> case 2
> XML data is
> <afffectedUsers>b11user4,b11user5#</afffectedUsers>
>
> it print
> print Value= b11user4,b11user5#
>
>
> My question is when we replacing special character in XML (in case 1
> b11user3<>&)
That is not the code you gave above. It's different.
Above: <&>
Here: <>&
Which one is it?
> it won't read complete sentence in one parse
Something to do with your software. Perhaps there is a setting that
makes it do this when it sees a character entity reference to a
character known to be a markup character (< and &).
> and it is breaking sentence when it find "<" ,"> &" but in
> case 2 it read complete sentence in one pass . why it break or print
> value when it get "<" ,">,&"
Ask the author?
Use better software?
///Peter