Replication protein A (RPA) and the xeroderma pigmentosum group A (XPA) protein are indispensable for both pathways of nucleotide excision repair (NER). Here we analyze the interaction of RPA and XPA with DNA containing a flap and different size gaps that imitate intermediates of the late NER stages. Using gel mobility shift assays, we found that RPA affinity for DNA decreased when DNA contained both extended gap and similar sized flap in comparison with gapped-DNA structure. Moreover, crosslinking experiments with the flap-gap DNA revealed that RPA interacts mainly with the ssDNA platform within the long gap and contacts flap in DNA with a short gap. XPA exhibits higher affinity for bubble-DNA structures than to flap-gap-containing DNA. Protein titration analysis showed that formation of the RPA-XPA-DNA ternary complex depends on the protein concentration ratio and these proteins can function as independent players or in tandem. Using fluorescently-labelled RPA, direct interaction of this protein with XPA was detected and characterized quantitatively. The data obtained allow us to suggest that XPA can be involved in the post-incision NER stages via its interaction with RPA.