use xml parser in UpnpDirectoryModule
xml parser values as reference
xml creation