| Server IP : 3.138.164.131 / Your IP : 216.73.216.136 Web Server : Apache System : Linux ns1.techtime.me 4.18.0-147.8.1.el8.lve.1.x86_64 #1 SMP Mon Jun 29 09:55:57 EDT 2020 x86_64 User : injazaat ( 1471) PHP Version : 8.1.20 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /usr/lib64/python2.7/Demo/xml/ |
Upload File : |
� ��^c @ s� d Z d d l Z d d l m Z d d l m Z m Z d e j f d � � YZ e d k r� e � Z e j e � � e j e j d � n d S( 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( t defaultdict( t make_parsert handlert FancyCounterc B s# e Z d � Z d � Z d � Z RS( c C s4 d | _ d | _ t t � | _ t t � | _ d S( Ni ( t _elemst _attrsR t intt _elem_typest _attr_types( t self( ( s+ /usr/lib64/python2.7/Demo/xml/elem_count.pyt __init__ s c C se | j d 7_ | j t | � 7_ | j | c d 7<x'