Function to Get Element List of XML :
public List<string> getElements(string xmlfile)
{
List<string> ElementList = new List<string>();
XmlReader reader = XmlReader.Create(new StringReader(xmlfile));
while (reader.Read())
{
if (reader.NodeType.Equals(XmlNodeType.Element))
{
ElementList.Add(reader.Name);
}
}
return ElementList;
}
Function to Get List of Attribute Name XML :
public List getAttributeName(string xmlfile)
{
List AttributeNameList = new List();
XmlReader reader = XmlReader.Create(new StringReader(xmlfile));
while (reader.Read())
{
if (reader.NodeType.Equals(XmlNodeType.Element))
{
if (reader.HasAttributes)
{
for (int attInd = 0; attInd < reader.AttributeCount; attInd++)
{
reader.MoveToAttribute(attInd);
AttributeNameList.Add(reader.Name);
}
}
}
}
return AttributeNameList;
}
Function to Get List of Attribute Value XML :
public List getAttributeValue(string xmlfile)
{
List<string> AttributeValueList = new List<string>();
XmlReader reader = XmlReader.Create(new StringReader(xmlfile));
while (reader.Read())
{
if (reader.NodeType.Equals(XmlNodeType.Element))
{
if (reader.HasAttributes)
{
for (int attInd = 0; attInd < reader.AttributeCount; attInd++)
{
reader.MoveToAttribute(attInd);
AttributeValueList.Add(reader.Value);
}
}
}
}
return AttributeValueList;
}
Special thanks to (hackingsetting50@gmail.com) for exposing my cheating husband. Right with me i got a lot of evidences and proofs that shows that my husband is a fuck boy and as well a cheater ranging from his text messages, call logs, whats-app messages, deleted messages and many more, All thanks to (hackingsetting50@gmail.com), if not for him i will never know what has been going on for a long time. Contact him now and thank me later.
LikeLike
Special thanks to (hackingsetting50@gmail.com) for exposing my cheating husband. Right with me i got a lot of evidences and proofs that shows that my husband is a fuck boy and as well a cheater ranging from his text messages, call logs, whats-app messages, deleted messages and many more, All thanks to (hackingsetting50@gmail.com), if not for him i will never know what has been going on for a long time. Contact him now and thank me later.
LikeLike