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

eclipseÖÐÌáʾxml±êÇ©

¡¡¡¡¡¡ÔÚ²»ÄÜÉÏÍâÍøµÄÇé¿öÏ£¬ÎÒÃÇÔÚeclipseÖÐдxmlʱÎÞ·¨µÃµ½±êÇ©µÄÌáʾ£¬ÒòΪxmlÖеÄdtd»ñÈ¡²»µ½.
¡¡¡¡¡¡¿´ÁËÏÂÍâÃæµÄ×ÊÁÏ¡£ËµÊÇÑ¡Ôñ"window"-->"preferences"--->"Myeclipse Enterprise Workbench"-->"Files and Editors"-->"xml"-->"xml category"
¡¡¡¡¡¡ÔÚuser specified EntriesÖÐÐÂÔöÒ»¸ö. £¨LocationÑ¡ÔñdtdÎļþÔÚ±¾µØµÄ·¾¶£¬keytypeÑ¡Ôñuri,keyÑ¡ÔñxmlÖеÄdtdÎļþ£¬±ÈÈçhttp://struts.apache.org/dtds/strutss-2.0.dtd£©


Ïà¹ØÎĵµ£º

DataTabת»»XML XMLת»»DataTable µÄÀà

public string ConvertDataTableToXML(DataTable xmlDS)
{
MemoryStream stream = null;
XmlTextWriter writer = null;
try
{
stream = new MemoryStream();
writer = new XmlTextWriter(stream, Encoding.Default);
......

.net ³ÌÐò·¢²¼ºóxmlÎļþÕÒ²»µ½µÄÁ½ÖÖ½â¾ö·½·¨

×Ô¼º×öÏîÄ¿ÐèÒªÓÃÖÇÄܿͻ§¶Ë·¢²¼£¬ÎÒÓöµ½Á˸öÎÊÌâ¾ÍÊdzÌÐòÖеÄxmlÎļþÔÚ·¢²¼ºóÕÒ²»µ½ÁË¡£¾­¹ýÔÚÍøÉϲéѯºÍ×Ô¼ºµÄÊÔÑé·¢ÏÖÕâÁ½¸ö·½·¨¶¼¿ÉÒÔ½â¾öÕâ¸öÎÊÌâ¡£
·½·¨1
    ÓÒ¼üwinUIÏîÄ¿£¬·¢²¼-¡µÓ¦ÓóÌÐòÎļþ....->Ñ¡ÔñxmlÎļþ-¡µ·¢²¼×´Ì¬¸ÄΪ“Êý¾ÝÎļþ(×Ô¶¯)”
   
 &nb ......

¶ÁÈ¡xmlʱ EntityName ʱ³ö´í

public static Hashtable xml_unserialize(string strXml)
        {
//¼ÓÉÏÏÂÃæÕâ¾ä¾ÍºÃÁË
strXml = strXml.Replace("&", "&");
Hashtable ht = new Hashtable();
XmlDocument XMLDom = new XmlDocument();
......

ʵÀýÆÊÎöxmlÓ¦Óã¨1£©

using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
 //µ¼ÈëʹÓÃxmlÓ¦ÓÃËùÐèµ ......

VC¶ÔÓÚXMLµÄ½âÎöÒÔ¼°²Ù×÷

XMLµÄ²éÕÒ
#include <stdio.h>
#include <iostream>
#import <msxml4.dll>
#include <string>
using namespace std;
void Travel(MSXML2::IXMLDOMNodePtr pDOMNode)
{
 if (pDOMNode->GetnodeTypeString()==(_bstr_t)"element") // »ñÈ¡½ÚµãÀàÐÍ
 {
  printf("%s ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ