Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void listarAulas()
- {
- try
- {
- XmlDocument listaXML = ConsultorWeb.consultaXML(Config.getInstance().getURLListaAulas());
- XmlReader reader = XmlReader.Create(new System.IO.StringReader(listaXML.InnerXml));
- aulas = new String[listaXML.FirstChild.ChildNodes.Count];
- int i = 0;
- while (reader.Read())
- if (reader.NodeType == XmlNodeType.Element && reader.Name == "aula")
- {
- aulas[i] = reader.GetAttribute("nombre").ToUpper();
- Console.WriteLine(i + " .- " + aulas[i++]);
- }
- }
- catch (Exception e)
- {
- lanzarExcepcion(e);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement