XmlParserMisc.py revision 4fd606d1f5abe38e1f42c38de1d2e895166bd0f4
## @file
# This file is used to parse a xml file of .PKG file
#
# Copyright (c) 2011, Intel Corporation. All rights reserved.<BR>
#
# This program and the accompanying materials are licensed and made available
# under the terms and conditions of the BSD License which accompanies this
# distribution. The full text of the license may be found at
#
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#
'''
XmlParserMisc
'''
## ConvertVariableName()
# Convert VariableName to be L"string",
# input of UCS-2 format Hex Array or L"string" (C style.) could be converted successfully,
# others will not.
#
# @param VariableName: string need to be converted
# @retval: the L quoted string converted if success, else None will be returned
#
#
# check for L quoted string
#
return VariableName
#
# check for Hex Array, it should be little endian even number of hex numbers
#
return None
TransferedStr = ''
Index = 0
if SecondByte != 0:
return None
return None
## IsRequiredItemListNull
#
#
# @param ItemList: The list of items to be checked
# @param XmlTreeLevel: The error message tree level
#
## Get help text
#
# @param HelpText
#
def GetHelpTextList(HelpText):
HelpTextList = []
return HelpTextList