components/policy/tools/template_writers/writers/xml_writer_base_unittest.py
def GetXMLOfChildren(self, parent):
    '''Returns the XML of all child nodes of the given parent node.
    Args:
      parent: The XML of the children of this node will  be returned.

    Return: XML of the chrildren of the parent node.
    '''
    raw_pretty_xml = ''.join(
        child.toprettyxml(indent='  ') for child in parent.childNodes)
    # Python 2.6.5 which is present in Lucid has bug in its pretty print
    # function which produces new lines around string literals. This has been
    # fixed in Precise which has Python 2.7.3 but we have to keep compatibility
    # with both for now.
    text_re = re.compile('>\n\s+([^<>\s].*?)\n\s*</', re.DOTALL)
    return text_re.sub('>\g<1></', raw_pretty_xml)
Returns the XML of all child nodes of the given parent node.
    Args:
      parent: The XML of the children of this node will  be returned.

    Return: XML of the chrildren of the parent node.
    
Returns the XML of all child nodes of the given parent node.
Returns the XML of all child nodes of the given parent node .
def GetXMLOfChildren(self, parent):
    raw_pretty_xml = ''.join(
        child.toprettyxml(indent='  ') for child in parent.childNodes)
    text_re = re.compile('>\n\s+([^<>\s].*?)\n\s*</', re.DOTALL)
    return text_re.sub('>\g<1></', raw_pretty_xml)
def GetXMLOfChildren ( self , parent ) : raw_pretty_xml = '' . join ( child . toprettyxml ( indent = '  ' ) for child in parent . childNodes ) text_re = re . compile ( '>\n\s+([^<>\s].*?)\n\s*</' , re . DOTALL ) return text_re . sub ( '>\g<1></' , raw_pretty_xml )
Returns the XML of all child nodes of the given parent node.
Returns the XML of all child nodes of the given parent node .
'''Returns the XML of all child nodes of the given parent node.
    Args:
      parent: The XML of the children of this node will  be returned.

    Return: XML of the chrildren of the parent node.
    ''' # Python 2.6.5 which is present in Lucid has bug in its pretty print # function which produces new lines around string literals. This has been # fixed in Precise which has Python 2.7.3 but we have to keep compatibility # with both for now.
self
parent
The XML of the children of this node will  be returned.
The XML of the children of this node will be returned .