106 int n = (
int) strlen( link );
107 char const *slash = strchr( link,
'/' ), *bracket = strchr( link,
'[' ), *attributesValue;
111 if( bracket != NULL ) n = (
int) ( bracket - link );
112 if( slash != NULL ) {
113 if( (
int) ( slash - link ) < n ) {
114 n = (
int) ( slash - link );
118 for( child = element->
children; child != NULL; child = child->
next ) {
119 if( strncmp( link, child->
name, n ) == 0 ) {
120 if( bracket != NULL ) {
121 if( bracket[1] !=
'@' ) {
127 if( strcmp( value, attributesValue ) )
continue;
129 if( slash == NULL )
return( child );
static xDataTOM_element * xDataTOM_getLinksElement2(statusMessageReporting *smr, xDataTOM_element *element, char const *link, char const *fullLink)
#define smr_setReportError2(smr, libraryID, code, fmt,...)
const XML_Char int const XML_Char * value
typedef int(XMLCALL *XML_NotStandaloneHandler)(void *userData)
static int xDataTOM_getLinksElement3(statusMessageReporting *smr, char const *nameValue, char *name, char *value, char const *fullLink)
xDataTOM_element * children
char const * xDataTOM_getAttributesValueInElement(xDataTOM_element *element, char const *name)