org.apache.xmlbeans.XmlCursor.toNextChar()
Moves the cursor forward by the specified number of characters, and stops at the next non-TEXT token. Returns the number of characters actually moved across, which is guaranteed to be less than or equal to maxCharacterCount. If there is no further text, or if there is no text at all, returns zero.
Note this does not dive into attribute values, comment contents, processing instruction contents, etc., but only content text.
You can pass maxCharacterCount < 0 to move over all the text to the right. This has the same effect as toNextToken, but returns the amount of text moved over.
@param maxCharacterCount The maximum number of characters by whichthe cursor should be moved.
@return The actual number of characters by which the cursor was moved; 0 if the cursor was not moved.