ó \STc@s¶ddlZyddlZWn!ek r?ddlmZnXedZddd„ƒYZd„Zd„ZdZ d dd „ƒYZ d „Z d „Z d „Z ddd„ZdS(iÿÿÿÿN(tpyexpats.errortParsercBsPeZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z RS(cCs|jƒdS(N(treset(tself((sD/opt/freeware/lib64/python2.7/site-packages/_xmlplus/utils/qp_xml.pyt__init__ scCsd|_d|_dS(N(tNonetroottcur_elem(R((sD/opt/freeware/lib64/python2.7/site-packages/_xmlplus/utils/qp_xml.pyR#s cCsP|j}x0|r;|jj|ƒr/|j|S|j}q W|dkrLdSdS(Nt(Rtns_scopethas_keytparentR(Rtprefixtelem((sD/opt/freeware/lib64/python2.7/site-packages/_xmlplus/utils/qp_xml.pyt find_prefix's     cCs©tj|dƒ}|dkrA|r7|jdƒ|fSd|fStj|d ƒdkrdd|fS|j|| ƒ}|dkr—td|| ‚n|||dfS(Nt:iÿÿÿÿRitxmls!namespace prefix ("%s") not foundi(tstringtfindRtlowerRterror(Rtnamet use_defaulttidxtns((sD/opt/freeware/lib64/python2.7/site-packages/_xmlplus/utils/qp_xml.pytprocess_prefix3s    cCsŠtd|dddddgdididdd dƒ}|jrm|j|_|jjj|ƒ||_n||_|_g}x…|jƒD]w\}}|d kr¸||jd tdump_nsis (twritet _collect_nst _dump_recurse(tfRt namespaces((sD/opt/freeware/lib64/python2.7/site-packages/_xmlplus/utils/qp_xml.pytdump•s  cCs |jƒS(N(ttextof(R ((sD/opt/freeware/lib64/python2.7/site-packages/_xmlplus/utils/qp_xml.pyR@¡si@R cBs&eZd„Zd„Zdd„ZRS(cKs|jj|ƒdS(N(t__dict__tupdate(Rtkw((sD/opt/freeware/lib64/python2.7/site-packages/_xmlplus/utils/qp_xml.pyR­scCs.|j}x|jD]}||j}qW|S(s¯Return the CDATA of this element. Note: this is not recursive -- it only returns the CDATA immediately within the element, excluding the CDATA in child elements. (RRR(RR5tchild((sD/opt/freeware/lib64/python2.7/site-packages/_xmlplus/utils/qp_xml.pyR@°s RcCs:x3|jD](}|j|kr |j|kr |Sq WdS(N(RRRR(RRRR ((sD/opt/freeware/lib64/python2.7/site-packages/_xmlplus/utils/qp_xml.pyR»s(R7R8RR@R(((sD/opt/freeware/lib64/python2.7/site-packages/_xmlplus/utils/qp_xml.pyR ¬s  cCs#d|_|`tt|jƒdS(N(RR tmapR2R(R ((sD/opt/freeware/lib64/python2.7/site-packages/_xmlplus/utils/qp_xml.pyR2Âs cCs\d||j PREFIX mapping.RN(RRGRFtrangetlen(R tdRFti((sD/opt/freeware/lib64/python2.7/site-packages/_xmlplus/utils/qp_xml.pyR;Ïs   ic Cs½|jr-|jd||j|jfƒn|jd|jƒxa|jjƒD]P\\}}}|rŠ|jd||||fƒqQ|jd||fƒqQW|râx4|jƒD]#\}}|jd||fƒq¸Wn|j|kr|jd|jƒn|js|jr¬|jd|jƒx7|jD],} t|| ||jƒ|j| j ƒq8W|jr•|jd||j|jfƒq¹|jd |jƒn |jd ƒdS( Nss ss/>( RR:RRR"RRRR<R( R=R R>RR9RRR$tidRD((sD/opt/freeware/lib64/python2.7/site-packages/_xmlplus/utils/qp_xml.pyR<Ùs* $"! $(((RRt ImportErrort xml.parsersR7RRR?R@R1R R2RGR;RR<(((sD/opt/freeware/lib64/python2.7/site-packages/_xmlplus/utils/qp_xml.pyts   v