Separating posxml from xml mode.