Issue in accepting raw strings from Xml in python

G

Gaurav Gupta

Hi,

I am expecting a directory name from an XML, that is like, '\0310_0\FIN_013\fin_gadm\Access\Adb.mdb'.. I am extracting the value as <node>.firstChild.nodeValue. The issue is that in the directory name the backslash is not getting interpreted as literal string. I know that form the prompt it is possible through r'<string>'.. but is it possible to achieve the same through programmatically,

I would be highly obliged for any help.

Thanks,
Gaurav Gupta
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,045
Latest member
DRCM

Latest Threads

Top