Note that there are some explanatory texts on larger screens.

plurals
  1. POjava jdom xml copy a section of xml
    text
    copied!<p>Let me first show you the xml structure:</p> <pre><code>&lt;config&gt; &lt;engine&gt; &lt;eid&gt;1&lt;/eid&gt; &lt;somechild&gt;text&lt;/somechild&gt; &lt;somemodechild&gt; &lt;subchild&gt;subchbild&lt;/subchild&gt; &lt;somemorechild&gt; &lt;/engine&gt; &lt;eid&gt;1&lt;/eid&gt; &lt;somechild&gt;text&lt;/somechild&gt; &lt;somemodechild&gt; &lt;subchild&gt;subchbild&lt;/subchild&gt; &lt;somemorechild&gt; &lt;/engine&gt; &lt;engine&gt; &lt;eid&gt;1&lt;/eid&gt; &lt;somechild&gt;text&lt;/somechild&gt; &lt;somemodechild&gt; &lt;subchild&gt;subchbild&lt;/subchild&gt; &lt;somemorechild&gt; &lt;/engine&gt; &lt;/engine&gt; &lt;eid&gt;1&lt;/eid&gt; &lt;somechild&gt;text&lt;/somechild&gt; &lt;somemodechild&gt; &lt;subchild&gt;subchbild&lt;/subchild&gt; &lt;somemorechild&gt; &lt;/engine&gt; &lt;engine&gt; &lt;eid&gt;1&lt;/eid&gt; &lt;somechild&gt;text&lt;/somechild&gt; &lt;somemodechild&gt; &lt;subchild&gt;subchbild&lt;/subchild&gt; &lt;somemorechild&gt; &lt;/engine&gt; &lt;/config&gt; </code></pre> <p>Here <code>&lt;config&gt;</code> is the root element. I have to create a GUI to edit xml element. I have done it, using JSP and have a made a GUI for each <code>&lt;engine&gt;</code> in the same page, go the each user can edit a particular <code>&lt;engine&gt;</code> and then save the <code>&lt;config&gt;</code> elements, and to save the changes to that particular <code>&lt;engine&gt;</code> tag i am using eid to segregate the particular <code>&lt;engine&gt;</code>. </p> <p>Now, I want to rewrite the particular <code>&lt;engine&gt;</code> being edited in a separate xml file. How can I achieve it using jdom?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload