You can specify your own customised data types in the schema.
[code:1:d13011601c]<xs:simpleType name=\"MyDataType\">
<xs:restriction base=\"xs:string\">
<xs:pattern value=\"regular expression\"/>
</xs:restriction>
</xs:simpleType>
<xs:element name=\"MyData\" type=\"MyDataType\"/>
[/code:1:d13011601c]
You can then use the XmlValidator component in the receive pipeline.
You can also use a map, but this is a bit more complicated.
To format the output file name you can do the following:
On the send port set the output file name to %SourceFileName%
In an orchestration set the output message FILE.ReceivedFileName property to your desired file name
When your construct the output message add this code to a message assignment shape
[code:1:d13011601c]OutputMessage(FILE.ReceivedFileName) = \"MyFileName.txt\";[/code:1:d13011601c]