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

java¶ÔXMLÎļþµÄ½âÎö¡¢½ÚµãµÄÔö¼Ó¡¢É¾³ý²Ù×÷×ܽá

ÏÈÌù´úÂë°É
¸Ðл£ºhttp://xranming.blog.163.com/blog/static/24204952009914104148872/
 http://www.diybl.com/course/3_program/java/javajs/20090303/157541.html
1¡¢java´úÂ룺
Ö÷Òª²ÉÓÃdomÀ´½øÐвÙ×÷
java¶Ôxml²Ù×÷ÓÐËÄÖÖ·½·¨£ºhttp://passmatlab.bokee.com/3455905.html
 package test;
import java.io.IOException;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
import javax.xml.transform.Transformer;
import javax.xml.transform.TransformerConfigurationException;
import javax.xml.transform.TransformerException;
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.NodeList;
import org.w3c.dom.Text;
import org.xml.sax.SAXException;
public class XmlOprate {
 Document doc;
 DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
 DocumentBuilder builder;
 NodeList imags;
 String path;
 
 public NodeList getImags() {
  return imags;
 }
 public void setImags(NodeList imags) {
  this.imags = imags;
 }
 
 /**
  * ¹¹Ôì·½·¨
  * @param path:xmlÎļþµÄ·¾¶
  * @param nodes£ºÒª½âÎöµÄxml½ÚµãÃû³Æ
  */
 public XmlOprate(String path) {
  super();
  this.path = path;
  System.out.println(System.getProperty("user.dir"));
 }
 /**
  * ½âÎöXML
  * @param path
  */
 public  void readXml(){
  try {
   builder = factory.newDocumentBuilder();
   Document doc=builder.parse(path);
   doc.normalize();
   
   NodeList imags =doc.getElementsByTagName("imags");
   this.setImags(imags);
   for (int i=0;


Ïà¹ØÎĵµ£º

ʹÓÃJNI¼¼ÊõʵÏÖJAVA³ÌÐòµ÷ÓÃdll

 JAVAµÄ¿çƽ̨µÄÌØÐÔÉîÊÜjava³ÌÐòÔ±ÃǵÄϲ°®,µ«ÕýÊÇÓÉÓÚËüΪÁËʵÏÖ¿çƽ̨µÄÄ¿µÄ,ʹµÃËüºÍ±¾µØ»úÆ÷µÄ¸÷ÖÖÄÚ²¿ÁªÏµ±äµÃºÜÉÙ,´ó´óÔ¼ÊøÁËËüµÄ¹¦ÄÜ,±ÈÈçÓëһЩӲ¼þÉ豸ͨÐÅ,ÍùÍùÒª»¨·ÑºÜ´óµÄ¾«Á¦È¥Éè¼ÆÁ÷³Ì±àд´úÂëÈ¥¹ÜÀíÉ豸¶Ë¿Ú,¶øÇÒÓÐһЩÉ豸³§ÉÌÌṩµÄÓ²¼þ½Ó¿ÚÒѾ­¾­¹ýÒ»¶¨µÄ·â×°ºÍ´¦Àí,²»ÄÜÖ±½ÓʹÓÃjava³ÌÐòͨ¹ý¶Ë¿Úº ......

¹ØÓÚ Java ÖеĽӿÚ


 ½Ó¿ÚÖв»¿ÉÒÔ¶¨Òå¹¹Ôì·½·¨
½Ó¿ÚÖÐÖ»ÄÜÓÐ public static final µÄ±äÁ¿ ºÍ public abstract µÄ·½·¨£¬ÆäËü¶¼²»¿ÉÒÔ¡£
ÀýÈ磺
´úÂëÀïÊÇÕâÑùдµÄ
public interface B{
   
    StringBuilder sb=null;
     
    void fun();
  & ......

Java & .NET

 http://www.gotapi.com/
 ÓïÑÔ£ºÓ¢Óï
 ¼ò½é£ºHTML,CSS,XPATH,XSL,JAVASCRIPTµÈAPIµÄ²éѯÍøÕ¾¡£
http://www.w3schools.com/
 ÓïÑÔ£ºÓ¢Óï
 ¼ò½é£ºW3CÖƶ¨µÄ±ê×¼ÖîÈçXML,HTML,XSLµÈµÈµÄÔÚÏßѧϰ½Ì³Ì¡£
http://www.xml.org.cn/
 ÓïÑÔ£ºÖÐÎÄ
 ¼ò½é£º¿ÉÒÔ˵ÊÇXMLµÄÖйú¹Ù·½Íø°É¡£W3C ......

1¡¢ÔõÑùѧϰJava?

 1.Á˽âJavaµÄÔ­Àí£º
       Ê×ÏÈÒªÁ˽âÕû¸öJavaµÄ´óÖ½ṹ¡¢¹¤×÷»·¾³¡¢ÀúÊ·¡£ÔÚÕâ¸ö¹ý³ÌÖÐÒª¸ãÃ÷°×Java´ÓÔ´´úÂëµ½×îºóÐéÄâ»úÀïÃæÖ´ÐеÄÒ»¸ö¹ý³ÌÊÇÔõÑùµÄ¡£
2.ѧϰJavaÓï·¨£º
      JavaÀïÃæÖ»ÓÐ50¶à¸ö¹Ø¼ü×ÖºÍһЩÔËËã·û¡£Óï·¨½á¹¹¾ÍÖ»ÓÐ˳Ðò¡¢Ìõ¼þ¡¢Ñ­»· ......

Javaʼþ»úÖÆ

 Ê¼þÔ´¸ºÔð²úÉúʼþ
ʼþÀࣺ¶¨ÒåʼþµÄÌØÕ÷£»
¼àÌýÆ÷½Ó¿Ú£º¶¨Òå¼àÌýÆ÷Ó¦¸ÃʵÏֵŦÄÜ£»
¼àÌýÆ÷£ºÊµÏÖ¼àÌýÆ÷½Ó¿Ú£¬¼àÌýʼþµÄ·¢Éú²¢×÷³öÏìÓ¦£»
ËùÓеÄʼþÀà±ØÐë¼Ì³ÐJavaʼþ»ùÀ࣬¼´java.util.EventObject£»EventObject(Object source)ÊÇEventObjectΨһµÄ¹¹Ôì·½·¨£¬ÕâÒâζ×ÅËùÓÐʼþ±ØÐëÔÚʵÀý»¯Ê±¾ÍÖ¸¶¨Ê¼þÔ´ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ