on 12-19-2008 10:38 AM
Hi,
Iu2019ve an xml file without containing any values inside the tags. I need to get the values from the text file and set the values inside the xml file. When I try to set the string variable inside the setValueNode() using DOM parser, itu2019s not setting any values inside the xml file.
Please help me on this..
Regards
Vineela
Hi,
I am doing conversion from EDIFACT format to xml format.
I am writing this code using core java. So I am using xmlparsing to convert my data. Iu2019ve one Hash table with me. I need to get the values from there and populate those values into xml file.
Regards
Vineela
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I am using core java here.
refIS:reference xml file.
Document doc = parserXML(refIS);
Node root=doc.getDocumentElement();
writeDocumentToOutput(root, 0);
Here for this root node Iu2019ll have to set string value.
Regards,
vineela
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Use the Text http://java.sun.com/j2se/1.4.2/docs/api/org/w3c/dom/Text.html
Ex:
Document document = // handle to the document
Element lbl = document.createElement("Label");
Text text=null;
text= document.createCDATASection("Test");
lbl.appendChild(text);
Regards
Ayyapparaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
71 | |
26 | |
9 | |
9 | |
7 | |
6 | |
4 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.