Hi,
Create a Dataset using "Read rows from JDBC Table" which will create a datasheet based on the query you gave in the dataset and it creates properties for all the columns. Then in next step, read the xml file and apply "XML Xpath filter" and apply xpath query to the xml content and save each attribute to the property.
Now, you have both the properties. One from database and one from Xml. So, you can compare it using any assertions or you can write "scripted assertion" to compare these properties.
Thanks & Regards
Srikanth Gajawada