on-internet
← Community

How to generate XML file dynamically using PHP?

Stack Overflow ·

I have to generate a xml file dynamically at runtime. Please help me in generating the below XML file dynamically using PHP. <?xml version="1.0" encoding="UTF-8"?> <xml> <track> <path>song1.mp3</path> <title>Track 1 - Track Title</title> </track> <track> <path>song2.mp3</path> <title>Track 2 - Track Title</title> </track> <track> <path>song3.mp3</path> <title>Track 3 - Track Title</title> </track> <track> <path>song4.mp3</path> <title>Track 4 - Track Title</title> </track> <track> <path>song5.mp3</path> <title>Track 5 - Track Title</title> </track> <track> <path>song6.mp3</path> <title>Track 6

Comments

Sign in or sign up to comment and upvote.

No comments yet.