Can I provide the plain xml code to a SolverFactory?

SolverFactory solverFactory = new XmlSolverFactory(<<xmlHere>>);

I know that I can provide the path to a config file.