create dynamic HTML or XML on the fly with PHP