zoukankan      html  css  js  c++  java
  • 读取xml字符串

     string strXml = @"<MessageData><pm_id>10</pm_id><pm_title>这是公司或者产品的名称</pm_title><pm_tel>this is telphone</pm_tel><pm_content>这是留⾔言内容</pm_content><pm_link>这是姓名</pm_link><pm_province>河南</pm_province><pm_city>郑州市</pm_city><pm_type>0</pm_type><cid>20</cid></MessageData>";
                XmlDocument xd = new XmlDocument();
                xd.LoadXml(strXml.Trim());
                XmlNode xnRoot = xd.SelectSingleNode("MessageData");
                if (xnRoot != null)
                {
                    Console.Write("pm_id="+ xnRoot.ChildNodes[0].InnerText.ToString());
                   
                }

  • 相关阅读:
    Jenkins 插件管理
    持续集成 目录
    gitlab 目录
    jenkins 目录
    POJ 2828
    POJ 2782
    POJ 2725
    POJ 2769
    POJ 2739
    POJ 2707
  • 原文地址:https://www.cnblogs.com/zhoulove/p/3596463.html
Copyright © 2011-2022 走看看