Thursday, March 17, 2016

XMLReader Practice and Splitting strings


The Xml reader is the assignment of the information given to the project in the Xml.
Notes for the future:

  • The Reader requires System.Xml;
  • Reference the Xml Doc and load it from file location
    • File location can be either a local file or HTTP URL
    • You can paste the local file location in a browser to get a URL
  • Use loops to iterate through nodes.
  • Check if the nodes you have is the node you are looking for.
  • Set a default value in case the node cannot be found.
  • Most methods are returned as strings.
    • float.Parse
    • For multiple numbers in the text, split the string and assign the array values.

No comments:

Post a Comment