HasXPath Method
Determines whether a specific element exists in the document.
Syntax
ANSI (Cross Platform) int HasXPath(const char* lpszXPath); Unicode (Windows) INT HasXPath(LPCWSTR lpszXPath);
- (BOOL)hasXPath:(NSString*)XPath;
#define MID_SOAP_HASXPATH 10 IPWORKS_EXTERNAL int IPWORKS_CALL IPWorks_SOAP_Do(void *lpObj, int methid, int cparam, void *param[], int cbparam[], int64 *lpllVal);
Remarks
This method determines whether a particular XPath exists within the document. This may be used to check if a path exists before setting it via XPath.
This method returns True if the xpath exists, False if not.
See XPath for details on the XPath syntax.
Error Handling (C++)
This method returns a Boolean value; after it returns, call the GetLastErrorCode() method to obtain its result code; 0 indicates success, while a non-zero error code indicates that this method encountered an error during its execution. If an error occurs, the GetLastError() method can be called to retrieve the associated error message.