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

Jdbc,Jdo,XML·½Ãæ


1¡¢Class.forNameµÄ×÷ÓÃ?ΪʲôҪÓÃ?
´ð£ºµ÷Óø÷ÃÎÊ·µ»ØÒ»¸öÒÔ×Ö·û´®Ö¸¶¨ÀàÃûµÄÀàµÄ¶ÔÏó¡£
2¡¢JdoÊÇʲô?
´ð£ºJDOÊÇJava¶ÔÏó³Ö¾Ã»¯µÄеĹ淶£¬Îªjava data objectµÄ¼ò³Æ,Ò²ÊÇÒ»¸öÓÃÓÚ´æȡijÖÖÊý¾Ý²Ö¿âÖеĶÔÏóµÄ±ê×¼»¯API¡£JDOÌṩÁË͸Ã÷µÄ¶ÔÏó´æ´¢£¬Òò´Ë¶Ô¿ª·¢ÈËÔ±À´Ëµ£¬´æ´¢Êý¾Ý¶ÔÏóÍêÈ«²»ÐèÒª¶îÍâµÄ´úÂ루ÈçJDBC APIµÄʹÓã©¡£ÕâЩ·±ËöµÄÀýÐй¤×÷ÒѾ­×ªÒƵ½JDO²úÆ·ÌṩÉÌÉíÉÏ£¬Ê¹¿ª·¢ÈËÔ±½âÍѳöÀ´£¬´Ó¶ø¼¯ÖÐʱ¼äºÍ¾«Á¦ÔÚÒµÎñÂß¼­ÉÏ¡£ÁíÍ⣬JDOºÜÁé»î£¬ÒòΪËü¿ÉÒÔÔÚÈκÎÊý¾Ýµ×²ãÉÏÔËÐС£JDBCÖ»ÊÇÃæÏò¹ØϵÊý¾Ý¿â£¨RDBMS)JDO¸üͨÓã¬Ìṩµ½ÈκÎÊý¾Ýµ×²ãµÄ´æ´¢¹¦ÄÜ£¬±ÈÈç¹ØϵÊý¾Ý¿â¡¢Îļþ¡¢XMLÒÔ¼°¶ÔÏóÊý¾Ý¿â£¨ODBMS£©µÈµÈ£¬Ê¹µÃÓ¦ÓÿÉÒÆÖ²ÐÔ¸üÇ¿¡£
3¡¢Ëµ³öÊý¾ÝÁ¬½Ó³ØµÄ¹¤×÷»úÖÆÊÇʲô?
´ð£ºJ2EE·þÎñÆ÷Æô¶¯Ê±»á½¨Á¢Ò»¶¨ÊýÁ¿µÄ³ØÁ¬½Ó£¬²¢Ò»Ö±Î¬³Ö²»ÉÙÓÚ´ËÊýÄ¿µÄ³ØÁ¬½Ó¡£¿Í»§¶Ë³ÌÐòÐèÒªÁ¬½Óʱ£¬³ØÇý¶¯³ÌÐò»á·µ»ØÒ»¸öδʹÓõijØÁ¬½Ó²¢½«Æä±í¼ÇΪæ¡£Èç¹ûµ±Ç°Ã»ÓпÕÏÐÁ¬½Ó£¬³ØÇý¶¯³ÌÐò¾Íн¨Ò»¶¨ÊýÁ¿µÄÁ¬½Ó£¬Ð½¨Á¬½ÓµÄÊýÁ¿ÓÐÅäÖòÎÊý¾ö¶¨¡£µ±Ê¹ÓõijØÁ¬½Óµ÷ÓÃÍê³Éºó£¬³ØÇý¶¯³ÌÐò½«´ËÁ¬½Ó±í¼ÇΪ¿ÕÏУ¬ÆäËûµ÷ÓþͿÉÒÔʹÓÃÕâ¸öÁ¬½Ó¡£
4¡¢JdoÊÇʲô? 
´ð£ºJDOÊÇJava¶ÔÏó³Ö¾Ã»¯µÄеĹ淶£¬Îªjava data objectµÄ¼ò³Æ,Ò²ÊÇÒ»¸öÓÃÓÚ´æȡijÖÖÊý¾Ý²Ö¿âÖеĶÔÏóµÄ±ê×¼»¯API¡£JDOÌṩÁË͸Ã÷µÄ¶ÔÏó´æ´¢£¬Òò´Ë¶Ô¿ª·¢ÈËÔ±À´Ëµ£¬´æ´¢Êý¾Ý¶ÔÏóÍêÈ«²»ÐèÒª¶îÍâµÄ´úÂ루ÈçJDBC APIµÄʹÓã©¡£ÕâЩ·±ËöµÄÀýÐй¤×÷ÒѾ­×ªÒƵ½JDO²úÆ·ÌṩÉÌÉíÉÏ£¬Ê¹¿ª·¢ÈËÔ±½âÍѳöÀ´£¬´Ó¶ø¼¯ÖÐʱ¼äºÍ¾«Á¦ÔÚÒµÎñÂß¼­ÉÏ¡£ÁíÍ⣬JDOºÜÁé»î£¬ÒòΪËü¿ÉÒÔÔÚÈκÎÊý¾Ýµ×²ãÉÏÔËÐС£JDBCÖ»ÊÇÃæÏò¹ØϵÊý¾Ý¿â£¨RDBMS£©JDO¸üͨÓã¬Ìṩµ½ÈκÎÊý¾Ýµ×²ãµÄ´æ´¢¹¦ÄÜ£¬±ÈÈç¹ØϵÊý¾Ý¿â¡¢Îļþ¡¢XMLÒÔ¼°¶ÔÏóÊý¾Ý¿â£¨ODBMS£©µÈµÈ£¬Ê¹µÃÓ¦ÓÿÉÒÆÖ²ÐÔ¸üÇ¿¡£
5¡¢xmlÓÐÄÄЩ½âÎö¼¼Êõ?Çø±ðÊÇʲô?
´ð£ºÓÐDOM,SAX,STAXµÈ
DOM:´¦Àí´óÐÍÎļþʱÆäÐÔÄÜϽµµÄ·Ç³£À÷º¦¡£Õâ¸öÎÊÌâÊÇÓÉDOMµÄÊ÷½á¹¹ËùÔì³ÉµÄ£¬ÕâÖֽṹռÓõÄÄÚ´æ½Ï¶à£¬¶øÇÒDOM±ØÐëÔÚ½âÎöÎļþ֮ǰ°ÑÕû¸öÎĵµ×°ÈëÄÚ´æ,Êʺ϶ÔXMLµÄËæ»ú·ÃÎÊSAX:²»ÏÖÓÚDOM,SAXÊÇʼþÇý¶¯Ð͵ÄXML½âÎö·½Ê½¡£Ëü˳Ðò¶ÁÈ¡XMLÎļþ£¬²»ÐèÒªÒ»´ÎÈ«²¿×°ÔØÕû¸öÎļþ¡£µ±Óöµ½ÏñÎļþ¿ªÍ·£¬Îĵµ½áÊø£¬»òÕß±êÇ©¿ªÍ·Óë±êÇ©½áÊøʱ£¬Ëü»á´¥·¢Ò»¸öʼþ£¬Óû§Í¨¹ýÔÚÆä»Øµ÷ʼþÖÐдÈë´¦Àí´úÂëÀ´´¦ÀíXMLÎļþ£¬Êʺ϶ÔXMLµÄ˳Ðò·ÃÎÊ
STAX:Streaming API for XML (StAX)
6¡¢ÄãÔÚÏîÄ


Ïà¹ØÎĵµ£º

XML Schema ²Î¿¼ÊÖ²á1

XML Schema ²Î¿¼ÊÖ²á
XSD ÔªËØ
ÔªËØ
½âÊÍ
all
¹æ¶¨×ÓÔªËØÄܹ»ÒÔÈÎÒâ˳Ðò³öÏÖ£¬Ã¿¸ö×ÓÔªËؿɳöÏÖÁã´Î»òÒ»´Î¡£
annotation
annotation ÔªËØÊÇÒ»¸ö¶¥²ãÔªËØ£¬¹æ¶¨ schema µÄ×¢ÊÍ¡£
any
ʹ´´×÷Õß¿ÉÒÔͨ¹ýδ±» schema ¹æ¶¨µÄÔªËØÀ´À©Õ¹ XML Îĵµ¡£
anyAttribute
Ê ......

XML Schema°ïÖúÎĵµ3

XML Schema attributeGroup ÔªËØ
¶¨ÒåºÍÓ÷¨
attributeGroup ÔªËØÓÃÓÚ¶ÔÊôÐÔÉùÃ÷½øÐÐ×éºÏ£¬ÕâÑùÕâЩÉùÃ÷¾ÍÄܹ»ÒÔ×éºÏµÄÐÎʽºÏ²¢µ½¸´ÔÓÀàÐÍÖС£
ÔªËØÐÅÏ¢
³öÏÖ´ÎÊý
ÎÞÏÞÖÆ
¸¸ÔªËØ
attributeGroup¡¢complexType¡¢schema¡¢restriction (simpleContent)¡¢extension (simpleContent)¡¢rest ......

xml shema°ïÖúÎĵµ5

XML Schema union ÔªËØ
¶¨ÒåºÍÓ÷¨
union ÔªËض¨Òå¶à¸ö simpleType ¶¨ÒåµÄ¼¯ºÏ¡£
ÔªËØÐÅÏ¢
³öÏÖ´ÎÊý
Ò»´Î
¸¸ÔªËØ
simpleType
ÄÚÈÝ
annotation¡¢simpleType
Óï·¨
<union
id=ID
memberTypes="list of QNames"
any attributes
>
(annotation?,(simpleType ......

C#СTip£ºXml²Ù×÷¼òÃ÷ÊÖ²á 1


1£©XmlÎĵµÊ¾Àý£¨xmlsample.xml£©£º
 
Code
<?xml version="1.0" encoding="iso-8859-1" ?>
<music>
  <song title="Oh,girl">
    <artist>The Chi-lites</artist>
    <genre>Soul</genre>
  &nb ......

xml procedure

DECLARE @XMLdoc XML
SET @XMLdoc =
'<Book name="SQL Server 2000 Fast Answers">
<Chapters>
<Chapter id="1" name="Installation, Upgrades">
 <CreateDate>2009-12-30</CreateDate>
</Chapter>
<Chapter id="2" name="Configuring SQL Server"/>
<Chapter i ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ