Nov 28, 2005

how to use the meaning of SettextContext in JDK 1.4.2?

Well, I'm running 1.4.2 and when I look at the JavaDoc, I don't see any such method for a node.The usual way to create text in an element (the equivalent of havingReceiving) is: Element runTypeElement = doc.createElement( "Run-Type" );
Text text = doc.createTextNode();
text.setData( "Receiving" );
runTypeElement.addChild( text );

resoure: http://forum.java.sun.com/thread.jspa?threadID=667593&messageID=3905410

No comments: