Hi,
I have tried that without luck... ?

 indst.getChildNodes().item(1).appendChild(doc.createTextNode("CVF"));
      if (indst.getChildNodes().item(1).getChildNodes().item(1) != null) {
        network = 
indst.getChildNodes().item(1).getChildNodes().item(1).getNodeValue();
      }
      System.out.println(network);  // output = null
 

---
Jess Nielsen
Management Consultant / System Developer

Ementor Denmark A/S
E-mail: [EMAIL PROTECTED]
Phone: (+45) 24 69 35 81
               (+45) 70 10 08 44

WTF? :o)




[EMAIL PROTECTED]
27-07-01 13:01
Please respond to xerces-j-dev

 
        To:     [EMAIL PROTECTED]
        cc: 
        Subject:        Antwort: more node value problems



Hi,

you have to create a new text node and append it to the element node.

Document doc=...;
Element elem=...; // contains e.g. element <Service>
elem.appendChild(doc.createTextNode("aService"));

The result is an element <Service>aService</Service>.

Regards, Bj�rn.


>Thanx both of you it seems to work, but how do I set nodeValue then?
>
>/ Jess
>
>---
>Jess Nielsen
>Management Consultant / System Developer
>
>Ementor Denmark A/S
>E-mail: [EMAIL PROTECTED]
>Phone: (+45) 24 69 35 81
>               (+45) 70 10 08 44
>
>WTF? :o)


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to