CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
List of all members | Public Member Functions
BeautifulSoup.ProcessingInstruction Class Reference
Inheritance diagram for BeautifulSoup.ProcessingInstruction:
BeautifulSoup.NavigableString BeautifulSoup.PageElement

Public Member Functions

def __str__ (self, encoding=DEFAULT_OUTPUT_ENCODING)
 
- Public Member Functions inherited from BeautifulSoup.NavigableString
def __getattr__ (self, attr)
 
def __getnewargs__ (self)
 
def __new__ (cls, value)
 
def __str__ (self, encoding=DEFAULT_OUTPUT_ENCODING)
 
def __unicode__ (self)
 
- Public Member Functions inherited from BeautifulSoup.PageElement
def append (self, tag)
 
def extract (self)
 
def findAllNext (self, name=None, attrs={}, text=None, limit=None, kwargs)
 
def findAllPrevious (self, name=None, attrs={}, text=None, limit=None, kwargs)
 
def findNext (self, name=None, attrs={}, text=None, kwargs)
 
def findNextSibling (self, name=None, attrs={}, text=None, kwargs)
 
def findNextSiblings (self, name=None, attrs={}, text=None, limit=None, kwargs)
 
def findParent (self, name=None, attrs={}, kwargs)
 
def findParents (self, name=None, attrs={}, limit=None, kwargs)
 
def findPrevious (self, name=None, attrs={}, text=None, kwargs)
 
def findPreviousSibling (self, name=None, attrs={}, text=None, kwargs)
 
def findPreviousSiblings (self, name=None, attrs={}, text=None, limit=None, kwargs)
 
def insert (self, position, newChild)
 
def nextGenerator (self)
 
def nextSiblingGenerator (self)
 
def parentGenerator (self)
 
def previousGenerator (self)
 
def previousSiblingGenerator (self)
 
def replaceWith (self, replaceWith)
 
def replaceWithChildren (self)
 
def setup (self, parent=None, previous=None)
 
def substituteEncoding (self, str, encoding=None)
 
def toEncoding (self, s, encoding=None)
 

Additional Inherited Members

- Public Attributes inherited from BeautifulSoup.PageElement
 next
 
 nextSibling
 
 parent
 
 previous
 
 previousSibling
 
- Static Public Attributes inherited from BeautifulSoup.PageElement
 BARE_AMPERSAND_OR_BRACKET
 
 fetchNextSiblings
 
 fetchParents
 
 fetchPrevious
 
 fetchPreviousSiblings
 
 XML_ENTITIES_TO_SPECIAL_CHARS
 
 XML_SPECIAL_CHARS_TO_ENTITIES
 

Detailed Description

Definition at line 491 of file BeautifulSoup.py.

Member Function Documentation

◆ __str__()

def BeautifulSoup.ProcessingInstruction.__str__ (   self,
  encoding = DEFAULT_OUTPUT_ENCODING 
)

Definition at line 492 of file BeautifulSoup.py.

References BeautifulSoup.PageElement.substituteEncoding(), and BeautifulSoup.PageElement.toEncoding().

Referenced by edmStreamStallGrapher.Point.__repr__(), BeautifulSoup.Tag.__repr__(), BeautifulSoup.Tag.__unicode__(), and BeautifulSoup.Tag.prettify().

492  def __str__(self, encoding=DEFAULT_OUTPUT_ENCODING):
493  output = self
494  if "%SOUP-ENCODING%" in output:
495  output = self.substituteEncoding(output, encoding)
496  return "<?%s?>" % self.toEncoding(output, encoding)
497