Can you show us an example?
An XML and The RBA you are trying to use?
I'm wondering if some sort of schema might be needed?