XML ns type detection added.