Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: msule
  • Order by date
  1. msule

    How to handle optional elements when deserializing

    Thanks, are problem was not checking for null, we were getting an exception because there was no object. We fixed this by initializing our objects in the class when we declared them. One of those, “slap yourself in the head”, mistakes.
  2. msule

    How to handle optional elements when deserializing

    We are using C# and what I ment by values is the data.
  3. msule

    How to handle optional elements when deserializing

    Is there a efficient way to get the values from the XML with out throwing an "Object not set to an instance of an object" exception, when you have elements that may or may not be there. I know "if" statements would work, but that seems inefficient concerning the size of the xml documents...

Part and Inventory Search

Back
Top