Do you want to know how to Add Css and Js through xml in magento 2 ? Just use this code.

<css src="Magento_Theme::css/test.css" />

<script src="Magento_Theme::js/test.js" />