Package EaseXML :: Module Node :: Class ProcessingInstructionNode
[show private | hide private]
[frames | no frames]

Type ProcessingInstructionNode

object --+    
         |    
      Node --+
             |
            ProcessingInstructionNode


Processing Instruction.

Example:

class AnotherFoo(XMLObject):
    _orderNodes = ['xslt', 'blah']
    xslt = ProcessingInstructionNode('style-sheet',
                                     [('url','http://foobar.com/style.xsl'),
                                      ])
    blah = TextNode(optional=True)

af = AnotherFoo()
NB: This Node is not defined in Nodes module to prevent from
recursive import between main and Nodes modules.

Method Summary
  __init__(self, name, data, **kw)
  xmlrepr(self, parentInstance)
XML representation of the Node
    Inherited from Node
  checkType(self, val)
Type checking.
  getDefaultValue(self)
  getItemType(self)
  getName(self)
  getParentType(self)
  getRegistry(self)
  getType(self)
  getValue(self)
  getValueFromDom(self, dom, attrName, **kw)
  isMain(self)
  isNoLimit(self)
  isOptional(self)
  resetValue(self)
  setDefaultValue(self, default)
  setItemType(self, type)
  setMain(self, m)
  setName(self, name)
  setNoLimit(self, val)
  setOptional(self, val)
  setParentType(self, parentType)
  setRegistry(self, reg)
  setType(self, type)
  setValue(self, value)
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __repr__(x)
x.__repr__() <==> repr(x)
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
x.__str__() <==> str(x)

Method Details

xmlrepr(self, parentInstance=None)

XML representation of the Node

Returns a string representing the Node as XML data.

Overrides:
EaseXML.Node.Node.xmlrepr (inherited documentation)

Generated by Epydoc 2.1 on Sun Dec 12 17:20:24 2004 http://epydoc.sf.net