Use autogeneration for the class Range.
Created attachment 7190 [details] patch with detailed change log
Comment on attachment 7190 [details] patch with detailed change log Looks great!
Mass moving XML DOM bugs to the "DOM" Component.