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

ÔÚJavaÖÐʹÓÃXQuery£ºSOAÖвÙ×÷Êý¾ÝµÄ×î¼Ñ·½·¨

Çá±ãµÄÊý¾Ý´«Ê䷽ʽһֱÊÇÃæÏò·þÎñ¹¹¼Ü£¨SOA£©Ëù¹Ø×¢µÄ½¹µã£¬¶ÔÓÚSOAÀ´Ëµ£¬Ôø¾­·¢Õ¹³öÁ˺ܶ෽±ãµÄÊý¾Ý´«Êäģʽ¡£µ«×Ô´ÓXMLÁ÷Ðкó£¬ÕâЩ´«Êäģʽ¶¼Öð½¥ÏûʧÁË£¬Òò´Ë£¬ÏÖÔÚµÄSOAÖеĻù±¾µÄÊý¾Ý´«Êäģʽ¶¼ÊÇ»ùÓÚXMLµÄ¡£ËäÈ»XML¿ÉÒÔÓÃÓÚÏó·þÎñ·¢ËÍÇëÇó¡¢´Ó·þÎñÆ÷»ñµÃÏìÓ¦»ò´«µÝÊý¾Ý±íÖ®ÀàµÄ²Ù×÷£¬µ«ÕâЩ²Ù×÷¶¼Ì«¼òµ¥£¬¶øÓÐʱÎÒÃÇÐèÒª¶ÔXMLÊý¾Ý½øÐи´ÔӵIJÙ×÷£¬Èç¹ûÒªÏóSQL²éѯÊý¾Ý±íÒ»ÑùÀ´²éѯXMLÊý¾Ý¡£Õâ¾ÍÒªÓõ½±¾ÎÄËùÌÖÂÛµÄXQuery¼¼Êõ¡£
±¾ÎÄÖ÷ÒªÌÖÂÛXQueryÒÔ¼°Ïà¹ØµÄÆäËû¼¼Êõ£¬ÈçXQJ£¨»ùÓÚXQueryµÄJava API£©¡£±¾ÎÄÊ×ÏȽéÉÜÁËʲôÊÇXQueryºÍXQJ£¬²¢Ê¹¶ÁÕß¿ÉÒÔÁ˽âʹÓÃÕâЩ¼¼ÊõµÄ»ù±¾·½·¨¡£È»ºóͨ¹ý¾ßÌåµÄʵÀýÀ´Ê¹¶ÁÕßÕæÕýÕÆÎÕXQueryºÍXQJ¼¼Êõ¡£
Ò»¡¢Ê²Ã´ÊÇXQuery
XQueryÊÇÒ»ÖÖ²éѯXMLÊý¾ÝµÄ¼¼Êõ¡£¾ÍÏóÓÃSQLÀ´²éѯ¹ØϵÊý¾ÝÒ»Ñù¡£ÔÚ¼¸ÄêÇ°£¬W3C²éѯÓïÑÔ¹¤×÷×鿪·¢³öÁËXQuery1.0¡£ÔÚÒÔÇ°ÎÒÃÇÏë²Ù×÷XMLÊý¾Ý±ØÐëÒªÕÆÎÕSAX»òDOMÖеÄÒ»ÖÖ£¬¶øÔÚ±¾ÎÄÖÐÎÒÃǽ«ÓÐÐÒÁ˽⵽¸üÈÝÒ×ʹÓõÄXQJ¼¼Êõ¡£XQJ¸ü·ûºÏXQuery¹æ·¶£¬ÔÚXQJÓïÑÔÖУ¬ÎÒÃǽ«¶¨ÒåºÜ¶à½Ó¿ÚºÍÀ࣬¶øÌá½»XQJ²éѯºÍ»ñµÃ²éѯ½á¹ûµÄÈÎÎñ¾ÍÊÇÓÉÕâЩÀàÍê³ÉµÄ¡£Í¬Ê±£¬XQJ»¹Ö§³Ö×îеÄXPath2.0¼¼Êõ¡£ÓÉÓÚXQueryÊÇΪ²éѯXMLµÄרÓÃÓïÑÔ£¬Òò´Ë£¬Ê¹ÓÃÒ»ÐÐXQueryÓï¾äËù´ïµ½µÄЧ¹ûÐèÒªÏóJava»òC#ÕâÑùµÄÓïÑÔÉÏ°ÙÐвÅÄÜ´ïµ½¡£
XPathÊÇÒ»ÖÖÓÃÀ´»ñµÃXMLÎĵµµÄ²¿·ÖÄÚÈݵļ¼Êõ¡£Òò´Ë£¬Èç¹ûÎÒÃÇÖ»ÏëµÃµ½Ò»¸öXMLÎļþÖеÄÒ»²¿·ÖÄÚÈÝ£¬¾Í¿ÉÒÔʹÓÃXPathÀ´Íê³É¡£µ«XPathÒ²ÓоÖÏÞÐÔ£¬ÈçËü²»ÄÜ»ñµÃÒ»¸ö½Úµã£¨Node£©µÄÒ»²¿·Ö£¬Ò²²»ÄÜ´´½¨ÐµÄÄÚÈÝ¡£ÕâÒ»µãXSLT¾ÍǿһЩ£¬XSLTÊÇXPathµÄ³¬¼¯£¬³ýÁË°üº¬XPathµÄÈ«²¿¹¦ÄÜÍ⣬»¹°üº¬Á˺ܶàÆäËûµÄÌØÐÔ¡£Èç¿ÉÒÔÔÚXSLTÖÐʹÓñäÁ¿¡¢ÃüÃû¿Õ¼ä£¬²¢¿ÉÒÔ´´½¨ÐÂÎĵµ¡£
¶þ¡¢XQuery API for Java (XQJ)¼ò½é
XQJÆäʵ¾ÍÊÇÓÃJavaʵÏÖµÄÒ»¸ö°ü£¬ÆäÖаüº¬Á˺ܶàµÄ½Ó¿ÚºÍÀࡣʹÓÃXQJ¿ÉÒÔ²éѯµ¥¶ÀµÄXMLÎĵµ»òXMLÎĵµ¼¯ºÏ¡£¶øXQueryÌṩÁ˸üÁé»îµÄ»úÖÆ£º¿ÉÒÔ¸ù¾ÝÐèҪѡÔñʵÏÖÕâЩÌØÐԵķ½·¨¡£Õâ¾ÍÒâζ×Å¿ÉÒÔʹÓÃXQJÀ´Çø·Ö´¦ÀíÖмä½á¹ûºÍ×îÖÕ½á¹û¡£ÏÖÔÚʵÏÖXQJÖ÷ÒªÓÐÁ½¸ö¿ò¼Ü£¬ËüÃÇÊÇQexoºÍSaxon¡£ÆäÖÐSaxon¿ÉÒÔͬʱÔÚJavaºÍ.NETÖÐʹÓ㬷ֱð¶ÔÓ¦ÁËÁ½¸ö°ü£ºSaxon-BºÍSaxon-SA¡£ÆäÖÐSaxon-BÊÇÒÔ¿ªÔ´Ðí¿ÉÖ¤ÐÎʽ·¢²¼µÄ£¬¶øSaxon-SAÔòÊÇÊշѵġ£
XQJ¿ÉÒÔ´ÓJNDIÖлñµÃÊý¾Ý£¬Ò²¿ÉÒÔʹÓÃÆäËûµÄ·½·¨»ñµÃÊý¾Ý¡£ÈçXQDataSource¿ÉÒÔ×÷Ϊ´´½¨XQueryÁ¬½Ó¶ÔÏó¡¢ÐòÁжÔÏóºÍÏîÄ¿¶ÔÏóµÄ¹¤³§¡£XQDataSource·½·¨ÓÐÈý¸öÖØÔصÄ


Ïà¹ØÎĵµ£º

C++ ´úÂë¸Äjava´úÂë ¼±¼±£¡£¡

typedef struct 
{
    BYTE    baOrigMDN[8];      /* Ö÷½ÐÓû§MDN */
    BYTE    baDestMDN[8];      /* ±»½ÐÓû§MDN */
    BYTE    bOrigIsVIP;   ......

javaÎļþÉÏ´«·½·¨

ÎļþÉÏ´«·½·¨£¨Ò»´ÎÉÏ´«Ò»¸öÎļþ£¬¶à¸öÎļþµÄ»°£¬Çëдѭ»·µ÷Óã©
Upload.uploadFile(theFile, filePath)
˵Ã÷£º
theFile£ºÀàÐÍÊÇFormFile
filePath£ºactionÖз¾¶»ñÈ¡·½·¨    this.getServlet().getServletContext().getRealPath("/")
µ÷Óô˷½·¨·µ»ØÎļþÉÏ´«ºóµÄ·¾¶Ãû
ÉÏ´«¶à¸öÎļþʱ£¬ÇëÉèÖÃÿ¸öÎ ......

javaÖÐʹÓÃAjax¼¼Êõ

      ajax¼¼ÊõÊÇʹҳÃæÄֲܾ¿Ë¢ÐµÄÒ»ÖÖ¼¼Êõ,È«³ÆÓ¦¸ÃÊÇasynchronous JavaScript and xml´Ó¼¸¸öµ¥´Ê¾ÍÖªµÀËüµÄÇëÇóÏìÓ¦µÄ´¦ÀíÊÇÒì²½µÄ,¶øÇÒʹÓõÄÊÇJavaScriptºÍxml¼¼Êõ.
      ÎÒÃÇÔÚjavaÖÐʹÓÃajax¼¼Êõ×î¼òµ¥µÄÊÇʹÓÃËüµÄÒ»¸ö¿ò¼ÜdwrÖ»Òªµ¼ÈëÕâ¸ö°ü,×öÏàÓ¦µÄÅäÖÃ,¿É ......

FTP java ÉÏ´« ÏÂÔØ

package com.ftp;
import com.enterprisedt.net.ftp.FTPClient;
import com.enterprisedt.net.ftp.FTPFile;
import com.enterprisedt.net.ftp.FTPMessageCollector;
import com.enterprisedt.net.ftp.FTPTransferType;
import com.enterprisedt.net.ftp.FTPConnectMode;
import com.enterprisedt.util.debug.Level;
......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ