背景:java读取xml文件,xml文件内容只有“<?xml version="1.0" encoding="UTF-8"?>”一行 java读取该xml文件时,报“org.xml.sax.SAXParseException: Premature end of file”错误. java解析xml文件时抛出异常: org.xml.sax.SAXParseException: Premature end of file.at com.sun.org.apa…
using System; using System.Collections.Generic; using System.Text; using System.Xml; using System.IO; namespace ConfigMgrTest { public class SystemConfig { #region"基本操作函数" /// <summary> /// 得到程序工作目录 /// </summary> /// <returns>…