how to copy attribute XML node to specified structure or array with one command for example
public struct PossibilityJavamed
{
public string derv;
public string dervt;
public string num;
public string gend;
}
PossibilityJavamed tmpstructnew = tmpstruct;
ArrayList alstout = new ArrayList();// my array has some initial value
XmlNodeList nodeList;
nodeList = docHarf.SelectNodes("//adatesmi");
for (int i = 0; i < nodeList.Count; i++)
{
tmpstructnew.derv = nodeList[i].Attributes["derv"].Value;
tmpstructnew.dervt = nodeList[i].Attributes["dervt"].Value;
tmpstructnew.num = nodeList[i].Attributes["num"].Value;
tmpstructnew.gend = nodeList[i].Attributes["gend"].Value;
alstout.Add(tmpstructnew);
}
but i will do it in one command