응용 프로그램에서 XML 파일을 처리해야합니다. &<
의 내 응용 프로그램 XML 제대로 던지는 예외를로드 할 수 없습니다XML 파일의 값 바꾸기
<DiagnosisStatement>
<StmtText>ST &</StmtText>
</DiagnosisStatement>
때문에 다음과 같이 :
An error occurred while parsing EntityName. Line 92, position 24.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)
at System.Xml.XmlTextReaderImpl.Throw(String res)
at System.Xml.XmlTextReaderImpl.ParseEntityName()
at System.Xml.XmlTextReaderImpl.ParseEntityReference()
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.XmlLoader.LoadNode(Boolean skipOverWhitespace)
at System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc)
at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
at System.Xml.XmlDocument.Load(XmlReader reader)
at System.Xml.XmlDocument.Load(String filename)
at Transformation.GetEcgTransformer(String filePath, String fileType, String Manufacture, String Producer) in D:\Transformation.cs:line 160
가 지금은 모든 항목을 교체 할 필요가 다음과 같이 몇 번 우리는 값 XMLS을받을 &<
을 '및 <'으로 설정하면 XML을 예외없이 성공적으로 처리 할 수 있습니다.