Parsing XML with ASP and Data Type Troubles

Discussion in 'C#' started by Pahrump Mike, Oct 27, 2007.

  1. #1
    I am trying to parse XML using ASP and some of the data is invalid. The xml schema document shows that the data should be integer, but the data contains a bunch of 'NA' s when there is no data available. I have no control over the data, what can I do to avoid throwing this error?

    The exact error is:

    Error parsing 'NA' as integer datatype. The element: 'score' has an invalid value according to its data type. -1072897660

    Microsoft VBScript runtime error '800a01a8'

    Object required: ''
     
    Pahrump Mike, Oct 27, 2007 IP
  2. Pahrump Mike

    Pahrump Mike Life Is Good

    Messages:
    190
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    123
    #2
    I've found another way to get what I need. Thanks.
     
    Pahrump Mike, Oct 27, 2007 IP