You can always use checkstyle.
Checkstyle is configurable, and it will verify that your Java source code fits with a number of configurable style choices.
As far as .properties files, there's really only one style. If it is not in that style, it's not a parsable .properties file.
For XML, the standard allows for several styles. By styles, I mean indenting, etc. XML is very structured (as determined by the corresponding XSL file) so there's little that can change except the amount of ignorable whitespace between tags and elements. As far as I know, there's not a XML "style checker", because there's so few options to select form with XML.
The same goes for XSL, which is a XML file (purposed for templeting XML files).