ÇëÎÊJavaÈçºÎ°Ñxmlתtxt¸ñÊ½ÄØ£¿
½ñÌìÓöµ½Ò»¸öÎÊÌ⣬°ÑxmlÖеÄÖµ×°µ½.txt¸ñʽµÄÎļþÖС£
ÎÒĿǰÏëµ½Á½ÖֱȽϱ¿µÄ·½·¨£º1.¿ÉÒÔͨ¹ýxmlspy±à¼¹¤¾ßʵÏÖ
2.ͨ¹ý°Ñxmlת³ÉJavabean£¬È»ºóתµ½excelÖУ¬ÔÙ´Óб£´æÖØÃüÃûΪ.txt¸ñʽµÄÎļþ.
ÓÉÓÚ´¦ÀíxmlµÄÂß¼±È½Ï¸´ÔÓ£¬ÎÒµ£ÐÄ1´¦ÀíÆðÀ´²»ÊǺܺã¬ÔÚJava³ÌÐòÖоͲ»Ò»Ñù£¬Âß¼¸´ÔÓµãû¹ØÏµ¡£µ«ÊÇÎÒ²»ÖªµÀµ½µ×Ôõôת»»£¬²ÅÊÇ×î¼òµ¥¡£
Çë¸ßÊÖÖ¸µãÖ¸µã£¬»¹ÓÐÆäËû¸üºÃµÄ·½·¨£¬»òÕß½èÖúapi£¬°üʲôµÄ¡£
ÆÚ´ýÖС£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£
¾Ù¸öÀý×Ó°É
Ò»¸öxmlÄÚÈÝÊÇʲô£¿Ð´µ½txtÎļþºóÄÚÈݱä³Éʲô£¿
<com.setecusa.hibernate.tblsalesorder.Tblsalesorder>
<fldInvNumber>A105-1502697-5500215</fldInvNumber>
<fldItemNumber>64373200000000</fldItemNumber>
<fldDate>2009-11-09 00:00:00.0 CST</fldDate>
<fldNote>phone=317 276 5363</fldNote>
<tblcustomers>
<fldCustomerName>Daniel Pereira Leal neto</fldCustomerName>
<fldAddress1>651 STOCKBRIDGE DR</fldAddress1>
<fldAddress2> </fldAddress2>
<fldCity>WESTFIELD</fldCity>
<fldSt>IN</fldSt>
<fldZipcode>46074-8822</fldZipcode>
<fldCountry>US</fldCountry>
<fldEmail>condea@gmail.com</fldEmail>
</tblcust
Ïà¹ØÎÊ´ð£º
ÎÒµÄjava applet ǶÈëhtmlºóÎÞ·¨ÏÔʾ£¬¶øÓÃappletviewerÏÔʾÕý³£ÎªÊ²Ã´£¬»¹ÓоÍÊÇÓÃhtml converterת»¯ºó¿ÉÒÔÏÔʾ£¬ÎªÊ²Ã´£¿Çë´óÏÀ´Í½Ì£¡
HTML code:
<HTML>
<HEAD>
<TITLE>TEST.HTML< ......
µ±ÖªµÀÒ»¸öÈÕÆÚ£¬ÈçºÎ°ÑÕâ¸öÈÕÆÚËùÔÚÑ®µÄǰºóÁ½¸öÈÕÆÚÈ¡³ö
±ÈÈçÊäÈë20090905£¬¾ÍÊäÈë20090901 20090910
Êä³ö20090901 20090910
È¡µÃÌìÊýºó×÷Ò»ÏÂÅжÏÔÙ°ÑÕâ¸ö·½·¨ÓÃÏÂvoid set(int field, int value)
......
Êý¾Ý¿â±íÖÐÓÐÒ»ÁУ¨TranXml£©ÀàÐÍÊÇxml£¬´æ´¢µÄÊÇÀàËÆ
<fathernode>
<a>aaa
</a>
<b>bbb
</b>
</fathernode>
µÄÐÅÏ¢£¬²¢ÇÒͨ¹ý²éѯ·½· ......