I have an XML reader, but I get an error when I try to read XML from a URL (external source).
This is the code I have:
XmlReader xmlReader = XmlReader.Create("http://dl.bukkit.org/api/1.0/downloads/projects/craftbukkit/view/build-1330/");
while (xmlReader.Read())
{
}
Very simple code, but it returns an error that states:
Data at the root level is invalid. Line 1, position 1.
Any idea? I cannot edit XML because it is not mine.
Thanks in advance!
source
share