MMCT TEAM
Server IP : 111.118.215.189  /  Your IP : 216.73.216.185
Web Server : Apache
System : Linux md-in-83.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : a1673wkz ( 2475)
PHP Version : 8.2.25
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /lib64/python2.7/Demo/xml/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : //lib64/python2.7/Demo/xml/elem_count.pyo
�
V
�Qc@s�dZddlZddlmZddlmZmZdejfd��YZe	dkr�e�Z
e
je��e
jej
d�ndS(	s�
A simple demo that reads in an XML document and displays the number of
elements and attributes as well as a tally of elements and attributes by name.
i����N(tdefaultdict(tmake_parserthandlertFancyCountercBs#eZd�Zd�Zd�ZRS(cCs4d|_d|_tt�|_tt�|_dS(Ni(t_elemst_attrsRtintt_elem_typest_attr_types(tself((s+/usr/lib64/python2.7/Demo/xml/elem_count.pyt__init__
s		cCse|jd7_|jt|�7_|j|cd7<x'|j�D]}|j|cd7<qDWdS(Ni(RRtlenRtkeysR(R	tnametattrs((s+/usr/lib64/python2.7/Demo/xml/elem_count.pytstartElements
cCstdG|jGdGHdG|jGdGHdGHx |jj�D]}d|GHq5WdGHx |jj�D]}d|GHq]WdS(Ns
There weres	elements.sattributes.s---ELEMENT TYPESs%20s %ds---ATTRIBUTE TYPES(RRRtitemsR(R	tpair((s+/usr/lib64/python2.7/Demo/xml/elem_count.pytendDocuments
(t__name__t
__module__R
RR(((s+/usr/lib64/python2.7/Demo/xml/elem_count.pyRs		t__main__i(t__doc__tsystcollectionsRtxml.saxRRtContentHandlerRRtparsertsetContentHandlertparsetargv(((s+/usr/lib64/python2.7/Demo/xml/elem_count.pyt<module>s	

MMCT - 2023