Bob Tanner wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Is there a way to insert a node with Beautiful Soup?
BS doesn't really seem to be set up to support this. The Tags in a soup are kept in a linked list by their next attribute so you will have to find the right Tag, break the chain of 'next' and insert your new Tag. You will have to look at the source; start with the unknown_starttag() method. Good luck, Kent -- http://www.kentsjohnson.com _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor