XML match M3u

I have an m3u and can not get the guide to show up in channels. When I add the xml from my provider, some of the channels populate. My locals do not populate at all. I was wondering if there is something that must be in the m3u file such as a tag that tells the xml which channel to match to? I also have an xml from xml tv listings website for Directv in my area.

I have attached a picture of an excerpt of the xml file. Do I use the channel id and add it to the m3u under tvg id? Any help would be appreciated.

You can map the channels to the correct stations under source settings

If you wanttthe complete flexibility, don't use the EPG used by the provider and use gracenot directly.
I do use the epg for one of my sources and i'm able to use the mapping function to get guide data to populate.

FYI: You first have to remove the xmltv guide url from the custom m3u source in order to remap guide data like tmm1 mentioned.