Functions
XML Utility

Functions

int mdlXMLTools_determineIfMSXML6isInstalled ()
 Checks if MSXML4 is Installed properly. More...
 
bool mdlXMLTools_isWellFormed (WChar const *pXmlString)
 Checks a string is well-formed XML. More...
 
int mdlXMLTools_convertTagValueToWString (WChar *pWSTagValue, size_t *pMaxChars, int tagValueType, const void *pTagValue)
 Converts a Tag Value of a given tagtype to a widestring value. More...
 

Detailed Description

Function Documentation

int mdlXMLTools_convertTagValueToWString ( WChar *  pWSTagValue,
size_t *  pMaxChars,
int  tagValueType,
const void *  pTagValue 
)

Converts a Tag Value of a given tagtype to a widestring value.

Parameters
[in,out]pWSTagValueReturned tag value as a wide string
[in,out]pMaxCharsMax. number of chars of pWSTagValue to return, actual number of chars in pValue returned
[in]tagValueTypeXMLDATATYPE_EMPTY, _T32, _UT32, _STRG, _WIDESTRG, _BOOLEAN, _DATETIME
[in]pTagValueTag value for element node or NULL for an empty element
Returns
SUCCESS or ERROR
Remarks
Pass NULL for tag value when using XMLDATATYPE_EMPTY.
int mdlXMLTools_determineIfMSXML6isInstalled ( )

Checks if MSXML4 is Installed properly.

Remarks
Call this function first before any other functions to see if the MSXML6 parser is correctly installed
Returns
SUCCESS or ERROR
bool mdlXMLTools_isWellFormed ( WChar const *  pXmlString)

Checks a string is well-formed XML.

Parameters
[in]pXmlStringString to test if well-formed
Returns
true if string is well-formed XML, otherwise false

Copyright © 2017 Bentley Systems, Incorporated. All rights reserved.