المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Check if expath exist



C# Programming
03-08-2010, 02:51 PM
I have an XMLDocuemt supplied by a 3rd party. I have an xpath expression checking for value for element "x". The problem is sometimes element "x" does not exist and im getting a error "bject reference not set to an instance of an Object".
How do i check if element x (using xpath) exist