ipjyo
asked on
Is it possible to escape & while loading xml?
I have an & character in one of the xml nodes as below.
<dependents>9 & 5</dependents>
When I try to load the file as below, it is giving an error "An error occured while parsing EntityName.". Is it possible to escape this character and load successfully? Thank yu.
m_InputXMLDoc = new XmlDocument();
if (System.IO.File.Exists(Inp utFile))
{
m_InputXMLDoc.Load(InputFi le);
}
<dependents>9 & 5</dependents>
When I try to load the file as below, it is giving an error "An error occured while parsing EntityName.". Is it possible to escape this character and load successfully? Thank yu.
m_InputXMLDoc = new XmlDocument();
if (System.IO.File.Exists(Inp
{
m_InputXMLDoc.Load(InputFi
}
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Cool. Thanks for your help.
ASKER
Thanks again.