fix ip vector logic in xmldoc.cpp.