The main advantage of XML representation is that it can represent nested structures, something not easily done in RDBs.
even when XML is used to encode documents, many applications still use RDBs for storage and manipulation.