Hi,
I am using Centos 6.3 and python 2.6.6.
When I try to assign a variables value inside a multiple line message, it does
not work.
>>>cardName = "ActualCardName"
>>>data = """ <inst dn="root/child">
<card name=%cardName descr="testingAgain"> """
>>> print data
<inst dn="root/child">
<card name=%cardName descr="testingAgain">
I would like %cardName to be replaced by "actualCardName". As you can see I am
trying to use XML and therefore I will have several such replacements that I
will need to do.
If someone can suggest a clean way for me to achieve my goal, that would be
great.
Please note, my input is going to be several lines long.
thanks,
Rohit
_______________________________________________
Tutor maillist - [email protected]
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor