Skip to content

Commit 264030c

Browse files
committed
additional documentation
1 parent 9280f39 commit 264030c

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

OpenTrans.net/XmlUtils.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ namespace OpenTrans.net
2828
{
2929
class XmlUtils
3030
{
31+
/// <summary>
32+
/// reads a certain attribute value
33+
/// </summary>
3134
public static string AttributeText(XmlNode node, string attributeName, string defaultText = "")
3235
{
3336
try
@@ -46,6 +49,9 @@ public static string AttributeText(XmlNode node, string attributeName, string de
4649
} // !AttributeText()
4750

4851

52+
/// <summary>
53+
/// reads the value from given xpath and interprets the value as boolean
54+
/// </summary>
4955
public static bool NodeAsBool(XmlNode node, string xpath, XmlNamespaceManager nsmgr = null, bool defaultValue = true)
5056
{
5157
if (node == null)
@@ -72,6 +78,9 @@ public static bool NodeAsBool(XmlNode node, string xpath, XmlNamespaceManager ns
7278
} // !NodeAsBool()
7379

7480

81+
/// <summary>
82+
/// reads the value from given xpath and interprets the value as string
83+
/// </summary>
7584
public static string NodeAsString(XmlNode node, string xpath, XmlNamespaceManager nsmgr = null, string defaultValue = "")
7685
{
7786
if (node == null)
@@ -121,6 +130,9 @@ public static int NodeAsInt(XmlNode node, string xpath, XmlNamespaceManager nsmg
121130
} // !NodeAsInt()
122131

123132

133+
/// <summary>
134+
/// reads the value from given xpath and interprets the value as decimal
135+
/// </summary>
124136
public static decimal? NodeAsDecimal(XmlNode node, string xpath, XmlNamespaceManager nsmgr = null, decimal? defaultValue = null)
125137
{
126138
if (node == null)

0 commit comments

Comments
 (0)