An XML Architecture for Shallow and Deep Processing