How to make PDF invoice with embeded XML compatible with UBL standard

Regarding UBL standard I have an idea to make a standard XML file with invoice variables and variables can read from PHP invoice file.