XML Fragments which may be stored in a design file. More...
Classes | |
struct | XmlFragment |
Class used to define XML Fragments that can be stored in the design file. More... | |
struct | XmlFragmentList |
Class used to process list of XML Fragments. More... | |
Typedefs | |
typedef int | deleteXMLFragmentCallback (XMLFragmentListP pXMLFragmentList, CallbackArgP pUserParams) |
UserFunction is called for every XMl fragment that passes the criteria setup in the mdlXMLFragmentList_stripFromElement . More... | |
Functions | |
StatusInt | mdlXMLFragment_appendToXmlDom (XmlDomRef domRef, XmlNodeRef nodeRef, XMLFragmentP pThis) |
Appends the XML Fragment text to a node in an XML Dom. More... | |
StatusInt | mdlXMLFragment_appendToXmlDomExt (XmlDomRef domRef, XmlNodeRef nodeRef, XMLFragmentP pThis, bool bFreeThreaded) |
Appends the XML Fragment text to a node in an XML Dom. More... | |
StatusInt | mdlXMLFragment_createXmlDom (XmlDomRef *pDomRef, XMLFragmentP pThis) |
Creates an non FreeThreaded XML DOM from the XML Fragment. More... | |
StatusInt | mdlXMLFragment_createFreeThreadedXmlDom (XmlDomRef *pDomRef, XMLFragmentP pThis) |
Creates a FreeThreaded XML DOM from the XML Fragment. More... | |
StatusInt | mdlXMLFragment_setTextFromXMLNode (XMLFragmentP pThis, XmlNodeRef nodeRef) |
Sets the XML Text for an XML Fragment using nodeRef. More... | |
StatusInt | mdlXMLFragment_setTextFromXMLDom (XMLFragmentP pThis, XmlDomRef domRef) |
Sets the XML Text for an XML Fragment using the XmlDom Root Element. More... | |
StatusInt | mdlXMLFragment_setTextIfWellFormed (XMLFragmentP pThis, WChar const *const pText) |
Sets the XML Text for an XML Fragment only if pText is a Well-Formed XML fragment. More... | |
StatusInt | mdlXMLFragmentList_appendToXmlDom (XmlDomRef domRef, XmlNodeRef nodeRef, XMLFragmentListP pThis) |
Appends all the XML Fragment text from XMLFragmentList into a non-free threaded XML Dom. More... | |
StatusInt | mdlXMLFragmentList_appendToXmlDomExt (XmlDomRef domRef, XmlNodeRef nodeRef, XMLFragmentListP pThis, bool bFreeThreaded) |
Appends all the XML Fragment text from XMLFragmentList into a XML Dom. More... | |
StatusInt | mdlXMLFragmentList_createXmlDom (XmlDomRef *pDomRef, XMLFragmentListP pThis, WChar const *const pRootElementName) |
Creates an non FreeThreaded XML Dom from the XML FragmentList. More... | |
StatusInt | mdlXMLFragmentList_createFreeThreadedXmlDom (XmlDomRef *pDomRef, XMLFragmentListP pThis, WChar const *const pRootElementName) |
Creates a Free Threaded XML Dom from the XML FragmentList. More... | |
XMLFragmentListP | mdlXMLFragmentList_constructFromXmlDom (XmlDomRef domRef, WChar *pSchemaURN, UShort appID, UShort appType) |
Constructs an XML Fragment List containing a single XML Fragment from the XMLDom. More... | |
XMLFragmentListP | mdlXMLFragmentList_constructFromXmlNode (XmlNodeRef nodeRef, WChar *pSchemaURN, UShort appID, UShort appType) |
Constructs an XML Fragment List containing a single XML Fragment from the XMLDomNode. More... | |
XMLFragmentListP | mdlXMLFragmentList_construct (WChar *pText, WChar *pSchemaURN, UShort appID, UShort appType) |
XML Fragment/FragmentList Functions More... | |
StatusInt | mdlXMLFragmentList_free (XMLFragmentListP *ppThis) |
Frees memory of the XML Fragment List. More... | |
StatusInt | mdlXMLFragment_getAppID (UShort *pAppID, XMLFragmentCP pThis) |
Retrieves the app identifier from the given XML Fragment. More... | |
StatusInt | mdlXMLFragment_setAppID (XMLFragmentP pThis, UShort appID) |
Sets the app identifier for the given XML Fragment. More... | |
StatusInt | mdlXMLFragment_getAppType (UShort *pAppType, XMLFragmentCP pThis) |
Retrieves the app type from the given XML Fragment. More... | |
StatusInt | mdlXMLFragment_setAppType (XMLFragmentP pThis, UShort appType) |
Sets the app type for the given XML Fragment. More... | |
StatusInt | mdlXMLFragment_getSchemaURN (WChar **ppSchemaURN, XMLFragmentCP pThis) |
Get the Schema URN from an XML Fragment. More... | |
StatusInt | mdlXMLFragment_setSchemaURN (XMLFragmentP pThis, const WChar *pSchemaURN) |
Sets the Schema URN for an XML Fragment. More... | |
StatusInt | mdlXMLFragment_getText (WChar **ppText, XMLFragmentCP pThis) |
Get the XML Text from an XML Fragment. More... | |
StatusInt | mdlXMLFragment_setText (XMLFragmentP pThis, const WChar *pText) |
Sets the XML Text for an XML Fragment. More... | |
StatusInt | mdlXMLFragment_getIsCompressed (bool *pIsCompressed, XMLFragmentCP pThis) |
Get the "is compressed" flag value from an XML Fragment. More... | |
StatusInt | mdlXMLFragment_setIsCompressed (XMLFragmentP pThis, bool isCompressed) |
Sets the "is compressed" flag value for an XML Fragment. More... | |
StatusInt | mdlXMLFragmentList_createXMLElementDescriptor (MSElementDescrH ppDescr, XMLFragmentListP *ppThis, bool freeXMLFragmentList) |
Creates a XMLFragment element descriptor (chain) from all entries in a XMLFragmentList. More... | |
XMLFragmentListP | mdlXMLFragmentList_constructFromXMLFragmentElement (MSElementDescrCP pDescr) |
Constructs an XML Fragment List from an XML Element element descriptor. More... | |
StatusInt | mdlXMLFragmentList_attachToElement (XMLFragmentListP *ppXMLFragmentList, MSElementDescrH ppElmDscr, bool freeXMLFragmentList) |
Attaches the XMLFragmentList entries to the first element of a descriptor chain. More... | |
StatusInt | mdlXMLFragmentList_extractFromElement (XMLFragmentListP *ppXMLFragmentList, MSElementP pElm) |
Retrieves a list of all XMLFragments attached to the given element descriptor. More... | |
StatusInt | mdlXMLFragmentList_extractFromElementByAppIDAndType (XMLFragmentListP *ppXMLFragmentList, MSElementP pElm, const UShort *pAppID, const UShort *pAppType) |
Retrieves a list of XMLFragments attached to the given element descriptor using the search criteria of App ID and/or App Type. More... | |
StatusInt | mdlXMLFragmentList_stripAllFromElement (XMLFragmentListP *ppXMLFragmentList, MSElementP pElm) |
Deletes all XMLFragment attachments from the input element. More... | |
StatusInt | mdlXMLFragmentList_stripFromElementByAppIDAndType (XMLFragmentListP *ppXMLFragmentList, MSElementP pElm, UShort *pAppID, UShort *pAppType) |
Deletes XMLFragment attachments from the input element using the search criteria of App ID and/or App Type. More... | |
UInt32 | mdlXMLFragmentList_getCount (XMLFragmentListP pThis) |
Retrieves the count of XMLFragments in an XML Fragment List. More... | |
StatusInt | mdlXMLFragmentList_append (XMLFragmentListP *ppThis, XMLFragmentP pAppendFragment) |
Appends an XML Fragment to an XML Fragment List. More... | |
StatusInt | mdlXMLFragmentList_prepend (XMLFragmentListP *ppThis, XMLFragmentP pPrependFragment) |
Prepends an XML Fragment to an XML Fragment List. More... | |
StatusInt | mdlXMLFragmentList_duplicate (XMLFragmentListP *ppCopy, XMLFragmentListP pThis) |
Creates a duplicate XML Fragment list from all entries in the given XML Fragment List. More... | |
StatusInt | mdlXMLFragmentList_duplicateSingle (XMLFragmentListP *ppCopy, XMLFragmentListP pThis) |
Creates a duplicate XML Fragment list from only the current XML Fragment List entry. More... | |
Public XMLFragmentP | mdlXMLFragmentList_getXMLFragmentAtIndex (XMLFragmentListP pThis, UInt32 index) |
Retrieves the XML Fragment from the input XML Fragment List Entry. More... | |
XMLFragmentP | mdlXMLFragmentList_getXMLFragment (XMLFragmentListP pThis) |
Retrieves the first XML Fragment from the input XML Fragment List Entry. More... | |
XML Fragments which may be stored in a design file.
List of XML Fragments.
The XmlFragment class provides methods for storing XML-formatted data into a design file. The data may be stored in an XML Fragment element, as a linkage or XAttribute data.
An XML Fragment consists of:
For performance, the XML Fragment API does not validate your XML fragments against an XML Schema or check them for well-formedness. You may use an XML parser for validation. The SchemaURN is provided for your reference, but may be utilized in future versions of MicroStation. Also for performance, the XML fragments are not compressed by default. If a large XML Text string must be attached to an element, use XmlFragment::SetIsCompressed to specify that it be compressed.
Typical method of attaching XML Fragment Linkage. Example:
The XmlFragmentList class provides methods for creating, maintaining and processing a list of XML Fragments. This is useful when dealing with multiple XML Fragment linkages on a single element. They are not as useful when dealing with XML Fragment elements which can only store the data for a single XmlFragment object.
Typical method of extrach XML Fragment Linkage(s) from an element. Example:
typedef int deleteXMLFragmentCallback(XMLFragmentListP pXMLFragmentList,CallbackArgP pUserParams) |
UserFunction is called for every XMl fragment that passes the criteria setup in the mdlXMLFragmentList_stripFromElement
.
[in] | pXMLFragmentList | The XML fragment that matches the criteria from the mdlXMLFragmentList_stripFromElement . |
[in] | pUserParams | the user data passed to the mdlXMLFragmentList_stripFromElement function. |
StatusInt mdlXMLFragment_appendToXmlDom | ( | XmlDomRef | domRef, |
XmlNodeRef | nodeRef, | ||
XMLFragmentP | pThis | ||
) |
Appends the XML Fragment text to a node in an XML Dom.
[in] | domRef | DOM to insert XMLFragment into |
[in] | nodeRef | Node in DOM to append Fragment to |
[in] | pThis | XML Fragment to append |
StatusInt mdlXMLFragment_appendToXmlDomExt | ( | XmlDomRef | domRef, |
XmlNodeRef | nodeRef, | ||
XMLFragmentP | pThis, | ||
bool | bFreeThreaded | ||
) |
Appends the XML Fragment text to a node in an XML Dom.
[in] | domRef | DOM to insert XMLFragment into |
[in] | nodeRef | Node in DOM to append Fragment to |
[in] | pThis | XML Fragment to append |
[in] | bFreeThreaded | is domRef a freethreaded DOM? |
StatusInt mdlXMLFragment_createFreeThreadedXmlDom | ( | XmlDomRef * | pDomRef, |
XMLFragmentP | pThis | ||
) |
Creates a FreeThreaded XML DOM from the XML Fragment.
[in,out] | pDomRef | created Free Threaded XML DOM |
[in] | pThis | XML Fragment to append |
StatusInt mdlXMLFragment_createXmlDom | ( | XmlDomRef * | pDomRef, |
XMLFragmentP | pThis | ||
) |
Creates an non FreeThreaded XML DOM from the XML Fragment.
[in,out] | pDomRef | created non FreeThreaded XML DOM |
[in] | pThis | XML Fragment to append |
StatusInt mdlXMLFragment_getAppID | ( | UShort * | pAppID, |
XMLFragmentCP | pThis | ||
) |
Retrieves the app identifier from the given XML Fragment.
[out] | pAppID | The ID of the "app" to which this XMLFragment belongs (typically an application's LinkageID) |
[in] | pThis | XML Fragment. |
StatusInt mdlXMLFragment_getAppType | ( | UShort * | pAppType, |
XMLFragmentCP | pThis | ||
) |
Retrieves the app type from the given XML Fragment.
[out] | pAppType | App type of XML Fragment. |
[in] | pThis | XML Fragment. |
StatusInt mdlXMLFragment_getIsCompressed | ( | bool * | pIsCompressed, |
XMLFragmentCP | pThis | ||
) |
Get the "is compressed" flag value from an XML Fragment.
[out] | pIsCompressed | Pointer where to store is compressed flag value from XMLFragment. |
[in] | pThis | XML Fragment. |
StatusInt mdlXMLFragment_getSchemaURN | ( | WChar ** | ppSchemaURN, |
XMLFragmentCP | pThis | ||
) |
Get the Schema URN from an XML Fragment.
[out] | ppSchemaURN | Pointer to Schema URN string from XMLFragment. (Do not attempt to free) |
[in] | pThis | XML Fragment. |
StatusInt mdlXMLFragment_getText | ( | WChar ** | ppText, |
XMLFragmentCP | pThis | ||
) |
Get the XML Text from an XML Fragment.
[out] | ppText | Pointer to XML Text string from XMLFragment. (Do not attempt to free) |
[in] | pThis | XML Fragment. |
StatusInt mdlXMLFragment_setAppID | ( | XMLFragmentP | pThis, |
UShort | appID | ||
) |
Sets the app identifier for the given XML Fragment.
[in] | pThis | XML Fragment. |
[in] | appID | The ID of the "app" to which this XMLFragment belongs |
StatusInt mdlXMLFragment_setAppType | ( | XMLFragmentP | pThis, |
UShort | appType | ||
) |
Sets the app type for the given XML Fragment.
[in] | pThis | XML Fragment. |
[in] | appType | The type of this XMLFragment within the "app" to which it belongs |
StatusInt mdlXMLFragment_setIsCompressed | ( | XMLFragmentP | pThis, |
bool | isCompressed | ||
) |
Sets the "is compressed" flag value for an XML Fragment.
[in] | pThis | XML Fragment. |
[in] | isCompressed | Is compressed flag value to set |
StatusInt mdlXMLFragment_setSchemaURN | ( | XMLFragmentP | pThis, |
const WChar * | pSchemaURN | ||
) |
Sets the Schema URN for an XML Fragment.
[in] | pThis | XML Fragment. |
[in] | pSchemaURN | Schema URN to set (or NULL to delete Schema URN). |
StatusInt mdlXMLFragment_setText | ( | XMLFragmentP | pThis, |
const WChar * | pText | ||
) |
Sets the XML Text for an XML Fragment.
[in] | pThis | XML Fragment. |
[in] | pText | XML text to set (or NULL to delete XML text). |
StatusInt mdlXMLFragment_setTextFromXMLDom | ( | XMLFragmentP | pThis, |
XmlDomRef | domRef | ||
) |
Sets the XML Text for an XML Fragment using the XmlDom Root Element.
[in] | pThis | XML Fragment to set text |
[in] | domRef | XML Dom to set text from |
StatusInt mdlXMLFragment_setTextFromXMLNode | ( | XMLFragmentP | pThis, |
XmlNodeRef | nodeRef | ||
) |
Sets the XML Text for an XML Fragment using nodeRef.
[in] | pThis | XML Fragment to append |
[in] | nodeRef | Node to set text from |
StatusInt mdlXMLFragment_setTextIfWellFormed | ( | XMLFragmentP | pThis, |
WChar const *const | pText | ||
) |
Sets the XML Text for an XML Fragment only if pText is a Well-Formed XML fragment.
[in] | pThis | XML Fragment to set text |
[in] | pText | Text to validate and set |
StatusInt mdlXMLFragmentList_append | ( | XMLFragmentListP * | ppThis, |
XMLFragmentP | pAppendFragment | ||
) |
Appends an XML Fragment to an XML Fragment List.
[in,out] | ppThis | Combined list of XML Fragments. |
[in] | pAppendFragment | XML Fragment to append. (Pointer should not be freed since it is incorporated into ppThis) |
StatusInt mdlXMLFragmentList_appendToXmlDom | ( | XmlDomRef | domRef, |
XmlNodeRef | nodeRef, | ||
XMLFragmentListP | pThis | ||
) |
Appends all the XML Fragment text from XMLFragmentList into a non-free threaded XML Dom.
[in] | domRef | Non Free Threaded DOM to append XMLFragments from XMLFragments into |
[in] | nodeRef | Node in DOM to append Fragment to |
[in] | pThis | XML Fragment List to append |
StatusInt mdlXMLFragmentList_appendToXmlDomExt | ( | XmlDomRef | domRef, |
XmlNodeRef | nodeRef, | ||
XMLFragmentListP | pThis, | ||
bool | bFreeThreaded | ||
) |
Appends all the XML Fragment text from XMLFragmentList into a XML Dom.
[in] | domRef | DOM to append XMLFragments from XMLFragments into |
[in] | nodeRef | Node in DOM to append Fragment to |
[in] | pThis | XML Fragment List to append |
[in] | bFreeThreaded | is domRef a freethreaded DOM? |
StatusInt mdlXMLFragmentList_attachToElement | ( | XMLFragmentListP * | ppXMLFragmentList, |
MSElementDescrH | ppElmDscr, | ||
bool | freeXMLFragmentList | ||
) |
Attaches the XMLFragmentList entries to the first element of a descriptor chain.
The XML Fragment list is freed upon successful completion, if requested.
[in,out] | ppXMLFragmentList | List of XMLFragments to attach to the element. (After attaching, freed and set to NULL if freeXMLFragmentList=true) |
[in,out] | ppElmDscr | Element descriptor holding the element to which to attach the XML Fragment(s). |
[in] | freeXMLFragmentList | Non-zero=Free XML Fragment list after operation. Only freed if function is successful. |
XMLFragmentListP mdlXMLFragmentList_construct | ( | WChar * | pText, |
WChar * | pSchemaURN, | ||
UShort | appID, | ||
UShort | appType | ||
) |
XML Fragment/FragmentList Functions
Set of functionality to allow creation/manipulation of XML Fragment data.
The XML Fragments API enables you to create elements or element linkages containing XML-formatted text. Functions are also provided for setting Scan Criteria for finding your particular XML Fragment element (or elements with a particular XML Fragment linkage.) By storing data in XML Fragment elements and linkages, you let MicroStation and other applications know that they contain XML-formatted data... thus making the data accessible to other applications without requiring source code from your application to interpret your binary linkages.
An mdl XML Fragment consists of:
For performance, the XML Fragment API does not validate your XML fragments against an XML Schema or check them for well-formedness. You may use an XML parser for validation. The SchemaURN is provided for your reference, but may be utilized in future versions of MicroStation. Also for performance, the XML fragments are not compressed by default. If a large XML Text string must be attached to an element, use mdlXMLFragment_setIsCompressed to specify that it be compressed.
The following functions support getting and setting data from an XML Fragment:
When working with several types of XML Fragment linkages, it can be useful to work with linked lists of them. Most of the XML Fragment manipulation functions accept list of fragments as arguments, though in many cases there will be only one entry in the lists. The following functions allow you to create and iterate over XML Fragment lists:
Any XML Fragment can be written to the file as an element or attached to an element as a linkage.
The following functions allow you to read and write XML Fragments as elements:
The following functions allow you to read and write XML Fragements as linkages:
The following functions allow you to convert XML Fragments to an XML Dom or XML Dom Node
Constructs an XML Fragment List containing a single XML Fragment.
[in] | pText | XML text to set (or NULL). |
[in] | pSchemaURN | Schema URN to set (or NULL). |
[in] | appID | The ID of the "app" to which this XMLFragment belongs. The app identifier is a Bentley assigned application identifier. (typically an application's LinkageID). |
[in] | appType | The type of this XMLFragment within the "app" to which it belongs. The app type is an application assigned value which uniquely identifies the XML Fragment within the application's app. |
XMLFragmentListP mdlXMLFragmentList_constructFromXmlDom | ( | XmlDomRef | domRef, |
WChar * | pSchemaURN, | ||
UShort | appID, | ||
UShort | appType | ||
) |
Constructs an XML Fragment List containing a single XML Fragment from the XMLDom.
[in] | domRef | XML Dom to create XML Fragment list from |
[in] | pSchemaURN | Schema URN to set (or NULL). |
[in] | appID | The ID of the "app" to which this XMLFragment belongs. The app identifier is a Bentley assigned application identifier. (typically an application's LinkageID). |
[in] | appType | The type of this XMLFragment within the "app" to which it belongs. The app type is an application assigned value which uniquely identifies the XML Fragment within the application's app. |
XMLFragmentListP mdlXMLFragmentList_constructFromXMLFragmentElement | ( | MSElementDescrCP | pDescr | ) |
Constructs an XML Fragment List from an XML Element element descriptor.
[in] | pDescr | Element descriptor |
XMLFragmentListP mdlXMLFragmentList_constructFromXmlNode | ( | XmlNodeRef | nodeRef, |
WChar * | pSchemaURN, | ||
UShort | appID, | ||
UShort | appType | ||
) |
Constructs an XML Fragment List containing a single XML Fragment from the XMLDomNode.
[in] | nodeRef | XML Node to create XML Fragment list from |
[in] | pSchemaURN | Schema URN to set (or NULL). |
[in] | appID | The ID of the "app" to which this XMLFragment belongs. The app identifier is a Bentley assigned application identifier. (typically an application's LinkageID). |
[in] | appType | The type of this XMLFragment within the "app" to which it belongs. The app type is an application assigned value which uniquely identifies the XML Fragment within the application's app. |
StatusInt mdlXMLFragmentList_createFreeThreadedXmlDom | ( | XmlDomRef * | pDomRef, |
XMLFragmentListP | pThis, | ||
WChar const *const | pRootElementName | ||
) |
Creates a Free Threaded XML Dom from the XML FragmentList.
[in,out] | pDomRef | Created XML DOM |
[in] | pThis | XML Fragment List to create XML DOM from |
[in] | pRootElementName | Name for Root Element of XML DOM |
StatusInt mdlXMLFragmentList_createXmlDom | ( | XmlDomRef * | pDomRef, |
XMLFragmentListP | pThis, | ||
WChar const *const | pRootElementName | ||
) |
Creates an non FreeThreaded XML Dom from the XML FragmentList.
[in,out] | pDomRef | Created non FreeThreaded XML DOM |
[in] | pThis | XML Fragment List to create XML DOM from |
[in] | pRootElementName | Name for Root Element of XML DOM |
StatusInt mdlXMLFragmentList_createXMLElementDescriptor | ( | MSElementDescrH | ppDescr, |
XMLFragmentListP * | ppThis, | ||
bool | freeXMLFragmentList | ||
) |
Creates a XMLFragment element descriptor (chain) from all entries in a XMLFragmentList.
Frees the XMLFragment list entry upon successful completion, if requested.
[out] | ppDescr | Element descriptor built from XML Fragment List. (Must be freed by caller) It is the callers responsiblity to add the element(s) to the file. |
[in,out] | ppThis | XML Fragment list. |
[in] | freeXMLFragmentList | Non-zero=Free XML Fragment list after operation. Only freed if function is successful. |
StatusInt mdlXMLFragmentList_duplicate | ( | XMLFragmentListP * | ppCopy, |
XMLFragmentListP | pThis | ||
) |
Creates a duplicate XML Fragment list from all entries in the given XML Fragment List.
[out] | ppCopy | Duplicated XML Fragment list. |
[in] | pThis | XML Fragment list to duplicate. |
StatusInt mdlXMLFragmentList_duplicateSingle | ( | XMLFragmentListP * | ppCopy, |
XMLFragmentListP | pThis | ||
) |
Creates a duplicate XML Fragment list from only the current XML Fragment List entry.
[out] | ppCopy | Duplicated XML Fragment list. |
[in] | pThis | XML Fragment list to duplicate. |
StatusInt mdlXMLFragmentList_extractFromElement | ( | XMLFragmentListP * | ppXMLFragmentList, |
MSElementP | pElm | ||
) |
Retrieves a list of all XMLFragments attached to the given element descriptor.
[out] | ppXMLFragmentList | List of XML Fragments which were extracted from the element. |
[in] | pElm | Element to query for XML Fragment list. |
StatusInt mdlXMLFragmentList_extractFromElementByAppIDAndType | ( | XMLFragmentListP * | ppXMLFragmentList, |
MSElementP | pElm, | ||
const UShort * | pAppID, | ||
const UShort * | pAppType | ||
) |
Retrieves a list of XMLFragments attached to the given element descriptor using the search criteria of App ID and/or App Type.
[out] | ppXMLFragmentList | List of XML Fragments which were extracted from the element. |
[in] | pElm | Element to query for XML Fragment list. |
[in] | pAppID | App ID of XML Fragments to retrieve. (or NULL if criteria not applied) |
[in] | pAppType | App Type of XML Fragments to retrieve (or NULL if criteria not applied). |
StatusInt mdlXMLFragmentList_free | ( | XMLFragmentListP * | ppThis | ) |
Frees memory of the XML Fragment List.
[in,out] | ppThis | XML Fragment list. |
UInt32 mdlXMLFragmentList_getCount | ( | XMLFragmentListP | pThis | ) |
Retrieves the count of XMLFragments in an XML Fragment List.
[in] | pThis | List of XML Fragments. |
XMLFragmentP mdlXMLFragmentList_getXMLFragment | ( | XMLFragmentListP | pThis | ) |
Retrieves the first XML Fragment from the input XML Fragment List Entry.
[in] | pThis | List of XML Fragments. |
Public XMLFragmentP mdlXMLFragmentList_getXMLFragmentAtIndex | ( | XMLFragmentListP | pThis, |
UInt32 | index | ||
) |
Retrieves the XML Fragment from the input XML Fragment List Entry.
[in] | pThis | List of XML Fragments. |
[in] | index | index of XML Fragment to retrieve. |
StatusInt mdlXMLFragmentList_prepend | ( | XMLFragmentListP * | ppThis, |
XMLFragmentP | pPrependFragment | ||
) |
Prepends an XML Fragment to an XML Fragment List.
[in,out] | ppThis | Combined list of XML Fragments. |
[in] | pPrependFragment | XML Fragment to prepend. (Pointer should not be freed since it is incorporated into ppThis) |
StatusInt mdlXMLFragmentList_stripAllFromElement | ( | XMLFragmentListP * | ppXMLFragmentList, |
MSElementP | pElm | ||
) |
Deletes all XMLFragment attachments from the input element.
[out] | ppXMLFragmentList | List of XML Fragments which were deleted from the element. (or NULL if XMLFragmentList not required) |
[in,out] | pElm | Element to delete Fragments from. |
StatusInt mdlXMLFragmentList_stripFromElementByAppIDAndType | ( | XMLFragmentListP * | ppXMLFragmentList, |
MSElementP | pElm, | ||
UShort * | pAppID, | ||
UShort * | pAppType | ||
) |
Deletes XMLFragment attachments from the input element using the search criteria of App ID and/or App Type.
[out] | ppXMLFragmentList | List of XML Fragments which were deleted from the element. (or NULL if XMLFragmentList not required) |
[in] | pElm | Element to delete Fragment list from. |
[in] | pAppID | App ID of XML Fragments to retrieve. (or NULL if criteria not applied) |
[in] | pAppType | App Type of XML Fragments to retrieve (or NULL if criteria not applied). |