Functions | |
bool | mdlElement_isXMLFragment (MSElementCP pElm) |
Determines whether or not the input element is an XML Fragment Element. More... | |
bool | mdlElement_isXMLFragmentByAppIDAndType (MSElementCP pElm, UInt16 *pAppID, UInt16 *pAppType) |
Determines whether or not the input element is an XML Fragment Element based on optional appId and appType values. More... | |
bool | mdlElement_hasXMLFragmentAttachment (MSElementP pElm, UInt16 *pAppID, UInt16 *pAppType) |
Determines whether or not the input element has an XML Fragment attachment. More... | |
StatusInt | mdlXML_addXMLFragmentAttachmentScanTest (DgnPlatform::ScanCriteria *pScanCriteria, UInt16 *pAppID, UInt16 *pAppType) |
Sets the scan criteria to find elements with XMLFragment attachments. More... | |
StatusInt | mdlXML_addXMLFragmentElementScanTest (DgnPlatform::ScanCriteria *pScanCriteria, UInt16 *pAppID, UInt16 *pAppType) |
Sets the scan criteria to find XMLFragment elements. More... | |
StatusInt | mdlXMLElement_getAppInfo (UInt16 *pAppID, UInt16 *pAppType, MSElementCP pElm) |
Retrieves the application identifier and/or type from the given XML Fragment Element. More... | |
StatusInt | mdlXMLElement_setNonModelCategory (MSElementDescrP pDescr, bool isNonModelElement) |
Sets the non-model flag for a XMLFragment element. More... | |
Determines whether or not the input element has an XML Fragment attachment.
[in] | pElm | Element to test. |
[in] | pAppID | Pointer to variable containing application id to search for. (or NULL if criteria not applied) |
[in] | pAppType | Pointer to variable containing application type to search for. (or NULL if criteria not applied) |
bool mdlElement_isXMLFragment | ( | MSElementCP | pElm | ) |
Determines whether or not the input element is an XML Fragment Element.
XMLInDgn is the set of functionality that allows XML to be stored in DGN files. Data can be stored as XML Elements, or XML Attachments to elements.
XML DGN Element and XML Schema DGN Element
XML DGN Elements will typically hold well-formed fragments of XML documents. It will also contain additional ids to indicate which application it belongs to and the subtype within that application. It may contain a reference to the applicable schema.
XML DGN Element Attachment
An element attachment known to contain XML data. It will also contain additional ids to indicate which application it belongs to and the subtype within that application. It may contain a reference to the applicable schema. XML DGN Element attachments will typically hold well-formed fragments of XML documents.
Include files
To use the API you include the following:
Linking
To use the API you link the following:
Function Sets
The following functions allow you to determine if an element is an XML Fragment element or has XML Fragment linkage attachments.
The following functions allow you to specify scan criteria to find XMLFragment elements or elements with XMLFragment linkage attachments.
[in] | pElm | Element to test. |
bool mdlElement_isXMLFragmentByAppIDAndType | ( | MSElementCP | pElm, |
UInt16 * | pAppID, | ||
UInt16 * | pAppType | ||
) |
Determines whether or not the input element is an XML Fragment Element based on optional appId and appType values.
[in] | pElm | Element to test. |
[in] | pAppID | Pointer to variable containing application id to search for. (or NULL if criteria not applied). |
[in] | pAppType | Pointer to variable containing application type to search for. (or NULL if criteria not applied). |
StatusInt mdlXML_addXMLFragmentAttachmentScanTest | ( | DgnPlatform::ScanCriteria * | pScanCriteria, |
UInt16 * | pAppID, | ||
UInt16 * | pAppType | ||
) |
Sets the scan criteria to find elements with XMLFragment attachments.
[in,out] | pScanCriteria | Scan criteria. |
[in] | pAppID | Pointer to variable containing application id to search for. (or NULL if criteria not applied) |
[in] | pAppType | Pointer to variable containing application type to search for. (or NULL if criteria not applied) |
StatusInt mdlXML_addXMLFragmentElementScanTest | ( | DgnPlatform::ScanCriteria * | pScanCriteria, |
UInt16 * | pAppID, | ||
UInt16 * | pAppType | ||
) |
Sets the scan criteria to find XMLFragment elements.
[in,out] | pScanCriteria | Scan criteria. |
[in] | pAppID | Pointer to variable containing application id to search for. (or NULL) |
[in] | pAppType | Pointer to variable containing application type to search for. (or NULL) |
Retrieves the application identifier and/or type from the given XML Fragment Element.
[out] | pAppID | The ID of the "app" to which this XMLFragment Element belongs (typically an application's LinkageID). Pass NULL if data not needed. |
[out] | pAppType | The App type of XML Fragment Element. Pass NULL if data not needed. The app type is an application assigned value which uniquely identifies the XML Fragment within the application. |
[in] | pElm | XML Fragment Element. |
StatusInt mdlXMLElement_setNonModelCategory | ( | MSElementDescrP | pDescr, |
bool | isNonModelElement | ||
) |
Sets the non-model flag for a XMLFragment element.
[in,out] | pDescr | Element whose non-model flag is set. |
[in] | isNonModelElement | true if element to be stored in dictionary model. |