Lines Matching refs:child
114 for child_id, child in expected_children.items():
120 self.AssertEquivalentNodes(child, actual_children[child_id])
153 for child in element.childNodes:
154 if child.nodeType == Node.ELEMENT_NODE:
155 if child.tagName == 'properties':
157 child.parentNode is not None,
160 child_id = child.parentNode.getAttribute('name') + '-properties'
163 child.tagName in self.identifying_attribute,
164 'Encountered unknown element <%s>' % child.tagName,
166 child_id = child.getAttribute(
167 self.identifying_attribute[child.tagName]
170 children[child_id] = child
171 elif child.nodeType in [Node.TEXT_NODE, Node.CDATA_SECTION_NODE]:
174 child.nodeType == Node.CDATA_SECTION_NODE
175 or not child.nodeValue.isspace()
177 children['detail'] = child.ownerDocument.createCDATASection(
178 child.nodeValue
181 children['detail'].nodeValue += child.nodeValue
183 self.fail('Encountered unexpected node type %d' % child.nodeType)
232 for child in element.childNodes:
233 if child.nodeType == Node.CDATA_SECTION_NODE:
235 cdata = re.sub(source_line_pat, '\\1*\n', child.nodeValue)
237 child.nodeValue = re.sub(
240 for child in element.childNodes:
241 if child.nodeType == Node.ELEMENT_NODE:
242 self.NormalizeXml(child)