Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset

Lire les attributs à partir d’un noeud

Utilisation,de,la,classe,'XmlTextReader',pour,lire,un,document,XML
{filelink=16415}

/*
 Microsoft Public License (Ms-PL)
 http://dbmlmanager.codeplex.com/license
*/
 
#region using
using System;
using System.Xml;
#endregion
 
nomspace DbmlManager.Lib.Utility
{
  #region Class Docs
  ///
<summary>
  /// Summary description for XmlUtil.
  /// </summary>
 
  #endregion
 
  public class XmlUtil
  {
 
    #region GetAttrib(XmlNode noeud, string nom)
    public static string GetAttrib(XmlNode noeud, string nom)
    {
      if (noeud.Attributes == null)
        return null;
 
      if (noeud.Attributes[nom] == null)
        return null;
 
      return noeud.Attributes[nom].InnerText;
    }
    #endregion
 
  }
}

No comments yet.

Leave a Comment