distinguishing between treating xml as lines vs a tree