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

.netÖÐXMLÎļþ×÷ΪÊý¾ÝÔ´µÄ²Ù×÷Àà

²»½âÊÍÁË£¬×Ô¼º¿´´úÂë°É.......................
using System;
using System.Text;
using System.Data;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.Web;
using System.Web.UI;
using System.Xml;
namespace Gogofly.CommonOperation
{
 /// <summary>
 /// Êý¾ÝÀàÐÍת»»
 /// </summary>
 public class DataTypeConvert
 {
  #region Êý¾ÝÀàÐÍת»»
  public DataTypeConvert(){}
  /// <summary>
  /// ×Ö·û´®×ª»»ÎªÕûÊý
  /// </summary>
  /// <param name="value"></param>
  /// <returns></returns>
  public static int ConvertToInt(string value)
  {   ///Êý¾ÝΪ¿Õ£¬·µ»Ø-1
   if(string.IsNullOrEmpty(value))return -1;
   int result = -1;
   ///Ö´ÐÐת»»²Ù×÷
   Int32.TryParse(value,out result);
   return result;
  }
  /// <summary>
  /// ×Ö·û´®×ª»»ÎªÊ±¼ä
  /// </summary>
  /// <param name="value"></param>
  /// <returns></returns>
  public static DateTime ConvertToDateTime(string value)
  {   ///¶¨Òå³õʼ»¯Öµ
   DateTime result = DateTime.Parse("1900-01-01");
   if(string.IsNullOrEmpty(value)) return result;
   ///Ö´ÐÐת»»²Ù×÷
   DateTime.TryParse(value,out result);
   return result;
  }
  /// <summary>
  /// ×Ö·û´®×ª»»ÎªÊµÊý
  /// </summary>
  /// <param name="value"></param>
  /// <returns></returns>
  public static decimal ConvertToDecimal(string value)
  {   ///¶¨Òå³õʼ»¯Öµ
   decimal result = 0.0M;
   if(string.IsNullOrEmpt


Ïà¹ØÎĵµ£º

How to parse XML file using CParser class


Reviewer Approved    
The following example shows how to parse XML file using Symbian OS C++ class, CParser. CParser is basically a SAX (Simple API for XML)-based XML parser.
It uses an active object to read the XML file chunk by chunk (see CXmlHandler::StartParsingWithAoL( ......

XMLѧϰ±Ê¼Ç£¨¶þ£©——XMLÔªËØÓëÊôÐÔ


XML ÔªËØ
ÔªËØÃüÃû
XMLÔªËØ±ØÐë×ñÊØÒÔϵÄÃüÃû¹æÔò£º
Ãû×ֿɰüº¬×Öĸ¡¢Êý×ÖÒÔ¼°ÆäËûµÄ×Ö·û
Ãû×Ö²»ÄÜÒÔÊý×Ö»òÕß±êµã·ûºÅ¿ªÊ¼
Ãû×Ö²»ÄÜÒÔ×Ö·û“xml”£¨»òÕßXML¡¢Xml£©¿ªÊ¼
Ãû×Ö²»Äܰüº¬¿Õ¸ñ
µ±Äú“·¢Ã÷´´Ôì”ÔªËØÃû³ÆÊ±£¬ÇëÁôÒâ²¢×ñÑ­ÏÂÃæµÄ¼òµ¥µÄ¹æÔò£º
Äú¿ÉÒÔʹÓóý±£Áô×ÖÍâµÄÈκÎÃû³Æ£ ......

¶ÁÈ¡ÅäÖÃÎļþ[·½Ê½Èý]Ö®xml½âÎöÅäÖÃÎļþ·¨

±¾ÎÄת×Ô£ºhttp://blog.csdn.net/wqf363/archive/2006/11/18/1394600.aspx
ʹÓüò½é
Êý¾ÝÀàÐÍ£º
xmlChar  Ìæ´úchar,ʹÓÃUTF-8±àÂëµÄÒ»×Ö½Ú×Ö·û´®¡£Èç¹ûÄãµÄÊý¾ÝʹÓÃÆäËü±àÂ룬Ëü±ØÐ뱻ת»»µ½UTF-8²ÅÄÜʹÓÃlibxmlµÄº¯Êý¡£
XmlDoc °üº¬ÓɽâÎöÎĵµ½¨Á¢µÄÊ÷½á¹¹£¬xmlDocPtrÊÇÖ¸ÏòÕâ¸ö½á¹¹µÄÖ¸Õë¡£
xmlNodePtr and xm ......

FOR XMLÓï·¨µ¼³öXMLµÄÒ×´íÖ®´¦

Ô­ÎĵØÖ·£ºhttp://www.cnblogs.com/zhengyun_ustc/archive/2006/06/29/sqlxml_forxmlexplicit.html
[SQLXML]FOR XMLÓï·¨µ¼³öXMLµÄÒ×´íÖ®´¦
Version
Date
Creator
Description
1.0.0.1
2006-6-29
Ö£êÀ@Ultrapower
²Ý¸å
 
¼ÌÐøÔĶÁ֮ǰ£¬ÎÒÃǼÙÉèÄúÊìϤÒÔÏÂ֪ʶ£º
n      &nb ......

»ùÓÚÓïÒåWeb¼¼ÊõµÄMISÓë»ùÓÚXML¼¼Êõ£¬´«Í³MISµÄ±È½Ï

ÕªÒª£ºÎÒÃÇÃèÊöÒ»¸ö¼òµ¥µÄÒµÎñϵͳµÄÓÃÀý£¬È»ºó½éÉܲ»Í¬µÄʵÏÖ¼¼Êõ¼°Æä±È½Ï¡£ÎÒûÓÐ×ö¹ýʵ¼ÊµÄ»ùÓÚSW¼¼ÊõµÄÐÅϢϵͳ£¬Òò´Ë±¾ÎÄÖ»ÊÇһЩ²ÂÏëÐԵĶ«
Î÷£¬Ï£ÍûÅ×שÒýÓñ£¬Äܵõ½´ó¼ÒµÄÖ¸½Ì,Ò²»¶Ó­´ó¼Ò²¹³ä£¬Ð»Ð»£¡
×¢ÒâÎÒÃÇÌÖÂ۵ĶÔÏóÊÇ´«Í³µÄMISϵͳ£¬ÈçͼÊé²éѯϵͳ£¬Ñ§Éú¹ÜÀíϵͳ֮ÀàµÄ¡£
ÓÃÀý£º Óû§ÔÚ²éѯ½çÃæÑ¡Ôñ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ