In Clarity, there are governor limits on XML max node limit, to prevent any issues with application stability. Those limitations are documented in Increasing Governor Limits in Clarity.
Due to these limitations it is important to know how many nodes your import file has so you are able to manage the Max Node Limits and also leverage batching and other strategies for XML import.
Starting 16.3.2, a new command option is introduced within Clarity, which will count the amount of XML nodes in any XML files or TXT files with XML structure.
Environment
Clarity 16.3.2 and higher releases
Cause
This new command was introduced as part of request DE168207
Resolution
Count the number of XML Nodes in a XOG import file with a command:
Connect to Clarity server
Prepare a few large XML files on that server in a known location
Navigate to $clarity\xog-unzipped\bin
Run the command:
xog -analyze <your file path>
The output will show the exact amount of nodes in your file: