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

ÈçºÎ¶ÔxmlÄÚÈÝÊý¾Ý½øÐÐ±È½Ï - VC/MFC / HTML/XML

ÈçºÎ¶ÔxmlÄÚÈÝÊý¾Ý½øÐбȽÏ
ÀýÈ磺
<?xml version='1.0' encoding='utf-8'?>
  <TestLIST>
  <PID>40</PID>
  <TestName>ÉîÛÚÊÐ</TestName>
  <Address>ÉîÛÚÊÐ</Address>
  </TestLIST>
  <Test1LIST>
  <TId>6115300001</TId>
  <Tdate>2009-02-12</Tdate>
  <TestID>40</TestID>
  <TTName />
  </Test1LIST>
  <Test1LIST>
  <TId>6115300001</TId>
  <Tdate>2009-02-12</Tdate>
  <TestID>41</TestID>
  <TTName />
  </Test1LIST>

ÒªÈçºÎÅжÏPIDÓëTestIDµÄÖµÊÇ·ñÏàµÈ£¿
½«Á½¸ö½ÚµãµÄÖµ¶Á³öÀ´°¡
²Î¿¼:
TinyXML

Ö»ÄÜ×Ô¼º°ÑÖµ¶Á³öÀ´±È½Ï£¬Ã»ÓÐ×Ô¶¯±È½ÏÈí¼þ¡£

xml½âÎöÆ÷ºÜ¶à£¬ TinyXml¿ÉÒÔ£¬ÎÒÒ²Ôø¾­ÉÏ´«¹ýÒ»¸öxml½âÎöÆ÷£¬Äã¿ÉÒÔÈ¥¿´ÎÒµÄÉÏ´«Îļþ¡£

ÎÒÊÇÏëÔÚC#ÏÂÃæʵÏֱȽϣ¬²¢Êä³ö½á¹û

Ë­µÄPID?

Ë­µÄTestID?

ÓÃMSXML DOM ,XPathÈ¡Öµ£¬È»ºó±È½Ï

ÅжÏTestID=PIDµÄÖµ

pSubNode = pCurNode->GetfirstChild(); 
pNextSubNode = pSubNode->GetfirstChild()->GetnextSibling(); 
ÀàËÆÓÚÕâÑùÈ¡Öµ³öÀ´¾ÍÄܱȽϰɣ¬C++ϵĴúÂë

MSXML£¬ÏµÍ³×Ô´øµÄ¾Í¹»ÁË£¬²éMSDNÓÐÓ÷¨


Ïà¹ØÎÊ´ð£º

C# DataSetµ¼³öxml Åú´¦Àí(Ñ­»·)µÃÔõô´¦Àí

DataSetµ¼³öxml Åú´¦Àí(Ñ­»·)µÃÔõô´¦Àí
XMLÎļþ
<A>
      <B>
        <C>
        </C>
  &nb ......

php ¶ÁxmlÎļþ

ÎÒÔÚʹÓÃDom¶ÁxmlÎļþʱÓöµ½Ò»¸öÎÊÌ⣬¾ÍÊǵ±123.xmlÎļþ²»´æÔÚʱ£¬load(123.xml)¾Í±¨´í£¬ÔõôÑù²ÅÄÜÅжÏÕâ¸öÎļþÊÇ·ñ´æÔÚ°¡£¬ÎÒÒªµÄÊÇ´æÔÚʱ¾Í¶ÁÈ¡£¬²»´æÔÚ¾ÍÌø¹ý£¬¼ÌÐøµÄ¶ÁÏÂÒ»¸öxml£¬Çë½Ì¸÷λ´óÏÀ£¬

$file ......

XML Schema ÎÊÌâ

ÇóÖú¸÷λ´óϺ£¬Ñ§Éú³É¼¨µ¥XML SchemaµÄÉè¼Æ,XMLÎĵµµÄÉè¼Æ£¬°üº¬µÄÖ÷ÒªÐÅÏ¢£ºÑ§ºÅ¡¢Ñ§ÉúÐÕÃû¡¢Ïµ²¿¡¢°à¼¶¡¢¿¼ÊÔÈÕÆÚ¡¢ÈονÌʦ¡¢Ñ§·Ö¡¢Ñ§Ê±¡¢ÐÞÏ°Àà±ð¡¢Java³ÌÐòÉè¼Æ³É¼¨,ÍøÂç»ù´¡ÖªÊ¶³É¼¨¡¢ÍøÒ³ÖÆ×÷³É¼¨¡¢Èí¼þ¹¤³Ì³ ......

html¿Ø¼þ¶¯Ì¬¼ÓÔØÎÊÌâ

JSµÄÎÊÌ⣺
JScript code:
<script language="javascript">
function getDates()
{
document.getElementById("form1").tt_cc.value="ÎÒ°®JS"; ......

ÓÐûÓÐphp´úÂë¿ÉÒÔ½«excelת³ÉxmlµÄ

ÈçÌ⣬ÓÐûÓÐÕâÑùµÄphp´úÂë¡£ÎÒÏÖÔÚÏ뽫excelµÄÄÚÈݲåÈëmysqlÊý¾Ý¿â£¬Ï£Íû¿ÉÒÔ½«excelת³Éxml,È»ºó½âÎöxml²åÈëÊý¾Ý¿âÖС£Èç¹ûÓÐÕâÑùµÄ´úÂ룬ÉõÖÁÊÇÓÐÃûµÄ´úÂ룬һ¶¨Òª¸æËßÎÒ°¡¡£
ÏȶÁ excel => È»ºóÉú³É xml = ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ