Example code to parse the Detector Description XML files can be found here. The code uses the Xerces XML parser available from Apache.