Make properties case insensitive

Add unimplemented boxes to Log File.
This commit is contained in:
Rich committed 2011-10-06 14:43:51 +00:00
1 parent 12a9006816
commit faf4e1b5d9
2 files changed
+26 -5

No files matched your search

@@ -54,7 +54,9 @@ namespace VEPROMS.CSLA.Library
}
private XmlNode GetGroup(string group)
{
XmlNodeList xl = _XmlContents.DocumentElement.SelectNodes(string.Format("//{0}", group));
//XmlNodeList xl = _XmlContents.DocumentElement.SelectNodes(string.Format("//{0}", group));
XmlNodeList xl = _XmlContents.DocumentElement.SelectNodes(
string.Format("//*[translate(local-name(), 'ABCDEFGHIJKLMNOPQRSTUVWXYZ','abcdefghijklmnopqrstuvwxyz')='{0}']", group.ToLower()));
switch (xl.Count)
{
case 0: // No nodes found
@@ -69,7 +71,9 @@ namespace VEPROMS.CSLA.Library
}
private XmlAttribute GetItem(XmlNode xx, string item)
{
XmlNodeList xl = xx.SelectNodes(string.Format("@{0}", item));
//XmlNodeList xl = xx.SelectNodes(string.Format("@{0}", item));
XmlNodeList xl = xx.SelectNodes(
string.Format("//@*[translate(local-name(), 'ABCDEFGHIJKLMNOPQRSTUVWXYZ','abcdefghijklmnopqrstuvwxyz')='{0}']", item.ToLower()));
switch (xl.Count)
{
case 0: // No nodes found