xml 解析出错
'.', hexadecimal value 0x00, is an invalid character. Line 629, position -3749.
在使用XDocument.Parse(xml)出现这个错误,不知道是否是不规则字符引起的。
堆栈信息:
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.Throw(String res, String[] args)
at System.Xml.XmlTextReaderImpl.Throw(Int32 pos, String res, String[] args)
at System.Xml.XmlTextReaderImpl.ThrowInvalidChar(Int32 pos, Char invChar)
at System.Xml.XmlTextReaderImpl.ParseNumericCharRefInline(Int32 startPos, Boolean expand, BufferBuilder internalSubsetBuilder, Int32& charCount, EntityType& entityType)
at System.Xml.XmlTextReaderImpl.ParseText(Int32& startPos, Int32& endPos, Int32& outOrChars)
at System.Xml.XmlTextReaderImpl.FinishPartialValue()
at System.Xml.XmlTextReaderImpl.get_Value()
at System.Xml.Linq.XContainer.ReadContentFrom(XmlReader r)
at System.Xml.Linq.XContainer.ReadContentFrom(XmlReader r, LoadOptions o)
at System.Xml.Linq.XDocument.Load(XmlReader reader, LoadOptions options)
at System.Xml.Linq.XDocument.Parse(String text, LoadOptions options)
at System.Xml.Linq.XDocument.Parse(String text)
at DB.SourcePagesProfile.SaveCVActive(String xml) in D:\parserProject\TransferEngine\NBDataTransferService\DB\SourcePagesProfile.cs:line 23
at NBDataTransferWebService.DownLoadDataFromSH.DownloadSourceResume(String sourcePagesXml, String type) in D:\parserProject\TransferEngine\NBDataTransferService\NBDataTransferWebService\DownLoadDataFromSH.asmx.cs:line 63