# This is an XML API that uses a syntax similar to XPath, but it is written in\r
# standard python so that no extra python packages are required to use it.\r
#\r
-# Copyright (c) 2011, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2011 - 2014, Intel Corporation. All rights reserved.<BR>\r
#\r
# This program and the accompanying materials are licensed and made available \r
# under the terms and conditions of the BSD License which accompanies this \r
#\r
import xml.dom.minidom\r
import re\r
+import codecs\r
from Logger.ToolError import PARSER_ERROR\r
import Logger.Log as Logger\r
\r
#\r
def XmlParseFile(FileName):\r
try:\r
- XmlFile = open(FileName)\r
+ XmlFile = codecs.open(FileName, 'rb')\r
Dom = xml.dom.minidom.parse(XmlFile)\r
XmlFile.close()\r
return Dom\r