JAVA ÖÐÓÃXMLʵÏÖINIÎļþ¸ñʽµÄ½â¾ö·½°¸
ÕâƪÎÄÕ±»×ªÔصĴÎÊý×î¶à£¬Æäʵ´úÂë¼òªµÃÎÒ×Ô¼º¶¼¿´²»ÏÂÈ¥¡£Ö»²»¹ý·¢±íÕâƪÎÄÕÂʱºÜ¶àÈËÐèÒªÕâ¸ö¹¦ÄÜ¡£
Õ⼸Ììд¸öÊý¾Ý¿â²éѯ·ÖÎöÆ÷£¬ÒªÓõ½XML¼Ç¼Óû§×¢²áµÄÊý¾Ý¿âÁ¬½ÓµØÖ·¡¢¶Ë¿ÚµÈÐÅÏ¢£¬×ʼÏëÓÃjavaµÄpropertieÀàÀ´Íê³É¡£µ«propertie²»Ö§³Ö[С½áÃû--¼üÖµÃû--¼üÖµ]ÕâÖֽṹ£¬Èç¹ûÒª¼Ç¼Óû§×¢²áµÄ¶à¸öÊý¾Ý¿âÐÅÏ¢µÄ»°£¬propertieÖоͱØÐëÓÃ[С½áÃû.¼üÖµÃû=¼üÖµ]ÕâÖÖ¸ñʽ½øÐмǼ£¬ºóÀ´Óõ½xml£¬Íê³ÉÁËÀàËÆiniÎļþ¶ÁÈ¡ºÍ±£´æµÄ¹¦ÄÜ£¬É¾³ý¹¦ÄÜÄ¿Ç°»¹Ã»×ö£¬ÒªÊµÏֺܼòµ¥£¬ËùÒÔ¾Íû°üº¬ÔÚ´úÂëÀïÃæÁË¡£
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<SERVER>
<CRM>
<IP>162.105.167.4</IP>
<PORT>5000</PORT>
<CHARSET>cp850</CHARSET>
<DBTYPE>Sybase</DBTYPE>
<DBNAME>BB_CRM</DBNAME>
</CRM>
<JYGS>
<IP>162.105.167.2</IP>
<PORT>7000</PORT>
<CHARSET>cp850</CHARSET>
<DBTYPE>Sybase</DBTYPE>
<DBNAME>JYGS_JXC</DBNAME>
</JYGS>
</SERVER>
ÆäÖÐCRMºÍJYGSÊÇÊý¾Ý¿âÁ¬½ÓÃû£¬ÏÂÃæµÄ×Ó½ÚµãÓÐIP¡¢¶Ë¿Ú¡¢Á¬½Ó×Ö·û¼¯¡¢Êý¾Ý¿âÀàÐÍ¡¢È±Ê¡µÇ¼µÄÊý¾Ý¿â¡£
³ÌÐò´úÂëÈçÏ£º
import javax.xml.parsers.DocumentBuilderFactory;
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;
import org.w3c.dom.NodeList;
public class ReadWriteXML {
public ReadWriteXML(String FileName){
t
Ïà¹ØÎĵµ£º
Part 2£ºWeb²ã¹¦ÄÜÔöÇ¿
ÔÚJavaEE6ÖУ¬Web²ãÓÐÏÔÖøµÄ¹¦ÄÜÔöÇ¿¡£ÈçÉÏÎÄËùÊö£¬JavaaEE6ƽ̨µÄÄ¿±êÖ®Ò»¾ÍÊÇÔöÇ¿Æä¿ÉÀ©Õ¹ÐÔ£¬¶øÓë¿ÉÀ©Õ¹ÐÔÏà¹ØµÄÁ½¸ö¹Ø¼ü¼¼Êõ±ãÊÇ£ºWebƬ¶Ï£¨web fragments£©¡¢¹²Ïí¿ò¼Ü¿É²å°ÎÄÜÁ¦£¨shared framework pluggability£©£¬¶øÕâÁ½¸öÐÂÌØÐÔÊÇÓÉservlet3.0¼¼Êõ×é¼þÌṩµÄ¡£Servlet 3.0, JSR 315
ÊÇserv ......
½ñÌìÅöµ½ÁËÒ»¸öºÜ±ä̬µÄÎÊÌ⣬дÁËÒ»¸öºÜ¼òµ¥µÄHelloWord.java£¬ÄÚÈÝÈçÏ£º
package com.yanjiuyanjiu;
public class HelloWorld {
public static void main(String args[]) {
System.out.println("Hello World!");
}
}
ÔÚeclips ......
LADyRÊÇÎ÷°àÑÀÒ»¸öʵÑéÊÒÓиöweb extractionµÄÏîÄ¿ http://ladyr.es/index.php?id=75 µ±È»Õâ¸öÏîÄ¿»¹Ã»³öÀ´£¬²»¹ýÀïÃæÓиö½é
ÉÜÓÃjavaǶÈëä¯ÀÀÆ÷µÄ½Ì³Ì£¨http://ladyr.es/wiki/wiki/XPCOMGuide£©ºÜ²»´í¡£ËùÒÔ°ÑÕâƪÎÄÕ·Òëһϣ¬Ë³±ã˵˵×Ô¼ºÑ§Ï°Õâƪ
ÎÄÕÂÖµµÃ×¢ÒâµÄµØ·½¡£ËµÃ÷Ò»ÏÂÎÒʹÓõIJÙ×÷ϵͳÊÇwindows xp¡£ÏÂÃ涼 ......
4 ÔÚjava´úÂëÀïǶÈëFirefox3
ÏÖÔÚ¿ÉÒÔÈ¥ÓÃÒ»ÏÂÓÐÓõÄÀý×ÓÁË¡£Ê×ÏÈÎÒÃÇÔÚÒ»¸öjava³ÌÐòÀïʹÓÃSWTÀ´Ç¶ÈëÒ»¸öMozillaä¯ÀÀÆ÷¡£ÏÖÔÚ£¬ÎÒÃÇ¿ÉÒÔʹÓÃ
org.eclipse.swt.browser.BrowserÀàÀ´ÊµÀý»¯£ºbrowser = new Browser(shell, SWT.MOZILLA); ÔÚÕâ֮ǰ£¬ÎÒÃÇÐèҪʹÓÃATFÏîÄ¿
£¬ÒÔ¼°Ò»ÏÂATF²å¼þ¡£·Ç³£ÐÒÔË£¬ÏÖÔÚÎÒÃDz»ÐèÒ ......
¿ÉÒÔÓÃ×öcsdn±¸·Ý£¬Õâ¸ö·½·¨À©³äÒÔºó×ö¸öcsdn±¸·Ý¹¤¾ßµ¹ÊDz»´í
package com.tag;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.BufferedReader;
import ja ......