Sh3ll
OdayForums


Server : LiteSpeed
System : Linux premium84.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
User : claqxcrl ( 523)
PHP Version : 8.1.32
Disable Function : NONE
Directory :  /lib64/python2.7/Demo/xml/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib64/python2.7/Demo/xml/roundtrip.pyc
�
��^c@s�dZddlZddlmZmZmZdejfd��YZedkr�e�Z	e	j
e��e	jejd�ndS(ss
A simple demo that reads in an XML document and spits out an equivalent,
but not necessarily identical, document.
i����N(tsaxutilsthandlertmake_parsertContentGeneratorcBsMeZejd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
RS(cCstjj|�||_dS(N(RtContentHandlert__init__t_out(tselftout((s*/usr/lib64/python2.7/Demo/xml/roundtrip.pyRscCs|jjd�dS(Ns,<?xml version="1.0" encoding="iso-8859-1"?>
(Rtwrite(R((s*/usr/lib64/python2.7/Demo/xml/roundtrip.pyt
startDocumentscCsh|jjd|�x=|j�D]/\}}|jjd|tj|�f�q!W|jjd�dS(Nt<s %s="%s"t>(RR	titemsRtescape(Rtnametattrstvalue((s*/usr/lib64/python2.7/Demo/xml/roundtrip.pytstartElements'cCs|jjd|�dS(Ns</%s>(RR	(RR((s*/usr/lib64/python2.7/Demo/xml/roundtrip.pyt
endElementscCs|jjtj|��dS(N(RR	RR(Rtcontent((s*/usr/lib64/python2.7/Demo/xml/roundtrip.pyt
characters scCs|jj|�dS(N(RR	(RR((s*/usr/lib64/python2.7/Demo/xml/roundtrip.pytignorableWhitespace#scCs|jjd||f�dS(Ns	<?%s %s?>(RR	(Rttargettdata((s*/usr/lib64/python2.7/Demo/xml/roundtrip.pytprocessingInstruction&s(t__name__t
__module__tsyststdoutRR
RRRRR(((s*/usr/lib64/python2.7/Demo/xml/roundtrip.pyRs					t__main__i(
t__doc__Rtxml.saxRRRRRRtparsertsetContentHandlertparsetargv(((s*/usr/lib64/python2.7/Demo/xml/roundtrip.pyt<module>s	

ZeroDay Forums Mini