Public Member Functions
BeautifulSoup.BeautifulSOAP Class Reference
Inheritance diagram for BeautifulSoup.BeautifulSOAP:
Inheritance graph
[legend]

List of all members.

Public Member Functions

def popTag

Detailed Description

This class will push a tag with only a single string child into
the tag's parent as an attribute. The attribute's name is the tag
name, and the value is the string child. An example should give
the flavor of the change:

<foo><bar>baz</bar></foo>
 =>
<foo bar="baz"><bar>baz</bar></foo>

You can then access fooTag['bar'] instead of fooTag.barTag.string.

This is, of course, useful for scraping structures that tend to
use subelements instead of attributes, such as SOAP messages. Note
that it modifies its input, so don't print the modified version
out.

I'm not sure how many people really want to use this class; let me
know if you do. Mainly I like the name.

Definition at line 1430 of file BeautifulSoup.py.


Member Function Documentation

Reimplemented from BeautifulSoup.BeautifulStoneSoup.

Definition at line 1450 of file BeautifulSoup.py.


The documentation for this class was generated from the following file:


websocket_gui
Author(s): Benoit Lescot and Stéphane Magnenat
autogenerated on Sat Dec 28 2013 17:46:48