In general, if you are trying to figure out how to import a Processing component, find it in the code repository, check the directory path, and look at the “package” statement at the top of the file.
For example, XML.java file is found in processing / data and its package statement says: