CMS 3D CMS Logo

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
 

Detailed Description

Definition at line 492 of file BeautifulSoup.py.

Member Function Documentation

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

Definition at line 493 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().

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