Trying to load a string value into a XML document in C#. This code has been working fine up until recently. I cannot figure out why it is now failing...
strJournalReturn = ServiceConnect.PostInventoryJournal(userName, password,
type, effectiveDate, fromWarehouse, toWarehouse, department, project, asset,
workOrder, jobNumber, reason, lTransactions);
if (!strJournalReturn.Contains("INTERNALERROR"))
{
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.LoadXml(strJournalReturn);
}
the strJournalReturn value is...
"<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n<JOURNAL-
SERVICE>\n<ERROR>1</ERROR>\n<ERRORMESSAGES>\n<ERRORMESSAGE>DEPARTMENT is
required for direct issues & reserves with
backorders</ERRORMESSAGE>\n</ERRORMESSAGES>\n</JOURNAL-SERVICE>"
This is throwing an exception "NotSupportedException". Any thoughts/ideas would be appreciated.
I apologize in advance if the detail on this post is not enough as this is my first time posting here.