# File lib/xml/dom2/processinginstruction.rb, line 127 def to_s ret = "<?#{@value}?>" ret << "\n" if parentNode.nodeType == DOCUMENT_NODE ret end