Lines Matching full:element

6 The patch file is itself an XML file.  It can have any root element name,
9 where the fix should be applied. A <targetFile> element is required in the
11 applied to, though the targetFile element is handled outside of this script.
15 top level element.
19 1) Add an element:
20 Put in the element to add, along with the type='add' attribute
21 and an xpath attribute specifying where the new element should go.
27 This will add a new enumerationType element child to the root element.
29 2) Replace an element:
30 Put in the new element, with the type='replace' attribute
31 and the XPath of the element you want to replace.
39 This will replace the enumerator element with name XBUS under the
40 enumerationType element with ID TYPE.
42 3) Remove an element:
43 Put in the element to remove, with the type='remove' attribute and
44 the XPath of the element you want to remove. The full element contents
45 don't need to be specified, as the XPath is what locates the element.
51 This will remove the enumerator element with name DIMM under the
52 enumerationType element with ID TYPE.
54 4) Add child elements to a specific element. Useful when adding several
72 element with ID TYPE.
74 5) Replace a child element inside another element, useful when replacing
79 element should be used to match on so the replace can be done.
96 elements specified, inside of the enumerationType element with
107 def delete_attrs(element, attrs): argument
110 del element.attrib[a]
160 print(" Adding element " + target.tag + " to " + xpath)
171 print(" Removing element " + xpath)
177 + " so can't remove this element"
182 print(" Replacing element " + xpath)
188 + " so can't replace this element"
198 + "' child element to "
211 # Use the key to figure out which element to replace
227 + "' element in path "