How to go to brother node in xml file, i want to go step back to parent node and then go step forward to brother node
<Kms_Section>ffffff</Kms_section>
<Kms_Description>bbbb</kms_description>
I think you can use my earlier example. Instead of doing
XmlNodeList nodes = doc.DocumentElement.SelectNodes("/KMS_doc/KMS_section");
you do
XmlNode parent = doc.DocumentElement.SelectSingleNode("KMS_doc");
and then you go with
XmlNodeList nodes = parent.SelectNodes("KMS_section");
you process all elements inside of nodes and then you go with
nodes = parent.SelectNodes("KMS_dataSection");
and process those elements.
NextNode...XmlNode.NextSibling?