ACI API 25.3
ACI API Programming Guide

# acioFindFirstOccurrence

Call the `acioFindFirstOccurrence` function to locate the first occurrence of the specified tag in an XML result.

## Syntax

    t_aciObject* acioFindFirstOccurrence (
       t_aciObject* pObject,
       char* szTag)

## Arguments

Arguments | Type/Description
--- | ---
`pObject` | `t_aciObject*` A pointer to an `ACI_DATA` object that is part of an XML result.
`szTag` | `char*` A pointer to the requested tag.

## Discussion

The function finds the first occurrence of the specified `szTag` in the XML structure represented by `pObject`, using a child first search through the linked lists. You can call this function only for an `ACI_DATA` type object.

## Returns

A pointer to the tag’s contents or `NULL` if the tag is not found.

Copyright 2025 Open Text
Version 25.3 | Last updated July 2025

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to MFI-swpdl.idoldocsfeedback@opentext.com.

We appreciate your feedback!

Product: Knowledge Discovery ACI API 25.3

Topic Title: acioFindFirstOccurrence