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

XMLÉú³ÉJavaÀà

ÏÖÔÚÊÖÀïÓÐÒ»¸öXMLÎļþ£¬ÐèÒª¸ù¾ÝÕâ¸öXMLÎļþµÄ½á¹¹À´¶¨ÒåJavaÀàºÍÊý¾Ý¿â½á¹¹¡£
ÒòΪXMLÌ«¹ý¸´ÔÓ£¬Èç¹ûÊÖ¶¯copyдJavaµÄ»°ºÜÂé·³¡£
ÇëÎʸ÷λ¸ßÊÖÓÐûÓÐʲô¹¤¾ß»òÕß·½·¨¿ÉÒÔʵÏÖÕâ¸ö¹¦ÄÜ¡£

±ÈÈçÓиöXML
<peoples>
  <people>
    <name>aa </name>
    <age>12 </age>
    <books>
      <book>
        <name>java </name>
        <price>20.0 </price>
      </book> 
    </books>
  </people>

</peoples>

ÎÒÒªÉú³ÉÁ©¸öJavaÀà
Ò»¸öÊÇ
Class People
{
  private String name;
  private int name;
  private List <book> books;

}

Class People
{
  private String name;
  private Float price;

}
Castor or using the axis2  or cxf


¿ÉÒÔ¿¼ÂÇÓÃXSLT£¬µ«ÊÇÄ£°å»¹ÊÇÒª×Ô¼ºÐ´£¬ÒòΪÄãµÄת»»²¢·ÇÖ÷Á÷¸ñʽ£¬Ä¿Ç°Ã»ÓÐÊʺÏÄãµÄת»»¹¤¾ß¡£

¿´Ñù×Óûʲô°ì·¨ÁË¡£
ÏÖÔÚ¿ªÊ¼×ÅÊÖ×Ô¼ºÐ´Java
ͨ¹ýoutputstreamÀ´Éú³ÉÎļþÁË£¬Ã÷ÌìдºÃÁË·¢ÉÏÀ´£¡


Ïà¹ØÎÊ´ð£º

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

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

ÔõôÓÃJavaʵÏÖ¶¨Ê±Ö´ÐÐij³ÌÐò - Java / Java SE

ÎÒÏëÓÃJavaдһ¸ö³ÌÐò£¬¾ÍÊÇÎÒÏëÔÚÔËÐдúÂëºó£¬ÔÚÖ¸¶¨µÄʱ¼ä´ò¿ªÄ³³ÌÐò£¬ÀýÈçÎÒÔËÐдúÂëºó£¬½²ÔÚ12£º00´ò¿ª"D:\Program Files\Tencent\QQ2009\Bin\QQ.exe"Õâ¸ö³ÌÐò£¬Çó¸ßÈËÖ¸µã¡£»¹ÓпÉÄܵϰÔÚÖ¸¶¨µÄʱ¼ä ......

¹ØÓÚJavaµÄѧϰ - Java / JavaÏà¹Ø

ÎÒÏëÎÒjavaÕâÒ»·½Ãæ·¢Õ¹£¬ÓÐÄÄһλ¸ßÊÖ¿ÉÒÔ¸æËßÎÒ£¬Ïë³ÉΪһÃûJAVA±à³Ì¸ßÊÖ£¬Ëû±ØÐëҪѧϰµÄ֪ʶÂ𣿱ÈÈç˵ÎÒѧÍêÁËJAVAµÄ»ù´¡ÖªÊ¶Ö®ºóÎҸðÑÄ¿¹â·ÅÔÚÄÄÒ»·½Ã棬½ÓÏÂÀ´ÎÒÔÚѧϰÓйØJAVAµÄʲô֪ʶ£¿ÅóÓÑà ......

ÀûÓÃC#±àдtxtת»¯µ½xmlµÄ³ÌÐò

txt ºÍXML ¸ñʽÏàÓ¦
²»½èÖúDataSet
µ¼Èë¶ÁÈ¡TXTÎļþ
È»ºóÖ±½ÓдÈëXML(ͬһÎļþ,²»Í¬Êý¾Ý,µÝÔöÔ­Êý¾ÝûÓб»¸²¸ÇÇé¿öÏÂÔö¼ÓÊý¾Ý.)
½Ì¸öÒªµã»ò×îºÃÊÇÓиö´úÂëÌáʾµÄ
¹ý·ºÃºº °ï¸öæÈö^^
²»»á£¬°ïÂ¥Ö÷ ......

execlÔõôµ÷ÓÃjava³ÌÐò - C/C++ / CÓïÑÔ

ÈçÌ⣬C/C++ÖеÄexeclÔõôµ÷ÓÃдºÃµÄjava³ÌÐò£¬
execl("/opt/java1.5/bin/java","MyClass",NULL);
ÕâÑùµÄ²»ÐÐŶ¡£

²»»á.

ÔËÐÐjava³ÌÐò
ÕÒ¹¤¾ß²é¿´Ò»ÏÂÄǸö³ÌÐòµÄÃüÁîÐÐ

ËÑË÷Ï£ºjni ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ