SQL 2000 - Retrieve ID value from XML field

  • (SQL 200) I have a field that I want to retrieve the BinTypeID from.

    Here is the XML:

    Does anyone know the easiest way to do this? Can these values be used in a oin so I can retrieve the description from a lookup table?

  • Replace all instances of < with &lt; to post your XML...

    Ryan Randall

    Solutions are easy. Understanding the problem, now, that's the hard part.

  • Apologies. Here's the XML:

    &ltNewDataSet&lt

    &ltFormData&lt

    &ltRequestTypeID&lt1005&lt/RequestTypeID&lt

    &ltRequestTypeText&ltAdditional Bin Request&lt/RequestTypeText&lt

    &ltFormVersion&lt1.0.0&lt/FormVersion&lt

    &ltNotes&ltPLEASE DELIVER AN ADDITIONAL GREY TO THE BACK&lt/Notes&lt

    &ltEscalate&ltFalse&lt/Escalate&lt

    &ltBinTypeID&lt20&lt/BinTypeID&lt

    &ltBinTypeText&ltRecycling Bin 240 litre (grey)&lt/BinTypeText&lt

    &lt/FormData&lt

    &ltEligibilityFailure&lt

    &ltID /&lt

    &ltDescription /&lt

    &lt/EligibilityFailure&lt

    &lt/NewDataSet&lt

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply