Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

facing issue when we read data from XML

1 view
Skip to first unread message

yashpa...@gmail.com

unread,
Jun 12, 2013, 4:25:30 AM6/12/13
to
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&lt&amp';&gt;</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&lt;&gt;) it won't read complete sentence in one parse and it is breaking sentence when it find "&lt;" ,"&gt;" but in case 2 it read complete sentence in one pass . why it break or print value when it get "&lt;" ,"&gt;"
0 new messages