Updated XML Parser, added method and variable attributes