When you say:
"A" with attributes "2010Title" or "2014Title" with tag names "pg1"or "pg" or "PG_NO"
"B" with attributes "2014Title2" "2014Title2" with tag names "pg1"or "pg" or "PG_NO"
What are '2010Title' etc.?
I understand that you have block "A" & block "B" with attribute tags "pg1"or "pg" or "PG_NO", but I don't see what "2010Title", "2014Title" are referring to.