Parse and model <resources> and <testResources>.