Hi all:
I have just started working on eclipse java in last few weeks in order to create an xml file :
Acutually i have to create three type of xml file not at once each one must have a buttons separatly :
type1 xml file is listed in attachemnt .
I want to do the following :
create three button for each xml type and 13 edittext to enter value in order to update the xml file .
for example :
SET cal : ( 3 edittext)
emaxt : ( 9 edittext)
uname : ( 1 edittext) in exmaple in attachemnt i have added ZLN20 and the other part is fixed :
firt line : X_10"/
second line : X_20"/
third line : X_30"/
I have started with this :
thanks for your help
I have just started working on eclipse java in last few weeks in order to create an xml file :
Acutually i have to create three type of xml file not at once each one must have a buttons separatly :
type1 xml file is listed in attachemnt .
I want to do the following :
create three button for each xml type and 13 edittext to enter value in order to update the xml file .
for example :
SET cal : ( 3 edittext)
emaxt : ( 9 edittext)
uname : ( 1 edittext) in exmaple in attachemnt i have added ZLN20 and the other part is fixed :
firt line : X_10"/
second line : X_20"/
third line : X_30"/
I have started with this :
Code:
package xml modify;
import java.io.File;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.transform.OutputKeys;
import javax.xml.transform.Transformer;
import javax.xml.transform.TransformerFactory;
import javax.xml.transform.dom.DOMSource;
import javax.xml.transform.stream.StreamResult;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
public class xmlupdate {
public static void main(String[] args) {
DocumentBuilderFactory icFactory = DocumentBuilderFactory.newInstance();
DocumentBuilder icBuilder;
try {
icBuilder = icFactory.newDocumentBuilder();
Document doc = icBuilder.newDocument();
Element mainRootElement = doc.createElementNS("!DOCTYPE MODIFYLMN SYSTEM","MODIFYLMN.dtd");
doc.appendChild(mainRootElement);
thanks for your help