An XML schema (XSD) IS an XML file by definition, so you can treat it in the same way as a regular XML file containing data elements.
See
XML Schema Tutorial[
^]
You might want to tell the receiver that you are sending a schema instead of content.
You can do this with, for example, an integer where the value 1 means content and 2 means schema, or what ever suits your needs.
It is of course possible to auto detect what kind of file it is, but it is usually better to be clear about what you are sending.
Auto detection could be an option if you can't change the communication protocol.