I have a little information.I think he may be the same James Hainline you are looking for, but not sure.
Following is some of what I have:
John McElrath b. May 19, 1821 m. Mary A. W. Scott on March 28, 1850 in the Presbyterian Church, McDonough Co., IL. He died in March between 1897-1899.
They had six children: Anna R.; Thomas Scott; Ella Marie; David Ross; Mary Belle; and John M.
Anna R. born 1851 m. Jacob E. Hainline on February 9, 1871.She died when their son, James S. Hainline, was only 6 weeks old.She is buried in Oakwood Cemetery, Macomb, IL.James S. was raised by his grandmother, Mary Scott McElrath.
I do not know the name of his spouse, but he had two daughters, Anna Kathryn and Helen.
If this is your family, I would enjoy very much hearing from you.Good luck.Sue