here is the code
XmlDocument doc = new XmlDocument();
doc.Load(Server.MapPath("~/out.xml"));
XmlNodeList nodes = doc.GetElementsByTagName("BankcheckEnhanced");
for (int i = 0; i < nodes.Count; i++)
{
XmlElement Element = (XmlElement)nodes[i];
try
{
BEResult = GetInnerValue(Element,"Result");
BEScore = GetInnerValue(Element, "Score");
BEAccountIssuer = GetInnerValue(Element, "AccountIssuer");
BEOtherAccountsFoundForIssuer = GetInnerValue(Element, "OtherAccountsFoundForIssuer");
}
catch (Exception ex)
{
}
}
another method is required
private static string GetInnerValue(XmlElement Element, string tagName)
{
return Element.GetElementsByTagName(tagName)[0].InnerText;
}
A blog about web application development mainly on backend side
Subscribe to:
Post Comments (Atom)
What is DaemonSet in Kubernetes
A DaemonSet is a type of controller object that ensures that a specific pod runs on each node in the cluster. DaemonSets are useful for dep...
-
XmlDocument xdoc = new XmlDocument(); xdoc.Load(Server.MapPath("~/pp1.xml")); string PersonCount = xdoc.DocumentElement.SelectNode...
-
A DaemonSet is a type of controller object that ensures that a specific pod runs on each node in the cluster. DaemonSets are useful for dep...
-
Here is the code: <%@ Page Language="C#" CodeFile="~/listen.aspx.cs" Inherits="listenerTest.listen" %> ...
No comments:
Post a Comment