X-ray Absorption Spectroscopy (XAS) was been applied for the material recognition in this paper. Twelve kinds of plastics were selected as specimens. Each specimen was tested for 100 times by different operators for data processing. Seventy sets of spectral data of each specimen were randomly selected as training set and the other 30 sets were selected as testing set. Training set was calculated with Principal Component Analysis (PCA) to get the first four Principal Components, which totally explain 99% of the original spectrum. The first four Principal Components were built plastic classification model respectively through K-Nearest Neighbor (KNN) and Support Vector Machine (SVM) methods. The classification accuracy reached 89.22%-98.17%. Experimental results demonstrate that organics could be recognized by XAS. It shows that the X-ray absorption spectroscopy contains the potential of other organics recognition or even organisms.