try
{
XmlDocument doc =
doc.Load("sampleXML.xml");
nsmg.AddNamespace("test", http://www.test.com);
alignments = doc.SelectNodes("//test:Alignment", nsmg).Count; //return null
MessageBox.Show(alignments.ToString());
}
{MessageBox.Show(ex.ToString());}