[lxml-dev] Objectify and a text-tag
Tres Seaver
tseaver at palladion.com
Mon Feb 26 15:27:41 CET 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Christian Zagrodnick wrote:
> Hi
>
> assuming i've got an XML like
>
> <foo><text>blabla</text></foo>
>
> How am I supposed to change the blabla text? foo.text does obviously
> not work since that is the text value of foo.
>
> foo['text'] would have been nice, but that's not working either.
>
> Any suggestions?
Maybe 'foo.find("text")'?
Tres.
- --
===================================================================
Tres Seaver +1 540-429-0999 tseaver at palladion.com
Palladion Software "Excellence by Design" http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFF4u5c+gerLs4ltQ4RApyQAJ9qU4SjZG4ZEoPwxJrkAiOjP3dWBQCeJ0Bt
246x0g446Gjo3gargkn9Tt4=
=CIRg
-----END PGP SIGNATURE-----
More information about the lxml-dev
mailing list