Results 1 to 2 of 2

Thread: modify XML file

  1. #1
    Fireholder is offline Member
    Join Date
    Apr 2011
    Posts
    2
    Rep Power
    0

    Default modify XML file

    I have XML file which is generated by Rapidminer. So I need to change some attributes in XML file to variables.This is the file:

    <?xml version="1.0" encoding="UTF-8" standalone="no" ?>
    - <process version="5.1.006">
    - <context>
    <input />
    <output />
    <macros />
    </context>
    - <operator activated="true" class="process" compatibility="5.1.006" expanded="true" name="Process">
    - <process expanded="true" height="-20" width="-50">
    - <operator activated="true" class="retrieve" compatibility="5.1.006" expanded="true" height="60" name="Retrieve" width="90" x="82" y="118">
    <parameter key="repository_entry" value="Golf" />
    </operator>
    <connect from_op="Retrieve" from_port="output" to_port="result 1" />
    <portSpacing port="source_input 1" spacing="0" />
    <portSpacing port="sink_result 1" spacing="0" />
    <portSpacing port="sink_result 2" spacing="0" />
    </process>
    </operator>
    </process>
    So I need to change "Golf" to a string variable i think.

  2. #2
    Fireholder is offline Member
    Join Date
    Apr 2011
    Posts
    2
    Rep Power
    0

    Default

    I figured out approaches to parse and modify XML file using DOM algorithm, appreciate your concern.:)

Similar Threads

  1. Replies: 0
    Last Post: 03-19-2011, 11:54 PM
  2. Modify text file
    By phantom06 in forum New To Java
    Replies: 1
    Last Post: 02-03-2011, 06:20 AM
  3. Read and modify text file
    By heartysnowy in forum New To Java
    Replies: 27
    Last Post: 11-19-2008, 10:03 AM
  4. How to Modify,Delete data in File Txt???
    By hungleon88 in forum Advanced Java
    Replies: 9
    Last Post: 09-24-2008, 03:19 AM
  5. Modify A* Algorithm
    By prakharbirla in forum Advanced Java
    Replies: 1
    Last Post: 02-13-2008, 06:25 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •