QuickBooks Integrator 2020 C++ Edition

Questions / Feedback?

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_QBOBJECT_HASXPATH 11

INQB_EXTERNAL int INQB_CALL InQB_QBObject_Do(void *lpObj, int methid, int cparam, void *param[], int cbparam[], int64 *lpllVal);

Remarks

The XPath property implements a subset of the XML XPath specification, allowing you to point to specific elements in the XML response.

The path is a series of one or more element accessors separated by '/'. The path can be absolute (starting with '/') or relative to the current XPath location.

Setting the XPath property to an xpath that does not exist will cause an error. You can use the HasXPath method to determine if a particular xpath exists before setting it with XPath.

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.

Copyright (c) 2021 /n software inc. - All rights reserved.
QuickBooks Integrator 2020 C++ Edition - Version 20.0 [Build 7941]