Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

javaÈçºÎ½âÎöxmlÎļþ£¿¸ø¸ö¼òµ¥µÄÀý×Ó£¡¼±£¡

javaÈçºÎ½âÎöxmlÎļþ£¿
Òª°²×°Ê²Ã´Èí¼þ¹¤¾ß£¿
µ¼ÈëÄÄЩ°ü£¿
Ìṩһ¸ö¼òµ¥µÄÀý×Ó¡£
¼±£¡


Äã¿ÉÒÔ¿´¿´Õâ¸ö
http://peng-jian-ming.javaeye.com/blog/185742
»òÕß
http://hi.baidu.com/wch20088082008/blog/item/6723d112c711f8085baf5331.html

dom4j
http://51jsp.cn/post/327.html

http://peng-jian-ming.javaeye.com/blog/185742 ÐèÒª¼Óʲô°ü£¿ÔÚeclipseÀïÃæ£¬ÓкöàµÄ´í£¿

À´¸ö¾ßÌåµÄ£¬ÎÒûѧ¹ý¡£
ÐèÒªµ¼Èëʲô°ü£¬°Ñjava´úÂë·Åµ½EclipseÀïÃæ£¬×ÜÊDZ¨ºÜ¶àµÄ´í£¿

¼±£¡¼±£¡ÐèÒªÖ§³Ö¡£

Ò»°ãÓÃDOM4J
ÐèÒª
import org.dom4j.Document;
import org.dom4j.Element;
import org.dom4j.Node;
import org.dom4j.io.SAXReader;


Java code:
public void generateData(){
long lasting = System.currentTimeMillis();
try {
out1 = new OutputStreamWriter(new FileOutputStream(new File("C:/data.sql"),true),"UTF-8");
bw = new BufferedWriter(out1);
File f = new File(srcFile);
SAXReader reader = new SAXReader();
Document doc = reader.read(f);
Element root = doc.getRootElement();
Element foo;
for (Iterator i = root.elementIterator("COMPANY"); i.hasNext();) {
foo = (Element) i.next();


Ïà¹ØÎÊ´ð£º

java http ÎÊÌâ - Java / Java EE

ÎÊÌâÃèÊö£ºÐ´ÈÕÖ¾¹¦ÄÜ£¬Ð´ºÃµÄдÈÕÖ¾·þÎñ£¬ÆäËûÓû§Í¨¹ýhttpµ÷Ó÷þÎñ£¬´«Èë²ÎÊý£¬È»ºó¼Ç¼ÈÕÖ¾£¬
  ÎҵķþÎñ¸ÃÔõôд£¬ ±ðÈËÔõôͨ¹ýhttpµ÷ÓÃÎҵķþÎñ£¬ÎÒÓÃwebserviceдºÃÁËÒ»¸ö£¬¿ÉÊDz¢·¢ÓÐÉÏÏߣ¬Ïë¸ÄÓ ......

Java RandomAccessFile дÈëtxtÎļþ - Java / Java SE

ÓÃRandomAccessFileдÈëTXTÎļþ²é¿´Ê±ÊÇÂÒÂ룬ÇëÎÊÓÐʲô·½·¨¿ÉÒÔд³É¿É¶ÁµÄÎļþ£¬²»ÊÇÓÃÆäËûµÄÎļþ²Ù×÷£¬¾ÍÊÇÖ»ÓÃRandomAccessFileµÄ·½·¨ÊÇ·ñ¿ÉÒÔʵÏÖ£¿
Java code:
import java.io.*;
public class RandomAcce ......

¹ØÓÚjsp ÒýÈëºóÒ³ÃæÌø×ªµÄÎÊÌâ - Java / Java EE

ÎÊÌâÊÇÕâÑùµÄ£º
   
ÎÒÓÐÒ»¸öÎļþnagiv.jsp ÁíÒ»¸öÎļþfailure.jsp°üº¬Ëû£¬Í¬Ê±nagivÎļþÖÐÓÐÒ»¸ö¿ÉÒÔÌø×ªµ½yy.jspµÄcommandButton£¬µ«ÊÇÎÒ½«failureÖеã»÷nagivÖеÄÄĸöcommandButton£¬Ò²Ãæ²»»áÌø×ª ......

mysqlÁ¬½Ótomcat - Java / Web ¿ª·¢

ÎÒÒѾ­°´Õս̳ÌÉÏÅäÖÃtomcatµÄserver.xml
<Context path = "/POS" docBase = "POS" debug = "5" reloadable = "true" crossContext = "true" workDir = &quo ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ