Add a part of xml code snippet under a node in python -


want add following code snippet under node of xml(different) file:

<httpsamplerproxy guiclass="httptestsamplegui" testclass="httpsamplerproxy" testname="http request" enabled="true">           <boolprop name="httpsampler.postbodyraw">true</boolprop>           <elementprop name="httpsampler.arguments" elementtype="arguments">             <collectionprop name="arguments.arguments">               <elementprop name="" elementtype="httpargument">                 <boolprop name="httpargument.always_encode">false</boolprop>                 <stringprop name="argument.value">{sample_post_body}                 </stringprop>                 <stringprop name="argument.metadata">=</stringprop>               </elementprop>             </collectionprop>           </elementprop>           <stringprop name="httpsampler.domain">base_sample_url</stringprop>           <stringprop name="httpsampler.port">sample_port</stringprop>           <stringprop name="httpsampler.connect_timeout"></stringprop>           <stringprop name="httpsampler.response_timeout"></stringprop>           <stringprop name="httpsampler.protocol"></stringprop>           <stringprop name="httpsampler.contentencoding"></stringprop>           <stringprop name="httpsampler.path">sample_path</stringprop>           <stringprop name="httpsampler.method">unknown</stringprop>           <boolprop name="httpsampler.follow_redirects">true</boolprop>           <boolprop name="httpsampler.auto_redirects">false</boolprop>           <boolprop name="httpsampler.use_keepalive">true</boolprop>           <boolprop name="httpsampler.do_multipart_post">false</boolprop>           <boolprop name="httpsampler.monitor">false</boolprop>           <stringprop name="httpsampler.embedded_url_re"></`enter code here`stringprop>         </httpsamplerproxy> 

i using python , xml.etree manipulate xml


Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -