Much smarter xml spline parser.