If you break the XML-parts that sets points, you'll see that there's three important things. Point, relativeTo and relativePoint. What this means is that you anchor <point> of your frame to frame <relativeTo>s <relativePoint>.
Example
lua Code:
texture:SetPoint(point, relativeTo, relativePoint, 0, 0)
Just substitute the correct values from your original XML.