M
mamatha.kumar
Hi
My xml is as follows
<?xml version="1.0" encoding="UTF-8"?>
<StreetName>A & B</StreetName>
But when I parse the xml using the characters fn of C++ SAX Xerces
parser(OS: solaris) , written below
characters( const XMLCh* const chars, const unsigned int leng
th)
{
string value = XMLString::transcode(chars);
if (currentElement=="")
return;
if (currentElement=="StreetName")
cout << "The StreetName is " << value << endl;
}
The output is
The StreetName is A
The StreetName is & B
Why is this happening instead of getting the StreetName as A & B.
What is the mistake am making ?
Any help is appreciated.
Thanks
Kumar.
My xml is as follows
<?xml version="1.0" encoding="UTF-8"?>
<StreetName>A & B</StreetName>
But when I parse the xml using the characters fn of C++ SAX Xerces
parser(OS: solaris) , written below
characters( const XMLCh* const chars, const unsigned int leng
th)
{
string value = XMLString::transcode(chars);
if (currentElement=="")
return;
if (currentElement=="StreetName")
cout << "The StreetName is " << value << endl;
}
The output is
The StreetName is A
The StreetName is & B
Why is this happening instead of getting the StreetName as A & B.
What is the mistake am making ?
Any help is appreciated.
Thanks
Kumar.