日期:2014-05-16  浏览次数:20684 次

jquery ajax 解析xml直接error,
  <billinfo>
 
           <RESULT>
                     <CODE>0</CODE>      
                     <REMARK>-1</REMARK>
           </RESULT >
   
            <!--主运单-->
           <mainbill>
              <MBILLID>12312311</MBILLID>
              <MPCS>2</MPCS>
              <MWEIGHT>39.5</MWEIGHT>
              <MVOL>6.5</MVOL>
              <SALESAGENT>AAS</SALESAGENT>
              <OPERAAGENT>ALL</OPERAAGENT>
              <SPECOPEID>9816</SPECOPEID>
   <!--分运单-->
               <HABILL>
   <HABILLID>H891801</MBILLID>
   <HPCS>1</HPCS>
   <HWEIGHT>1.5</HWEIGHT>
   <HVOL>0.3</HVOL>
               </HABILL>

         </mainbill>
 
 </billinfo>
加载xml时,直接alert个error,如果把分运单里面的各个属性去掉就能解析了,求大神,帮忙,在线等方法,急急急
XML jQuery?Ajax

------解决方案--------------------
 <HABILLID>H891801</MBILLID>


xml格式错的,修改对了,然后就和操作html差不多了使用jquery的话