Ext.data.Store ¶ÁÈ¡XMLÊôÐÔÖµ
	
    
    
	
data.xml 
<?xml version="1.0" encoding="UTF-8"?>  
<Items>  
    <Item ASIN="0446355453"    
        Author="Sidney Sheldon"    
        Manufacturer="Warner Books"    
        ProductGroup="Book"    
        Title="Master of the Game"/>  
           
    <Item ASIN="0446613657"    
        Author="Sidney Sheldon"    
        Manufacturer="Warner Books"    
        ProductGroup="Book"    
        Title="Are You Afraid of the Dark?"/>  
           
    <Item ASIN="0446357421"    
        Author="Sidney Sheldon"    
        Manufacturer="Warner Books"    
        ProductGroup="Book"    
        Title="If Tomorrow Comes"/>  
           
    <Item ASIN="0446607207"    
        Author="Sidney Sheldon"    
        Manufacturer="Warner Books"    
        ProductGroup="Book"    
        Title="Tell Me Your Dreams"/>  
           
    <Item ASIN="0446357448"    
        Author="Sidney Sheldon"    
        Manufacturer="Warner Books"    
        ProductGroup="Book"    
        Title="Bloodline"/>  
</Items>  
 
/**  
 * Ext.data.Store ¶ÁÈ¡XMLÊôÐÔÖµ  
 * @author KJW  
 * @param {} config  
 */  
TestGrid = function(config) {   
    config = config || {};   
       
    this.cm = new Ext.grid.ColumnModel([   
        {header : 'Author',         dataIndex: 'Author'},   
        {header : 'Manufacturer',   dataIndex: 'Manufacturer'},   
        {header : 'ProductGroup',   dataIndex: 'ProductGroup'},   
        {header : 'Title',          dataIndex: 'Title'}   
    ]);   
       
    this.store = new Ext.data.Store({   
        url     : 'data.xml',   
        reader  : new Ext.data.XmlReader({   
            record  : 'Item',   
            id      : '@ASIN',   
            totalRecords: '@total'  
        }, [   
            {name: 'Author',        mapping: '@Author'},   
            {name: 'Manufacturer',  mapping: '@Manufacturer'},   
            {name: 'ProductGroup',  
    
     
	
	
    
    
	Ïà¹ØÎĵµ£º
        
    
    Class.xml
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/css" href="class.css"?>
<bookdetail>
<book class="A">
<author>²ÜÑ©ÇÛ</author>
<title>ºìÂ¥ÃÎ</title>
<price>60.00</price>
</book>
<book class="A"& ......
	
    
        
    
    JAXB¸ÅÒª
JAXBΪJava Architecture for XML BindingµÄËõд£¬ÒâΪXML°ó¶¨µÄJAVA¿ò¼Ü¡£ËüÌṩÁËÒ»Ì׿ÉÒÔ¼òµ¥´æÈ¡XMLÊý¾ÝµÄAPI£¬Í¬Ê±£¬JAXB¿ÉÒÔ¸ù¾ÝXMLµÄschema×Ô¶¯Éú³É²Ù×÷XMLµÄJAVAÀà¡£ÀûÓÃJAXB£¬Ê¹ÓÃJAXB×Ô¶¯Éú³ÉµÄ²Ù×÷XMLµÄJAVAÀ࣬¿ÉÒÔ»ù±¾Éϲ»Óÿ¼ÂÇXML½á¹¹¶ø¼òµ¥µØ´æÈ¡XMLÊý¾Ý¡£
JAXBµÄÏÂÔØÓë°²×°
JAXBÖÁÉÙÐèÒªµ¼ÈëÒ ......
	
    
        
    
            private void CreateNewXmlNode()
        {
            String strFileName = string.Empty;
            strFileName = this.strCurrentPath + "System.xml";
            XmlDocument xmlDoc = new XmlDocument();
            try
            {
                xmlDoc.Load(strFileName);
          ......
	
    
        
    
    ±¾ÎÄ×ܽáÁËÔÚPythonÖÐÖ÷ÒªµÄ¼¸ÖÖ´¦ÀíXMLµÄ·½·¨£º
Element Tree
SAX
Dom
ʹÓõÚÈý·½Àà¿âÈçAmara 2.x£¬ libxml2dom µÈ
Element Tree
Element TreeÊÇPython 2.5ÒýÈëµÄʹÓüòµ¥£¬¿ì½ÝµÄ´¦Àí·½·¨£¬ Ò²ÊÇPython±ê×¼Àà¿âÍÆ¼öµÄ´¦ÀíXMLµÄ·½·¨¡£
ËüʹÓÃÊ÷ÐνڵãµÄÐÎʽÀ´¶ÁдXML¡£Element TreeÊÇÇáÁ¿¼¶µÄDOM£¬ ËùÒÔÊ ......