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

Jdom½¨Á¢XMLÎļþ


   JDOM ÊÇÒ»¸ö¿ªÔ´µÄ´¿java API,ÓÃÓÚ¿ìËÙ¿ª·¢ XML Ó¦ÓóÌÐò,JDOM½«XMLÎĵµ±íʾΪÊ÷£¬°üÀ¨ÔªËØ¡¢ÊôÐÔ¡¢ËµÃ÷¡¢´¦ÀíÖ¸Áî¡¢Îı¾½Úµã¡¢CDATA¶Î£¬µÈµÈ¡£JDOM¿ÉÒÔËæʱ·ÃÎÊÊ÷ÖеÄÈÎÒⲿ·Ö¡£Ê÷ÖÐËùÓв»Í¬½Úµã¾ùΪ¾ßÌåµÄÀà¡£ÔÚhttp://jdom.org¿ÉÒÔÏÂÔØJDOMµÄ×îа汾(ÎÒÕâÀïÊÇ1.0)¡£ÏÂÔغó½âѹ£¬JDOMµÄjarÎļþ¾ÍÊÇbuildĿ¼ÏµÄÎļþjdom.jar£¬½«Ö®¼ÓÈëÀà·¾¶¡£
jdomÖÐ×îÖØÒªµÄÒ»¸ö°üÊÇorg.jdom£¬ÆäÖÐÖ÷ÒªÓÐÒÔÏÂÀàÓÃÀ´½øÐÐxmlÎĵµµÄ²Ù×÷£º 
Attribute 
CDATA 
Comment 
DocType 
Document 
Element 
EntityRef 
Namespace 
ProcessingInstruction 
Text 
¿´¿´jdomÔõÑù´´½¨xmlÎĵµ£º
import java.io.*;
import org.jdom.*;
import org.jdom.output.*;
public class test1 {    
      public void BuildXMLDoc() throws IOException, JDOMException {  
      Element root, e1, e2;        
      Document Doc;        
      root = new Element("employees_information");    //Ê×ÏȽ¨Á¢¸ùÔªËØ
      DocType type=new DocType("employees_information","employees.dtd"); //ÎĵµÀàÐÍ
      Doc = new Document(root,type);      //È»ºóÓÃroot´´½¨XMLÎĵµ¶ÔÏó
      e1 = new Element("name");       //´´½¨ÔªËØe1,ÉèÖÃÄÚÈÝ£¬ÊôÐÔ
      e1.setText("C.Y. ³Âನ");  
      e1.setAttribute("index","1");
      root.addContent(e1); 
      e2= new Element("name");       //´´½¨ÔªËØe2,ÉèÖÃÄÚÈÝ£¬ÊôÐÔ
      e2.setText("a.Y. Shen");  
      e2.setAttribute("index","2");
  


Ïà¹ØÎĵµ£º

ÔÚ.net µ±ÖÐÈçºÎXMLÐòÁл¯Ò»¸öCollection

CollectionÖ÷ÒªÊÇÖ¸ÏñArray, ArrayList, List, Dictionary, HashTableÕâЩÊý¾ÝÀàÐÍ£¬´ó¼ÒƽʱÓõĺܶࡣÈç¹ûÒ»¸öÀàÖÐÓÐÒ»¸öCollectionÀàÐ͵ijÉÔ±£¬ÔÚ¶ÔÕâ¸öÀà½øÐÐXMLÐòÁл¯µÄʱºò£¬Ó¦¸ÃÈçºÎ´¦Àí£¿Ó¦¸Ã˵ÔÚ.netµ±ÖÐÕâÊDZȽϼòµ¥µÄ£¬Ö»Òª½¨Á¢Ò»¸öXmlSerializerÀà¾Í¿ÉÒÔ°ïÄã×Ô¶¯¸ã¶¨£¬²»¹ýÓеÄʱºòÄã¿ÉÄÜÐèÒª¶Ô×Ô¶¯µÄÐòÁл¯¹ý³ ......

XML Schema nillable=¡±true¡± vs minOccurs=¡±0¡å

³ö´¦£ºhttp://www.dimuthu.org/blog/2008/08/18/xml-schema-nillabletrue-vs-minoccurs0/
¡¾Ç°ÑÔ¡¿Ò»¸öÔÂÇ°Ñо¿¹ýnillable="true"ºÍ vs minOccurs="0"µÄÇø·Ö£¬Ã»ÓÐÏëµ½°¡£¬½ñÌì¾Í¼Ç²»µÃÁË£¬¿´À´ÕæÊǺüÇÐÔ²»ÈçÀñÊÍ·°¡£¬¿öÇÒÎÒ»¹Ã´µÄºÃ¼ÇÐÔ¡£¡£¡£¡£
¡¾×ܽ᡿ӢÎÄÒ»ÑÛ¿´²»³ö½áÂÛ£¬ËµµãººÓïÖ±½ÓЩ£¬±ð˵ÎÒÍÁ¹þ~
nillable=" ......

Symbian OSϽâÎöXMLÎĵµµÄһЩ·½·¨

2009-10-27 22:44×ÊÁÏÀ´Ô´ÓÚÍøÂç,ËÄÖÖ·½Ê½,´ó¼Ò¿ÉÒÔ×Ô¼º³¢ÊÔÏÂ.
=========11111=================
tinyXML
www.grinninglizard.com/tinyxml/
=========22222================================
symbian s60 µÚÈý°æÖ®ºó£¬ÒѾ­ÌṩÁ˽âÎöxmlµÄϵͳapi,²ÉÓõÄÊÇSAX·½Ê½¡£
XML parsing in Symbian OS v9.x À´Ô´Ä¿Â¼£º
htt ......

Symbianѧϰ±Ê¼Ç(16) ½âÎöXMLÎļþ(ÏÂ)


×ÖºÅ:  С  ÖР ´ó  | ´òÓ¡ ·¢²¼: 2009-1-08 16:33    ×÷Õß: webmaster    À´Ô´: ±¾Õ¾Ô­´´    ²é¿´: 40´Î
Êé½ÓÉϻأ¬Õâƪ½éÉÜÄǸöMContentHandlerµÄʵÏÖ£¬ÕâÊÇSAX½âÎö·½·¨µÄºËÐÄËùÔÚ¡£
ÏÈ¿´¿´ÎÒÒª½âÎöµÄXMLÎļþÈçÏÂËùʾ£¬ÆäʵºÜ¼òµ¥£¬ÒòΪËü³ýÁËEle ......

NET ¶Á¡¢Ð´¡¢²é¡¢É¾¡¢¸ÄXMLÎļþ

.NET¶Á¡¢Ð´¡¢²é¡¢É¾¡¢¸ÄXMLÎļþ

Ò»¡¢    
XML
¼ò½é
XML
¼´¿ÉÀ©Õ¹±ê¼ÇÓïÑÔ£¨
EXtensible Markup Language
£©£¬ÊÇÒ»ÖÖ±ê¼ÇÓïÑÔ£¬ºÜÀàËÆ
HTML
¡£
XML
µÄÉè¼Æ×ÚÖ¼ÊÇ´«ÊäÊý¾Ý£¬¶ø·ÇÏÔʾÊý¾Ý¡£
XML
±êǩûÓб»Ô¤¶¨Ò壬ÐèÒªÓû§¶¨Òå±êÇ©¡£
XML
±»Éè¼ÆΪ¾ßÓÐ×ÔÎÒÃèÊöÐÔ²¢·ûºÏ
W3C
µÄÍƼö± ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ