Hi,
I think you are facing this issue due to xml that is not in good format...Here is a work around for you. Just clean up xml, before parsing it....just replace xml's '&', with "& amp;"(ignore the space between "& amp;")..... this may fix your issue.... as this kinds of issue could arrise due to appearance of '&' in the XML data obtained.
eg: if your string (xmlString ), is your XML data, then
xmlString = xmlString.replaceAll( "&", "& amp;" );
[please ignore the space between "& amp;" as i could not produce the same word when saved to the form.
]
will give you an error free XML string for parsing.
Hope it may saved your time atleast few minutes
Regards,
Sudhin Philip.