throw new EdkException("Package file [" + packageFile.getPath() + "] does not exist!");\r
}\r
try {\r
- XmlObject spdDoc = XmlObject.Factory.parse(packageFile);\r
- //\r
- // Verify SPD file, if is invalid, throw Exception\r
- //\r
- if (! spdDoc.validate()) {\r
- throw new EdkException("Package Surface Area file [" + packageFile.getPath() + "] format is invalid!");\r
- }\r
+ XmlObject spdDoc = GlobalData.parseXmlFile(packageFile);\r
//\r
// We can change Map to XmlObject\r
//\r