Witam. Piszę w c# program i chciałem pobierać dane z serwera w postaci XML, jednak podczas działania programu otrzymuję komunikat o błędzie „Object reference not set to an instance of an object.” w lini
XmlNode dom = main.serwerostatni.GetElementsByTagName("games").Item(0).ChildNodes.Item(1).LastChild;
natomiast samo XmlNode dom = main.serwerostatni.GetElementsByTagName("games").Item(0);
działa poprawnie.
`main.serwerostatni` jest utworzone przez
```csharp
public XmlDocument serwerostatni = new XmlDocument();