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

ÓÐʲô·½·¨°ÑSTRINGת³ÉXMLµÄELEMENT¶ÔÏó£¬JDOM

RT ÓÐʲô·½·¨°ÑSTRINGת³ÉXMLµÄELEMENT¶ÔÏó£¬Ð´ÈëDOCUMENT¶ÔÏóÖÐÈ¥£¬²»ÒªÈ¥¶ÁдÎļþ
string = " <data> <id> </id> </data>",ÄÇDOCUMENTÖÐ2¸ö²ã´ÎµÄELEMENT¶ÔÏó

ÄÄλ´óÏÀдµÄ³öÀ´£¿ÓÃJDOMµÈ¶¼¿ÉÒÔ
ÊDz»ÊÇ˵µÄÕâÑùµÄ£¿
Java code:
http://www.blogjava.net/fangwei/archive/2008/04/02/171584.html



лл  ºÃÏñ²»ÊÇ£¬
string = "data",

Element e = new Element(string);Ò»°ãÕâÑùÀ´¹¹Ôìelement¶ÔÏó

Èç¹ûÊÇÒ»¸öǶÌ×µÄstring = " <data> <id>1 </id> </data>",ÓÐûÓÐʲôºÃ·½·¨ÄØ£¬ÓÐûÓÐͨÓõÄд·¨ÄØ

ÏȽâÎö³Édocument¶ÔÏó°¡

ûÓùý,²»¹ýÎÒÏëÓ¦¸Ã¿ÉÒÔ°ÑËüת³ÉÒ»¸öÁ÷,ÔÙת³ÉJDOM¶ÔÏó,Äã¿ÉÒÔÊÔÊÔ
Ò»°ãXML¶¼¿ÉÒÔÖ§³Ö´ÓÁ÷ÖжÁÈ¡µÄ

лл Êǵģ¬¿ÉÒÔÁ÷ת»»³ÉDOCUMENT¶ÔÏó£¬Ã»ÓÐELEMENT½ÚµãºÃ²Ù×÷£¬DOCUMENTÔÙÄܹҵ½DOCUMENTÉÏÈ¥Âð£¬
±ÈÈçÎÒ°Ñstring = " <data> <id>1 </id> </data>",ת³ÉDOCUMENT¶ÔÏóÁË£¬È»ºóÎÒÒª¹ÒÔÚÕû¿ÃÊ÷µÄÒ»¸ö¹Ì¶¨ELEMENT½ÚµãÏ£¬ÇëÎÊÈçºÎÐ´ÄØ

Òâ˼ÊÇ ×ª»»ºóµÄDocument¶ÔÏó£¬ ÎÒÖ»ÐèÒª°ÑÆä¹ÒÔÚÎÒÕû¿ÃÊ÷µÄÒ»¸ö¹Ì¶¨½ÚµãϵÄ×ӽڵ㣬ÄÜ×öµÄµ½Âð£¬Ð»Ð»

up Çó½Ì

°ï¶¥~

¿´¿´ Digester


ллÀÏ´ó£¬Ð»Ð»¸÷λ

²»ÊǰÉ,ÍíÉÏûÓлØÌù,ÉÙÁËÄÇô¶à·Ö?


Ïà¹ØÎÊ´ð£º

ÈçºÎ½«XMLÊý¾Ý´æÈëACCESSÊý¾Ý¿â

ÇëÎʸ÷λ´óʦ£¬ÎÒÏÖÔÚÐèÒª½«XMLµÄÊý¾ÝʵʱµÄ´æÈëµ½Êý¾Ý¿âÖУ¬ÎÒÊÇÓÃasp±àµÄ³ÌÐò£¬´óÁ¿Ãǰïæ·ÖÎö һϣ¡£¡£¡
ÏÂÃæÊÇÎÒµÄXMLÎļþ´úÂë
XML code:

<?xml version="1.0" encoding="utf-8"? ......

ÈçºÎÌá½»xmlÀàÐÍÊý¾Ý - .NET¼¼Êõ / ASP.NET

Êý¾Ý¿â±íÖÐÓÐÒ»ÁУ¨TranXml£©ÀàÐÍÊÇxml£¬´æ´¢µÄÊÇÀàËÆ
<fathernode>
  <a>aaa
  </a>
  <b>bbb
  </b>
</fathernode>
µÄÐÅÏ¢£¬²¢ÇÒͨ¹ý²éѯ·½· ......

Ôõô°Ñ¿Í»§¶Ë´Ówebservice»ñµÃµÄxmlת»»³Érecordset£¿

ÈçÌâ¡£
webServiceµÄº¯ÊýÈçÏ£º
VB.NET code:

Public Function RecordSetBySql(ByVal Sql As String) As XmlDataDocument
Dim xRs As ADODB.Recordset
Dim cmd As ADODB.Command
......

xml ÄÑÌâ Çë½Ì¸ßÊÖ

xmlÎĵµÈçÏÂ:
XML code:
<?xml version="1.0" encoding="UTF-8"?>
<!--Sample XML file generated by XMLSpy v2005 rel. 3 U (http://www.altova.com)-->
<JXWEB xmlns:x ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ