ASP±éÀúXML½Úµã
±éÀúXMLÎĵµ
¶ÔÓÚÏÂÃæµÄÒ»¶ÎXML´úÂ룺
XMLÎĵµÊµÀýbooks.xml£¬ÈçÏÂËùʾ£º
<?xml version="1.0" encoding="gb2312" ?>
<books>
<book status="ÒÑÊÛÍê">
<author>ÆÆÆÆ</author>
<title>XMLÈëÃÅ</title >
</book>
<book status="ÈÈÂôÖÐ">
<author>»µ»µ</author>
<title>XMLÌá¸ß</title>
</book>
</books>
ÎÒÃÇÒѾ¿ÉÒÔ´´½¨XMLÎĵµ¶ÔÏ󣬲¢¼ÓÔØXMLÎĵµÁË¡£¶ÔÓÚÒѾ¼ÓÔصÄÎĵµ£¬ÎÒÃÇÒª´ÓÎĵµÖлñÈ¡ËùÐèÒªµÄÄÚÈÝ£¬Õâ¾ÍÒªÇóÄܹ»Í¨¹ýDOMÊ÷À´·ÃÎÊÊ÷ÖеÄÈκÎÒ»¸ö½Úµã£¬Ò²¾ÍÊǶÔDOMÊ÷µÄ±éÀú¡£
ÏÂÃæÎÒÃÇÒÀ¾ÉÒÔbooks.xmlΪÀý£¬Í¨¹ý¼¸¸öʵÀýÀ´ËµÃ÷ÈçºÎ±éÀúDOMÊ÷ÖеĽڵ㡣
Ê×ÏÈ£¬ÎÒÃÇÒª»ñÈ¡XMLÎĵµµÄ¸ùÔªËؽڵ㣬ÓÃVBÃèÊöÕâ¸ö²Ù×÷ÈçÏ£º
Set root = myDocument.documentElement
ÏÖÔÚ£¬ÎÒÃÇÒѾµÃµ½ÁËÎĵµµÄ¸ùÔªËؽڵ㣬¶ÔÓÚÆäËûÔªËØ£¬ÎÒÃÇÈçºÎ»ñµÃ¶ÔËüµÄ·ÃÎÊÄØ£¿ÒÔÎĵµÖеĵڶþ¸öbookÔªËØΪÀý£¬¶Ô¸ÃÔªËؽڵãÒÔ¼°Æä×Ó½ÚµãµÄ·ÃÎÊ¿ÉÒÔͨ¹ýÏÂÃæµÄ·½Ê½À´ÊµÏÖ¡£
Set bookNode = root.childNodes.item(1)
Set authorNode = bookNode.childNodes.item(0)
Set textNode = authorNode.childNodes.item(0)
Set theName = textNode.nodeValue
ÉÏÊö·ÃÎÊÓï¾äÖ´Ðкó£¬theNameµÄÖµÊÇ"»µ»µ"¡£
ÔÚÉÏÃæµÄ´úÂëÖУ¬rootÊÇÎĵµµÄ¸ùÔªËؽڵãbooks½Úµã£¬bookNodeºÍauthorNode¶¼ÊÇÔªËØÀàÐ͵Ľڵ㣬textNodeÊÇTEXTÀàÐ͵Ľڵ㣬theNameÊÇÒ»¸ö×Ö·û´®¡£
childNodesÊÇNodeListÀàÐ͵ÄÊôÐÔ£¬itemÊÇNodeList½Ó¿ÚÖÐNodeÀàÐ͵ÄÊôÐÔ£¬Í¨¹ýitem¿ÉÒÔ·ÃÎÊNodeList
½Úµã¼¯ºÏÖеÄÈÎÒâ½Úµã£¨Õâ¶ùÓÐÒ»µãÐèҪעÒ⣬µ±ÎÒÃÇÒª·ÃÎʸùÔªËؽڵãbooksµÄµÚ¶þ¸öbook×Ó½ÚµãbookNodeʱ£¬ÎÒÃÇÓõÄË÷Òý²ÎÊýÊÇ"1"£¬Õâ
ÊÇÒòΪitemÖеÄË÷Òý²ÎÊýÊÇ´Ó0¿ªÊ¼µÄ£¬Èç¹ûÎÒÃÇÒª·ÃÎʽڵ㼯ºÏÖеĵÚÒ»¸ö½Úµã£¬ÔòÓ¦¸ÃÓÃitem(0)À´±íʾ£©¡£
ÔÚDOM¹æ·¶ÖУ¬Òª·ÃÎÊÔªËؽڵãµÄÎı¾ÄÚÈÝ£¬ÐèÒªÏȵõ½ÔªËؽڵãµÄTEXT×ӽڵ㣬ÔÙͨ¹ýTEXT½ÚµãµÄÊôÐÔ»ñÈ¡Îı¾ÄÚÈÝ¡£Î¢ÈíÔÚʵÏÖDOM½Ó¿Úʱ
¶ÔDOM½øÐÐÁ˲¿·ÖÀ©Õ¹£¬¿ÉÒÔͨ¹ýÔªËØÀàÐͽڵãµÄtextÊôÐÔÖ±½Ó»ñµÃÔªËØÖеÄÎı¾ÄÚÈÝ¡£¾ßÌåʵÓÃ˵Ã÷¿ÉÒԲο¼Î¢ÈímsdnÖеİïÖú¡£
ÉÏÃæµÄÀý×Ó¸ø³öÁËÈçºÎ·ÃÎÊDOMÊ÷ÖеÄÔªËؽڵ㣬¶ÔÓÚDOMÊ÷ÖеÄÊôÐԽڵ㣬·ÃÎÊ·½·¨ÂÔÓв»Í¬£¬¿ÉÒÔͨ¹ýÏÂÃæµÄÓï¾äÀ´ÊµÏÖ£º
Set bookNode = root.chil
Ïà¹ØÎĵµ£º
Flex ºÍC++ Ö®¼ä´«Êä½á¹¹ÌåÊý¾Ý
Ò»Ö±ÏëÊÔÑéÓýṹÌå´«Êý¾Ý
µ«ÊÇFlex ºÍC++ µÄÀàÐÍËùÕ¼µÄ×Ö½ÚÊýÓÐʱ²»Ò»Ñù
Èçint ÔÚC++ÖÐÕ¾2¸ö×Ö½Ú£¬¶øÔÚFlexÖÐÕ¼4¸ö×Ö½Ú¡£
ת»»±È½ÏÂé·³¡£
×îºó¾ö¶¨ÓÃXML½øÐд«Êä
È»ºóÁ½±ß¶¼¼ÓÒ»¸öXML ½âÎöºÍ·â×°Àà¡£
C++ ¶ËʹÓõÄtinyXML Àà
FlexÖ±½ÓʹÓÃ×Ô¼º´øµÄ E4X Àà
Flex´úÂëÈçÏÂ
&nb ......
Ñо¿E4XÓëFlexµÄ¹Øϵ£¬ËùÒÔ´òËã×ܽáһϣ¬ÓÐ˵µÄ²»¶ÔµÄµØ·½£¬»¹Çë´ó¼Ò¶à¶àÔÁ¡£
Ò»¡¢×î¼òµ¥Ä£Ê½£ºFlexͨ¹ýhttpserviceºÍdataProvider½øÐÐÊý¾Ý´«Êä
Xml¸ñʽÈçÏ£º
<?xml version="1.0" encoding="utf-8" ?>
<Result>
<NodeA>value1</NodeA>
<NodeB>valve2</NodeB>
…&he ......
ÔÚJ2MEÌåϵÖУ¬¶ÔxmlµÄ½âÎöÓбȽÏÓÐÃûµÄµÚÈý·½½âÎöAPI£¬·Ö±ðΪKXMLºÍNanoXML£¬ËûÃǶ¼ÌṩÁ˶ԽâÎöxmlµÄÖ§³Ö¡£KXMLÔÚ½âÎöXML¹ý³ÌÖлá¶ÔÎļþÄÚÈÝÒ»²ãÒ»²ã½øÐнâÎö£¬Òò´Ë³ÉΪÔöÁ¿Ê½½âÎöÆ÷£¬±È½ÏÊʺϴóÎļþµÄ½âÎö¡£¶øNanoXMLÊÇÒ»´ÎÐÔ½âÎöÆ÷£¬ÔÚÒ»´Îʱ¼äÀï¾Í°ÑÕû¸öxmlÎĵµ½âÎöÍ꣬Òò´Ë²»ÊʺϴóÎļþµÄ½âÎö£¬»áÔì³ÉÄÚ´æ²»×ãµÄÏÖÏó¡ ......
×°FrameWorkǰûÓÐ×°¹ýIIS£¬ºóÀ´Òª·¢²¼£¬×°ÉÏIISÒÔºó³öÏÖÎÊÌâ¡£ÎÊÌâÈçÏÂͼ£º
ÔÚÍøÉÏÕÒµ½ÁËһЩ½â¾ö°ì·¨
½â¾ö°ì·¨Ò»£º
´ò¿ªvs.netÃüÁîÌáʾÐУ¬
ÊäÈëaspnet_regiis -ir -enable
½â¾öµôÁË£¬¾ßÌåµÄ²ÎÊýµÄÒâ˼ÇëÊäÈëaspnet_regiis help²éѯ
½â¾ö°ì·¨¶þ£ºÔËÐÐvs2005ÃüÁîÐУ¨¿ªÊ¼¡¢ËùÓгÌÐò¡¢vs2005¡¢tools£¬Ð´µÃ²»×¼È·£©£ ......
the content of element type "jboss" must matched loader-respository ,jmx-name,enforce-ejb-restriction,
security-domain,missing-method-permission-excluded-mode,unauthenticated-principal,exception-on-rollback,
webservices,enterprice-beans,assembly-descriptor,resource-managers,invoker-proxy-bin ......