def xmlIfExtGetElementValueFragments (self, ignoreEmtpyStringFragments):
     elementValueList = []
     for childTextNode in self.__xmlIfExtGetChildTextNodes():
         elementValueList.append(childTextNode.data)
     if ignoreEmtpyStringFragments:
         elementValueList = filter (lambda s: collapseString(s) != "", elementValueList)
     if elementValueList == []:
         elementValueList = ["",]
     return elementValueList
Example #2
0
 def xmlIfExtGetElementValueFragments (self, ignoreEmtpyStringFragments):
     elementValueList = []
     for childTextNode in self.__xmlIfExtGetChildTextNodes():
         elementValueList.append(childTextNode.data)
     if ignoreEmtpyStringFragments:
         elementValueList = filter (lambda s: collapseString(s) != "", elementValueList)
     if elementValueList == []:
         elementValueList = ["",]
     return elementValueList
 def xmlIfExtGetElementValueFragments (self, ignoreEmtpyStringFragments):
     elementValueList = []
     if self.text != None:
         elementValueList.append(self.text)
     for child in self.getchildren():
         if child.tail != None:
             elementValueList.append(child.tail)
     if ignoreEmtpyStringFragments:
         elementValueList = filter (lambda s: collapseString(s) != "", elementValueList)
     if elementValueList == []:
         elementValueList = ["",]
     return elementValueList