Lines Matching +full:- +full:replace
7 and uses XML attributes to specify if the elements in the file should replace
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.
33 <enumerator type='replace'
39 This will replace the enumerator element with name XBUS under the
57 Use a type attribute of 'add-child' and specify the target parent with
60 <enumerationType type="add-child" xpath="enumerationType/[id='TYPE']">
74 5) Replace a child element inside another element, useful when replacing
77 Use a type attribute of 'replace-child' and the xpath attribute
79 element should be used to match on so the replace can be done.
81 <enumerationType type="replace-child"
94 This will replace the <enumerator> elements with the names of
117 parser.add_argument("-x", dest="xml", help="The input XML file")
118 parser.add_argument("-p", dest="patch_xml", help="The patch XML file")
119 parser.add_argument("-o", dest="output_xml", help="The output XML file")
124 sys.exit(-1)
181 elif patch_type == "replace":
188 + " so can't replace this element"
193 elif patch_type == "add-child":
203 elif patch_type == "replace-child":
206 " E> Patch type is replace-child, but"
211 # Use the key to figure out which element to replace
246 sys.exit(-1)