By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,760 Members | 1,630 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,760 IT Pros & Developers. It's quick & easy.

parsing "&A" in a string..

P: n/a

a pretty simple question, i'm guessing.

i have a text/html string that looks like:

the issue i have is that when i parse it using xpath/node/toString,
i get the following


note the semicolon ";". I've tried to use the encoding function of toString
with no luck..

the test chunk of code i'm using is:
if len(ldepts_)>0:
for ldept in ldepts_:
print "dept =",ldept.toString()"\(",dept).span()"\)",dept).span()
print start,end
print dept[start[0]],dept[end[0]]
print dept

so, any thoughts/pointers as to how i can remove the ";" would be helpful.
i'm assuming that there is a way to enforce a given encoding, that would
remove the ";" issue...


Aug 31 '08 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.