Updated Network class to include XML parsing