Warning: session_start(): Session cannot be started after headers have already been sent in /home/tvrreohg/public_html/manga.php on line 13
ó {fc@sdZddlZddlmZmZmZmZddlTddlm Z m Z ej j j ej j jfZdej j fd„ƒYZ ee dd d ƒee d d d ƒee d d dƒd„Zd„Zd„Zd„Zd„Zde fd„ƒYZde fd„ƒYZeedd dƒeed d dƒeedd dƒdefd„ƒYZeedd d ƒeZd!efd"„ƒYZeeeƒZd#e fd$„ƒYZeed%d d&ƒeed d d'ƒd(„Zd)fd*„ƒYZ d+e e fd,„ƒYZ!d-e e fd.„ƒYZ"ee"dd d/ƒd0e"fd1„ƒYZ#ee#d2d d3ƒee#d4d d5ƒd6„Z$d7„Z%d8e e"fd9„ƒYZ&d:e#fd;„ƒYZ'd<efd=„ƒYZ(ee(dd d>ƒd?fd@„ƒYZ)dAe)e e fdB„ƒYZ*dCe)e fdD„ƒYZ+dEe)e e fdF„ƒYZ,dGe fdH„ƒYZ-dIefdJ„ƒYZ.dK„Z/dLe e fdM„ƒYZ0ee0dNd dOƒdP„Z1dQ„Z2dR„Z3dS„Z4eedT„Z5edU„Z6edV„Z7dS(WscSimple implementation of the Level 1 DOM. Namespaces and other minor Level 2 features are also supported. parse("foo.xml") parseString("") Todo: ===== * convenience methods for getting elements and text. * more testing * bring some of the writer and linearizer code into conformance with this interface * SAX 2 namespaces iÿÿÿÿN(tEMPTY_NAMESPACEt EMPTY_PREFIXtXMLNS_NAMESPACEtdomreg(t*(tDOMImplementationLSt DocumentLStNodecBsõeZdZdZdZdZdZeZ d„Z dd„Z dddd„Z d„Z d„Zd„Zd„Zd „Zd „Zd „Zd „Zd „Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„ZRS(cCstS(N(tTrue(tself((s'/usr/lib64/python2.7/xml/dom/minidom.pyt __nonzero__*scCs|jdd|ƒS(Nt(t toprettyxml(R tencoding((s'/usr/lib64/python2.7/xml/dom/minidom.pyttoxml-ss s cCs‹tƒ}|dk r=ddl}|j|ƒd|ƒ}n|jtjkrk|j|d|||ƒn|j|d||ƒ|jƒS(NiÿÿÿÿiR ( t _get_StringIOtNonetcodecstlookuptnodeTypeRt DOCUMENT_NODEtwritexmltgetvalue(R tindenttnewlR twriterR((s'/usr/lib64/python2.7/xml/dom/minidom.pyR 0s   cCs|jr tStSdS(N(t childNodesRtFalse(R ((s'/usr/lib64/python2.7/xml/dom/minidom.pyt hasChildNodes?s cCs|jS(N(R(R ((s'/usr/lib64/python2.7/xml/dom/minidom.pyt_get_childNodesEscCs|jr|jdSdS(Ni(R(R ((s'/usr/lib64/python2.7/xml/dom/minidom.pyt_get_firstChildHs cCs|jr|jdSdS(Niÿÿÿÿ(R(R ((s'/usr/lib64/python2.7/xml/dom/minidom.pyt_get_lastChildLs cCsw|j|jkr@x't|jƒD]}|j||ƒq"W|S|j|jkr}tjjdt |ƒt |ƒfƒ‚n|j dk rŸ|j j |ƒn|dkr»|j |ƒn¸y|jj|ƒ}Wn tk rótjjƒ‚nX|jtkrt|ƒn|jj||ƒ||_||_|ra|j|d}||_||_n d|_||_ |S(Ns%s cannot be child of %si(RtDOCUMENT_FRAGMENT_NODEttupleRt insertBeforet_child_node_typestxmltdomtHierarchyRequestErrtreprt parentNodeRt removeChildt appendChildtindext ValueErrort NotFoundErrt_nodeTypes_with_childrent_clear_id_cachetinsertt nextSiblingtpreviousSibling(R tnewChildtrefChildtcR+tnode((s'/usr/lib64/python2.7/xml/dom/minidom.pyR"Ps6 "         cCsÒ|j|jkr=x$t|jƒD]}|j|ƒq"W|S|j|jkrztjjdt |ƒt |ƒfƒ‚n|jt kr–t |ƒn|j dk r¸|j j|ƒnt||ƒd|_|S(Ns%s cannot be child of %s(RR R!RR*R#R$R%R&R'R.R/R(RR)t _append_childR1(R R6R5((s'/usr/lib64/python2.7/xml/dom/minidom.pyR*ps "   cCsˆ|j|jkr8|j}|j|ƒ|j||ƒS|j|jkrutjjdt |ƒt |ƒfƒ‚n||kr…dS|j dk r§|j j|ƒny|j j |ƒ}Wn tk rßtjjƒ‚nX||j |<||_ d|_ |jtks|jtkr*t|ƒn|j|_|j|_d|_d|_|jrl||j_n|jr„||j_n|S(Ns%s cannot be child of %s(RR R1R)R"R#R$R%R&R'R(RRR+R,R-R.R/R2(R R3toldChildR4R+((s'/usr/lib64/python2.7/xml/dom/minidom.pyt replaceChild�s<   "            cCs²y|jj|ƒWn tk r6tjjƒ‚nX|jdk rX|j|j_n|jdk ry|j|j_nd|_|_|j t kr¥t |ƒnd|_ |S(N( RtremoveR,R$R%R-R1RR2RR.R/R((R R8((s'/usr/lib64/python2.7/xml/dom/minidom.pyR)¡s   cCs*g}x|jD]}|jtjkrì|jsr|rJ|j|d_n|jre|j|j_n|jƒq|rÜ|dj|jkrÜ|d}|j|j|_|j|_|jrÏ||j_n|jƒq|j|ƒq|j|ƒ|jtj kr|j ƒqqW||j(dS(Niÿÿÿÿ( RRRt TEXT_NODEtdataR1R2tunlinktappendt ELEMENT_NODEt normalize(R tLtchildR6((s'/usr/lib64/python2.7/xml/dom/minidom.pyR@±s*        cCst|||jp|ƒS(N(t _clone_nodet ownerDocument(R tdeep((s'/usr/lib64/python2.7/xml/dom/minidom.pyt cloneNodeÌscCs|jjj||ƒS(N(RDtimplementationt hasFeature(R tfeaturetversion((s'/usr/lib64/python2.7/xml/dom/minidom.pyt isSupportedÏscCsdS(N(R(R ((s'/usr/lib64/python2.7/xml/dom/minidom.pyt_get_localNameÒscCs ||kS(N((R tother((s'/usr/lib64/python2.7/xml/dom/minidom.pyt isSameNodeØscCs|j|dƒr|SdSdS(N(RKR(R RI((s'/usr/lib64/python2.7/xml/dom/minidom.pyt getInterfaceÛscCs2y|j|dSWnttfk r-dSXdS(Ni(t _user_datatAttributeErrortKeyErrorR(R tkey((s'/usr/lib64/python2.7/xml/dom/minidom.pyt getUserDataåscCs’d}y |j}Wn tk r5i}||_nX||krS||d}n|dkr~d}|dk rŽ||=qŽn||f||<|S(Ni(RRPRQ(R RSR<thandlertoldtd((s'/usr/lib64/python2.7/xml/dom/minidom.pyt setUserDataës       cCsdt|dƒr`xN|jjƒD]:\}\}}|dk r|j|||||ƒqqWndS(NRP(thasattrRPtitemsRthandle(R t operationtsrctdstRSR<RU((s'/usr/lib64/python2.7/xml/dom/minidom.pyt_call_user_data_handlerýs" cCs\d|_|_|jrFx|jD]}|jƒq#Wtƒ|_nd|_d|_dS(N(RR(RDRR=tNodeListR2R1(R RB((s'/usr/lib64/python2.7/xml/dom/minidom.pyR=s  N(t__name__t __module__Rt namespaceURIR(RDR1R2RtprefixR RR RRRRR"R*R9R)R@RFRKRLRNRORTRXR_R=(((s'/usr/lib64/python2.7/xml/dom/minidom.pyR!s6                t firstChildtdocsFirst child node, or None.t lastChildsLast child node, or None.t localNames"Namespace-local name of this node.cCsT|j}|r6|d}||jd<||jd(R R6Rtlast((s'/usr/lib64/python2.7/xml/dom/minidom.pyR7s    cCs6x/|dk r1|jtjkr%tS|j}qWtS(N(RRRRRR(R(R6((s'/usr/lib64/python2.7/xml/dom/minidom.pyt _in_documents  cCsP|rL|jddƒjddƒjddƒjddƒ}|j|ƒnd S( sWrites datachars to writer.t&s&ts>N(treplacetwrite(RR<((s'/usr/lib64/python2.7/xml/dom/minidom.pyt _write_data%scCsex^|jD]S}|jtjkrM|dks=|j|krM|j|ƒnt|||ƒq W|S(NR(RRRR?ttagNameR>t_get_elements_by_tagName_helper(tparenttnametrcR6((s'/usr/lib64/python2.7/xml/dom/minidom.pyRs,s cCs†x|jD]t}|jtjkr |dks=|j|krh|dksX|j|krh|j|ƒnt||||ƒq q W|S(NR(RRRR?RhRcR>t"_get_elements_by_tagName_ns_helper(RttnsURIRhRvR6((s'/usr/lib64/python2.7/xml/dom/minidom.pyRw4stDocumentFragmentcBsbeZejZdZdZdZdZ ej ej ej ej ejejejfZd„ZRS(s#document-fragmentcCstƒ|_dS(N(R`R(R ((s'/usr/lib64/python2.7/xml/dom/minidom.pyt__init__KsN(RaRbRR RtnodeNameRt nodeValuet attributesR(R?R;tCDATA_SECTION_NODEtENTITY_REFERENCE_NODEtPROCESSING_INSTRUCTION_NODEt COMMENT_NODEt NOTATION_NODER#Rz(((s'/usr/lib64/python2.7/xml/dom/minidom.pyRy=s  tAttrcBs•eZejZd Zd ZeZ eZ ej ej fZ ed d d„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„ZRS( cCsS|j}||d<|d<||d<||dtText(R tqNameRcRhRdRW((s'/usr/lib64/python2.7/xml/dom/minidom.pyRzXs     cCs|jjddƒdS(Nt:iiÿÿÿÿ(R{tsplit(R ((s'/usr/lib64/python2.7/xml/dom/minidom.pyRLfscCs|jS(N(t specified(R ((s'/usr/lib64/python2.7/xml/dom/minidom.pyt_get_specifiediscCs¹|j}|dkrk||d<|d<|jdj}||d<|d<|jdk rµt|jƒqµnJ|dkr«||d<|d<|jdk rµt|jƒqµn |||R{RŠ(R RAR6((s'/usr/lib64/python2.7/xml/dom/minidom.pyRZßscCsFg}x9|jjƒD](}|j|j|jf|jfƒqW|S(N(R”R®R>RcRhRŠ(R RAR6((s'/usr/lib64/python2.7/xml/dom/minidom.pytitemsNSås&cCs-t|tƒr||jkS||jkSdS(N(t isinstancet StringTypesR”R•(R RS((s'/usr/lib64/python2.7/xml/dom/minidom.pythas_keyës cCs |jjƒS(N(R”R«(R ((s'/usr/lib64/python2.7/xml/dom/minidom.pyR«ñscCs |jjƒS(N(R•R«(R ((s'/usr/lib64/python2.7/xml/dom/minidom.pytkeysNSôscCs |jjƒS(N(R”R®(R ((s'/usr/lib64/python2.7/xml/dom/minidom.pyR®÷scCs|jj||ƒS(N(R”tget(R RuRŠ((s'/usr/lib64/python2.7/xml/dom/minidom.pyR´úscCs<|jt|ddƒkrdStt|ƒt|ƒƒSdS(NR”i(R”tgetattrRtcmptid(R RM((s'/usr/lib64/python2.7/xml/dom/minidom.pyt__cmp__scCs)t|tƒr|j|S|j|SdS(N(R°R!R•R”(R tattname_or_tuple((s'/usr/lib64/python2.7/xml/dom/minidom.pyt __getitem__s cCsšt|tƒrhy|j|}Wn9tk r[t|ƒ}|jj|_|j|ƒnX||_n.t|tƒsƒt d‚n|}|j|ƒdS(Ns%value must be a string or Attr object( R°R±R”RRRƒR¦RDt setNamedItemRŠt TypeError(R tattnameRŠR6((s'/usr/lib64/python2.7/xml/dom/minidom.pyt __setitem__ s    cCs(y|j|SWntk r#dSXdS(N(R”RRR(R Ru((s'/usr/lib64/python2.7/xml/dom/minidom.pyt getNamedItems cCs.y|j||fSWntk r)dSXdS(N(R•RRR(R RcRh((s'/usr/lib64/python2.7/xml/dom/minidom.pytgetNamedItemNS"s cCs�|j|ƒ}|dk rnt|jƒ|j|j=|j|j|jf=d|j krjd|j ds (RÏRu(R ((s'/usr/lib64/python2.7/xml/dom/minidom.pyt__repr__hs cCs|jS(N(Ru(R ((s'/usr/lib64/python2.7/xml/dom/minidom.pyt _get_namenscCs|jS(N(RÏ(R ((s'/usr/lib64/python2.7/xml/dom/minidom.pyt_get_namespaceqs(RÏRu(RaRbRÊRzRÐRÑRÒ(((s'/usr/lib64/python2.7/xml/dom/minidom.pyRÎas    tElementcBsLeZejZdZeZdZ ejej ej ej ej ejfZeddd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd „Zd „Zd „ZeZd „Zd „Zd„ZeZ d„Z!d„Z"d„Z#d„Z$d„Z%dddd„Z&d„Z'd„Z(d„Z)d„Z*d„Z+RS(icCsD||_|_||_||_tƒ|_i|_i|_dS(N(RrR{RdRcR`RR”R•(R RrRcRdRh((s'/usr/lib64/python2.7/xml/dom/minidom.pyRz„s     cCs|jjddƒdS(NR†iiÿÿÿÿ(RrR‡(R ((s'/usr/lib64/python2.7/xml/dom/minidom.pyRL“scCs|jS(N(Rr(R ((s'/usr/lib64/python2.7/xml/dom/minidom.pyt _get_tagName–scCsGx!|jjƒD]}|jƒqWd|_d|_tj|ƒdS(N(R”R®R=RR•R(R tattr((s'/usr/lib64/python2.7/xml/dom/minidom.pyR=™s   cCs+y|j|jSWntk r&dSXdS(NR (R”RŠRR(R R½((s'/usr/lib64/python2.7/xml/dom/minidom.pyt getAttribute s cCs1y|j||fjSWntk r,dSXdS(NR (R•RŠRR(R RcRh((s'/usr/lib64/python2.7/xml/dom/minidom.pytgetAttributeNS¦s cCs¦|j|ƒ}|dkr_t|ƒ}|j}||d<|d<|j|d<|j|ƒnC||jkr¢|j}||d<|d<|jr¢t|ƒq¢ndS(NRŠR|RD( tgetAttributeNodeRRƒRiRDtsetAttributeNodeRŠRœR/(R R½RŠRÕRW((s'/usr/lib64/python2.7/xml/dom/minidom.pyt setAttribute¬s      cCsþt|ƒ\}}|j||ƒ}|dkr‘t||||ƒ}|j}||d<||d<||d<|d<|j|d<|j|ƒni|j}||jkrÔ||d<|d<|jrÔt |ƒqÔn|j |krú||d<||d(RrR·(R ((s'/usr/lib64/python2.7/xml/dom/minidom.pyRÐsR c Cs[|j|d|jƒ|jƒ}|jƒ}|jƒx@|D]8}|jd|ƒt|||jƒ|jdƒqAW|jrF|jdƒt|jƒdkrá|jdj t j krá|jdj |dddƒnH|j|ƒx+|jD] }|j |||||ƒqøW|j|ƒ|jd|j|fƒn|jd |ƒdS( NRms %s="s"RniiR s%ss/>%s( RpRrt_get_attributesR«tsortRqRŠRR©RRR;R( R RRt addindentRR§ta_namesta_nameR6((s'/usr/lib64/python2.7/xml/dom/minidom.pyRs&         cCst|j|j|ƒS(N(R¥R”R•(R ((s'/usr/lib64/python2.7/xml/dom/minidom.pyRì4scCs|jr tStSdS(N(R”RR(R ((s'/usr/lib64/python2.7/xml/dom/minidom.pyt hasAttributes7s cCs |j|ƒ}|j|ƒdS(N(RØtsetIdAttributeNode(R RutidAttr((s'/usr/lib64/python2.7/xml/dom/minidom.pytsetIdAttribute?scCs#|j||ƒ}|j|ƒdS(N(RÜRò(R RcRhRó((s'/usr/lib64/python2.7/xml/dom/minidom.pytsetIdAttributeNSCscCs�|dks|j|jƒ r1tjjƒ‚nt|ƒdk rUtjjƒ‚n|js™t |j d<|j d7_ |j j d7_ t|ƒndS(NR–i(RRNR‹R$R%R-t_get_containing_entreftNoModificationAllowedErrR–RRiR—RDR˜R/(R Ró((s'/usr/lib64/python2.7/xml/dom/minidom.pyRòGs  N(,RaRbRR?RRR|RŸR¤R—R€R�R;R~RR#RRzRLRÔR=RÖR×RÚRßRØRÜRÙtsetAttributeNodeNSRæRçRâtremoveAttributeNodeNSRèRéRêRëRÐRRìRñRôRõRò(((s'/usr/lib64/python2.7/xml/dom/minidom.pyRÓvsL                         R}s*NamedNodeMap of attributes on the element.s%Namespace-local name of this element.cCsDt|ƒ||j|j<||j|j|jf<||jd%s(RpRþR<(R RRRîR((s'/usr/lib64/python2.7/xml/dom/minidom.pyR¦s( RaRbRR€RRzRÿRRRR�R(((s'/usr/lib64/python2.7/xml/dom/minidom.pyRý‹s       t CharacterDatacBsteZd„ZeZd„Zd„ZeZeZd„Zd„Z d„Z d„Z d„Z d„Z d „ZRS( cCs t|jƒS(N(R©R<(R ((s'/usr/lib64/python2.7/xml/dom/minidom.pyRª«scCs |jdS(NR<(Ri(R ((s'/usr/lib64/python2.7/xml/dom/minidom.pyRÿ¯scCs|j}||d<|di(R<R©t __class__Ra(R R<t dotdotdot((s'/usr/lib64/python2.7/xml/dom/minidom.pyRоs   cCs~|dkr!tjjdƒ‚n|t|jƒkrKtjjdƒ‚n|dkrltjjdƒ‚n|j|||!S(Nisoffset cannot be negatives#offset cannot be beyond end of datascount cannot be negative(R$R%t IndexSizeErrR©R<(R toffsettcount((s'/usr/lib64/python2.7/xml/dom/minidom.pyt substringDataÇs  cCs|j||_dS(N(R<(R targ((s'/usr/lib64/python2.7/xml/dom/minidom.pyt appendDataÐscCs||dkr!tjjdƒ‚n|t|jƒkrKtjjdƒ‚n|rxd|j| ||j|f|_ndS(Nisoffset cannot be negatives#offset cannot be beyond end of datas%s%s%s(R$R%RR©R<(R RR ((s'/usr/lib64/python2.7/xml/dom/minidom.pyt insertDataÓs cCs˜|dkr!tjjdƒ‚n|t|jƒkrKtjjdƒ‚n|dkrltjjdƒ‚n|r”|j| |j|||_ndS(Nisoffset cannot be negatives#offset cannot be beyond end of datascount cannot be negative(R$R%RR©R<(R RR((s'/usr/lib64/python2.7/xml/dom/minidom.pyt deleteDataÜs  cCs¡|dkr!tjjdƒ‚n|t|jƒkrKtjjdƒ‚n|dkrltjjdƒ‚n|r�d|j| ||j||f|_ndS(Nisoffset cannot be negatives#offset cannot be beyond end of datascount cannot be negatives%s%s%s(R$R%RR©R<(R RRR ((s'/usr/lib64/python2.7/xml/dom/minidom.pyt replaceDataæs  (RaRbRªRËRÿRt_get_nodeValuet_set_nodeValueR�RÐR R R R R(((s'/usr/lib64/python2.7/xml/dom/minidom.pyRªs      sLength of the string data.R„cBsSeZejZdZdZd„Zdddd„Z d„Z d„Z d„Z RS(s#textcCsË|dks!|t|jƒkr6tjjdƒ‚n|jƒ}|j||_|j|_|j}|jr·||jj kr·|dkr¡|jj |ƒq·|jj ||ƒn|j| |_|S(Nisillegal offset value( R©R<R$R%RRRDR1R(RRR*R"(R RtnewTexttnext((s'/usr/lib64/python2.7/xml/dom/minidom.pyt splitTextþs!    R cCs!t|d||j|fƒdS(Ns%s%s%s(RqR<(R RRRîR((s'/usr/lib64/python2.7/xml/dom/minidom.pyR scCsÄ|jg}|j}xK|dk rb|jtjtjfkr^|jd|jƒ|j}qPqW|j}xH|dk r¶|jtjtjfkr²|j |jƒ|j}qoPqoWdj |ƒS(NiR ( R<R2RRRR;R~R0R1R>tjoin(R RARÁ((s'/usr/lib64/python2.7/xml/dom/minidom.pyt_get_wholeTexts     cCsü|j}|j}xK|dk r_|jtjtjfkr[|j}|j|ƒ|}qPqW|j}|s|j|ƒnxK|dk rÌ|jtjtjfkrÈ|j}|j|ƒ|}q‚Pq‚W|rô|j }||d<||d<|SdSdS(NR<R|( R(R2RRRR;R~R)R1Ri(R tcontentRtRÁRRW((s'/usr/lib64/python2.7/xml/dom/minidom.pytreplaceWholeText$s.            cCs_|jjƒrtSt|ƒ}|dkr/tS|jj|ƒ}|dkrQtS|jƒSdS(N(R<tstripRt_get_containing_elementRRDRštisElementContent(R R™R�((s'/usr/lib64/python2.7/xml/dom/minidom.pyt!_get_isWhitespaceInElementContentBs   N( RaRbRR;RR{RR}RRRRR(((s'/usr/lib64/python2.7/xml/dom/minidom.pyR„ôs    tisWhitespaceInElementContentsKTrue iff this text node contains only whitespace and is in element content.t wholeTexts.The text of all logically-adjacent text nodes.cCs?|j}x/|dk r:|jtjkr.|S|j}q WdS(N(R(RRRR?(R6R5((s'/usr/lib64/python2.7/xml/dom/minidom.pyRUs   cCs?|j}x/|dk r:|jtjkr.|S|j}q WdS(N(R(RRRR(R6R5((s'/usr/lib64/python2.7/xml/dom/minidom.pyRö]s   tCommentcBs2eZejZdZd„Zdddd„ZRS(s#commentcCs||_|_dS(N(R<R|(R R<((s'/usr/lib64/python2.7/xml/dom/minidom.pyRzjsR cCs?d|jkrtdƒ‚n|jd||j|fƒdS(Ns--s%'--' is not allowed in a comment nodes %s%s(R<R,Rp(R RRRîR((s'/usr/lib64/python2.7/xml/dom/minidom.pyRms(RaRbRR�RR{RzR(((s'/usr/lib64/python2.7/xml/dom/minidom.pyRfs  t CDATASectioncBs)eZejZdZdddd„ZRS(s#cdata-sectionR cCs?|jjdƒdkr'tdƒ‚n|jd|jƒdS(Ns]]>is$']]>' not allowed in a CDATA sections(R<tfindR,Rp(R RRRîR((s'/usr/lib64/python2.7/xml/dom/minidom.pyR|s(RaRbRR~RR{R(((s'/usr/lib64/python2.7/xml/dom/minidom.pyRss tReadOnlySequentialNamedNodeMapcBs†eZdZdd„Zd„Zd„Zd„Zd„Zd„Zd„Z d„Z d „Z d „Z d „Z d „Zd „ZRS(t_seqcCs ||_dS(N(R"(R tseq((s'/usr/lib64/python2.7/xml/dom/minidom.pyRz…scCs t|jƒS(N(R©R"(R ((s'/usr/lib64/python2.7/xml/dom/minidom.pyRˉscCs t|jƒS(N(R©R"(R ((s'/usr/lib64/python2.7/xml/dom/minidom.pyRªŒscCs+x$|jD]}|j|kr |Sq WdS(N(R"R{(R RuRÁ((s'/usr/lib64/python2.7/xml/dom/minidom.pyR¿�scCs:x3|jD](}|j|kr |j|kr |Sq WdS(N(R"RcRh(R RcRhRÁ((s'/usr/lib64/python2.7/xml/dom/minidom.pyRÀ”scCsLt|tƒr!|j|Œ}n|j|ƒ}|dkrHt|‚n|S(N(R°R!RÀR¿RRR(R t name_or_tupleR6((s'/usr/lib64/python2.7/xml/dom/minidom.pyRº™s   cCs8|dkrdSy|j|SWntk r3dSXdS(Ni(RR"R¬(R R+((s'/usr/lib64/python2.7/xml/dom/minidom.pyR­¢s   cCstjjdƒ‚dS(Ns"NamedNodeMap instance is read-only(R$R%R÷(R Ru((s'/usr/lib64/python2.7/xml/dom/minidom.pyRªs cCstjjdƒ‚dS(Ns"NamedNodeMap instance is read-only(R$R%R÷(R RcRh((s'/usr/lib64/python2.7/xml/dom/minidom.pyRîs cCstjjdƒ‚dS(Ns"NamedNodeMap instance is read-only(R$R%R÷(R R6((s'/usr/lib64/python2.7/xml/dom/minidom.pyR»²s cCstjjdƒ‚dS(Ns"NamedNodeMap instance is read-only(R$R%R÷(R R6((s'/usr/lib64/python2.7/xml/dom/minidom.pyRĶs cCs |jgS(N(R"(R ((s'/usr/lib64/python2.7/xml/dom/minidom.pyRƺscCs|d|_dS(Ni(R"(R RÇ((s'/usr/lib64/python2.7/xml/dom/minidom.pyRȽs(R"((RaRbRÊRzRËRªR¿RÀRºR­RÂRÃR»RÄRÆRÈ(((s'/usr/lib64/python2.7/xml/dom/minidom.pyR!‚s           s&Number of entries in the NamedNodeMap.t IdentifiedcBs)eZdZd„Zd„Zd„ZRS(s@Mix-in class that supports the publicId and systemId attributes.cCs||_||_dS(N(tpublicIdtsystemId(R R&R'((s'/usr/lib64/python2.7/xml/dom/minidom.pyt_identified_mixin_initÊs cCs|jS(N(R&(R ((s'/usr/lib64/python2.7/xml/dom/minidom.pyt _get_publicIdÎscCs|jS(N(R'(R ((s'/usr/lib64/python2.7/xml/dom/minidom.pyt _get_systemIdÑs(RaRbRÉR(R)R*(((s'/usr/lib64/python2.7/xml/dom/minidom.pyR%Äs  t DocumentTypecBs\eZejZdZdZdZdZ dZ d„Z d„Z d„Z dddd„ZRS(cCsLtƒ|_tƒ|_|r<t|ƒ\}}||_n|j|_dS(N(R!tentitiest notationsRÛRuR{(R RÝRdRÞ((s'/usr/lib64/python2.7/xml/dom/minidom.pyRzÜs    cCs|jS(N(tinternalSubset(R ((s'/usr/lib64/python2.7/xml/dom/minidom.pyt_get_internalSubsetäscCs\|jdkrTtdƒ}|j|_|j|_tjjj}|r=g|j _ g|j _ xU|j j D]G}t |j|j |jƒ}|j j j|ƒ|j|||ƒqmWx‚|j j D]q}t|j|j |j|jƒ}|j|_|j|_|j|_|j j j|ƒ|j|||ƒqÅWn|j|||ƒ|SdSdS(N(RDRR+RuR{R$R%tUserDataHandlert NODE_CLONEDR,R"R-tNotationR&R'R>R_tEntityt notationNametactualEncodingR RJ(R REtcloneR\RÁtnotationtetentity((s'/usr/lib64/python2.7/xml/dom/minidom.pyRFçs.         R cCsÃ|jdƒ|j|jƒ|jrL|jd||j||jfƒn&|jrr|jd||jfƒn|jdk r®|jdƒ|j|jƒ|jdƒn|jd|ƒdS(Ns R*R"R)R9(((s'/usr/lib64/python2.7/xml/dom/minidom.pyR3s        R2cBs eZejZdZd„ZRS(cCs||_|j||ƒdS(N(R{R((R RuR&R'((s'/usr/lib64/python2.7/xml/dom/minidom.pyRz<s N(RaRbRR‚RRR|Rz(((s'/usr/lib64/python2.7/xml/dom/minidom.pyR28s tDOMImplementationc BsSeZd d ddddddgZd„Zd„Zd„Zd „Zd „ZRS(tcores1.0s2.0R$sls-loads3.0cCs.|dkrd}n|jƒ|f|jkS(NR (Rtlowert _features(R RIRJ((s'/usr/lib64/python2.7/xml/dom/minidom.pyRHLs  c CsK|r*|jdk r*tjjdƒ‚n|jƒ}|dkoW|dkoW|dk }| r}|r}tjjdƒ‚n|rt|ƒ\}}|dkrÂ|dkrÂtjjdƒ‚n|rä| rätjjdƒ‚n|j ||ƒ}|r |j |ƒn|j |ƒn|r5||_|_ n||_ ||_ |S(Ns(doctype object owned by another DOM treesElement with no nameR$s$http://www.w3.org/XML/1998/namespacesillegal use of 'xml' prefixs(illegal use of prefix without namespaces(R(RR$R%tWrongDocumentErrt_create_documenttInvalidCharacterErrRÛR�tcreateElementNSR*RDtdoctypeRG( R RcRÝRHRftadd_root_elementRdRÞRú((s'/usr/lib64/python2.7/xml/dom/minidom.pytcreateDocumentQs4              cCs"t|ƒ}||_||_|S(N(R+R&R'(R RÝR&R'RH((s'/usr/lib64/python2.7/xml/dom/minidom.pytcreateDocumentType~s   cCs|j|dƒr|SdSdS(N(RHR(R RI((s'/usr/lib64/python2.7/xml/dom/minidom.pyRO†scCstƒS(N(tDocument(R ((s'/usr/lib64/python2.7/xml/dom/minidom.pyRE�s(RAs1.0(RAs2.0N(RAN(R$s1.0(R$s2.0(R$N(sls-loads3.0(sls-loadN( RaRbRRCRHRJRKRORE(((s'/usr/lib64/python2.7/xml/dom/minidom.pyR@As   -  t ElementInfocBseeZdZd Zd„Zd„Zd„Zd„Zd„Zd„Z d„Z d „Z d „Z RS( s÷Object that represents content-model information for an element. This implementation is not expected to be used in practice; DOM builders should provide implementations which do the right thing using information available to it. RrcCs ||_dS(N(Rr(R Ru((s'/usr/lib64/python2.7/xml/dom/minidom.pyRz›scCstS(N(RŸ(R taname((s'/usr/lib64/python2.7/xml/dom/minidom.pyR¡žscCstS(N(RŸ(R RcRh((s'/usr/lib64/python2.7/xml/dom/minidom.pyR ¡scCstS(N(R(R ((s'/usr/lib64/python2.7/xml/dom/minidom.pyR¤scCstS(sQReturns true iff this element is declared to have an EMPTY content model.(R(R ((s'/usr/lib64/python2.7/xml/dom/minidom.pytisEmpty§scCstS(s7Returns true iff the named attribute is a DTD-style ID.(R(R RN((s'/usr/lib64/python2.7/xml/dom/minidom.pyRœ¬scCstS(s<Returns true iff the identified attribute is a DTD-style ID.(R(R RcRh((s'/usr/lib64/python2.7/xml/dom/minidom.pyR›°scCs|jS(N(Rr(R ((s'/usr/lib64/python2.7/xml/dom/minidom.pyRÆ´scCs ||_dS(N(Rr(R RÇ((s'/usr/lib64/python2.7/xml/dom/minidom.pyRÈ·s(Rr( RaRbRÉRÊRzR¡R RRORœR›RÆRÈ(((s'/usr/lib64/python2.7/xml/dom/minidom.pyRM�s        cCsZ|jtjkr+|jjƒd|_n+t|ƒrV|jjjƒd|j_ndS(N( RRRt _id_cachetclearRt_id_search_stackRkRD(R6((s'/usr/lib64/python2.7/xml/dom/minidom.pyR/ºs    RLcBsÅeZejejejejfZejZ dZ d$Z d$Z d$Zd$Zd$ZZeƒZd$Zd$Zd$Zd$ZeZd$Zd$ZdZd„Zd„Zd„Zd„Z d„Z!d„Z"d„Z#d „Z$d „Z%d „Z&d „Z'd „Z(d„Z)d„Z*d„Z+d„Z,d„Z-d„Z.d„Z/d„Z0d„Z1d„Z2d„Z3d„Z4d„Z5d„Z6d„Z7d„Z8d„Z9d„Z:d „Z;d!d!d!d$d"„Z<d#„Z=RS(%s #documenticCs+tƒ|_i|_i|_d|_dS(N(R`Rt _elem_infoRPRRR(R ((s'/usr/lib64/python2.7/xml/dom/minidom.pyRzÜs   cCs7|jr|j|jf}n |j}|jj|ƒS(N(RcRhRrRSR´(R RúRS((s'/usr/lib64/python2.7/xml/dom/minidom.pyRšäs  cCs|jS(N(R5(R ((s'/usr/lib64/python2.7/xml/dom/minidom.pyR<ëscCs|jS(N(RH(R ((s'/usr/lib64/python2.7/xml/dom/minidom.pyt _get_doctypeîscCs|jS(N(t documentURI(R ((s'/usr/lib64/python2.7/xml/dom/minidom.pyt_get_documentURIñscCs|jS(N(R (R ((s'/usr/lib64/python2.7/xml/dom/minidom.pyR=ôscCs|jS(N(t errorHandler(R ((s'/usr/lib64/python2.7/xml/dom/minidom.pyt_get_errorHandler÷scCs|jS(N(t standalone(R ((s'/usr/lib64/python2.7/xml/dom/minidom.pyt_get_standaloneúscCs|jS(N(tstrictErrorChecking(R ((s'/usr/lib64/python2.7/xml/dom/minidom.pyt_get_strictErrorCheckingýscCs|jS(N(RJ(R ((s'/usr/lib64/python2.7/xml/dom/minidom.pyR>scCs¢|j|jkr=tjjdt|ƒt|ƒfƒ‚n|jdk r_|jj|ƒn|jt j kr’|j ƒr’tjjdƒ‚nt j ||ƒS(Ns%s cannot be child of %ss two document elements disallowed( RR#R$R%R&R'R(RR)RR?t_get_documentElementR*(R R6((s'/usr/lib64/python2.7/xml/dom/minidom.pyR*s "   cCsoy|jj|ƒWn tk r6tjjƒ‚nXd|_|_d|_ |j |krkd|_ n|S(N( RR:R,R$R%R-RR1R2R(tdocumentElement(R R8((s'/usr/lib64/python2.7/xml/dom/minidom.pyR)s   cCs.x'|jD]}|jtjkr |Sq WdS(N(RRRR?(R R6((s'/usr/lib64/python2.7/xml/dom/minidom.pyR]scCs9|jdk r(|jjƒd|_ntj|ƒdS(N(RHRR=R(R ((s'/usr/lib64/python2.7/xml/dom/minidom.pyR=$s  cCsØ|s dS|jjdddƒ}|j|_|j|_|j|_xo|jD]d}t|||ƒ}|jj|ƒ|j t j kr�n|j t j kr«||_ n||_qPW|jtjjj||ƒ|S(N(RRGRJR RYRJRRCR>RRRR;RHR(R_R$R%R0R1(R RER6RÁt childclone((s'/usr/lib64/python2.7/xml/dom/minidom.pyRF*s"      cCstƒ}||_|S(N(RyRD(R RW((s'/usr/lib64/python2.7/xml/dom/minidom.pytcreateDocumentFragment?s  cCst|ƒ}||_|S(N(RÓRD(R RrR8((s'/usr/lib64/python2.7/xml/dom/minidom.pyt createElementDs  cCs:t|tƒstd‚ntƒ}||_||_|S(Nsnode contents must be a string(R°R±R¼R„R<RD(R R<tt((s'/usr/lib64/python2.7/xml/dom/minidom.pytcreateTextNodeIs     cCs:t|tƒstd‚ntƒ}||_||_|S(Nsnode contents must be a string(R°R±R¼RR<RD(R R<R5((s'/usr/lib64/python2.7/xml/dom/minidom.pytcreateCDATASectionQs     cCst|ƒ}||_|S(N(RRD(R R<R5((s'/usr/lib64/python2.7/xml/dom/minidom.pyt createCommentYs  cCst||ƒ}||_|S(N(RýRD(R RþR<tp((s'/usr/lib64/python2.7/xml/dom/minidom.pytcreateProcessingInstruction^s cCs"t|ƒ}||_d|_|S(NR (RƒRDRŠ(R R…ta((s'/usr/lib64/python2.7/xml/dom/minidom.pytcreateAttributecs   cCs1t|ƒ\}}t|||ƒ}||_|S(N(RÛRÓRD(R RcRÝRdRhR8((s'/usr/lib64/python2.7/xml/dom/minidom.pyRGis cCs=t|ƒ\}}t||||ƒ}||_d|_|S(NR (RÛRƒRDRŠ(R RcRÝRdRhRh((s'/usr/lib64/python2.7/xml/dom/minidom.pytcreateAttributeNSos   cCs"t||||ƒ}||_|S(N(R3RD(R RuR&R'R4R8((s'/usr/lib64/python2.7/xml/dom/minidom.pyt_create_entityys cCst|||ƒ}||_|S(N(R2RD(R RuR&R'RÁ((s'/usr/lib64/python2.7/xml/dom/minidom.pyt_create_notation~s cCsE||jkr|j|S|jp)|js0dS|j}|dkr]|jg}||_n |sgdSd}xÑ|r@|jƒ}|jg|jD]}|j t kr’|^q’ƒ|j |ƒ}|rÓxa|j j ƒD]ó}|jr;|j|j|jƒrÌ||j|j<|j|kr(|}q8|js8Pq8qÌqÙ|j|jƒr…||j|j<|j|kru|}qÌ|jsÌPqÌqÙ|jrÙ||j|j<|j|kr¶|}qÌ|jdkrÌPqÌqÙqÙWnZ|jr-xN|j j ƒD]:}|jrì||j|j<|j|kr&|}q&qìqìWn|dk rpPqpqpW|S(Ni(RPRSR˜RRRR^tpoptextendRRR.RšR}R®RcR›RhRŠR—RœRuR–(R R·tstacktresultR6RBR�RÕ((s'/usr/lib64/python2.7/xml/dom/minidom.pytgetElementByIdƒs\                  cCst||tƒƒS(N(RsR`(R Ru((s'/usr/lib64/python2.7/xml/dom/minidom.pyRê½scCst|||tƒƒS(N(RwR`(R RcRh((s'/usr/lib64/python2.7/xml/dom/minidom.pyRëÀscCs|jj||ƒS(N(RGRH(R RIRJ((s'/usr/lib64/python2.7/xml/dom/minidom.pyRKÄscCs^|jtjkr'tjjdƒ‚n'|jtjkrNtjjdƒ‚nt|||ƒS(Nscannot import document nodess!cannot import document type nodes(RRRR$R%tNotSupportedErrR;RC(R R6RE((s'/usr/lib64/python2.7/xml/dom/minidom.pyt importNodeÇs R cCse|dkr |jd|ƒn|jd||fƒx'|jD]}|j||||ƒqAWdS(Nss%%s(RRpRR(R RRRîRR R6((s'/usr/lib64/python2.7/xml/dom/minidom.pyRÎs  c Cs|j|k r1tjjd||jfƒ‚n|jtjtjfkratjjdƒ‚n|t krd|krÇ|j ddƒ\}}|dkr|tjj krtjj dƒ‚qq'|dkr |tjj kr |jtjkr tjj dƒ‚nd}|}n d}d}|jtjkrj|j}|dk rp|j}|j|ƒqpnd}|j}||d<||d <||d <||d <|jtjkrÀ||d RaRbRR?R€R�R;R#RRR{RR|R}RHR(R2R1R@RGR5R RYRJRR[RWRUR˜RzRšR<RTRVR=RXRZR\R>R*R)R]R=RFR`RaRcRdReRgRiRGRjRkRlRqRêRëRKRsRRu(((s'/usr/lib64/python2.7/xml/dom/minidom.pyRLÂsh                             :      R^s#Top-level element of this document.c Csû|jj|ƒr$tjjj}ntjjj}|jtj krö|j |j |j ƒ}xW|j jƒD]F}|j|j |j |jƒ|j|j |jƒ}|j|_qmW|rÒx3|jD]%}t|||ƒ}|j|ƒqÇWqÒnÜ|jtjkrS|jƒ}|rÒx3|jD]%}t|||ƒ}|j|ƒq$WqÒn|jtjkrz|j|jƒ}nX|jtjkr¡|j|jƒ}n1|jtjkrÎ|j|j |jƒ}n|jtj!krõ|j"|jƒ}nÝ|jtj#kr7|j$|j |j ƒ}t%|_|j|_n›|jtj&kr¶tjjj}|j'j(|j)|j*|j+ƒ}||_|rÒg|j,_-g|j._-xp|j.j-D]b} t/| j | j*| j+ƒ} || _|j.j-j0| ƒt1| dƒr­| j2|| | ƒq­q­Wx�|j,j-D]Œ} t3| j | j*| j+| j4ƒ} | j5| _5| j6| _6| j7| _7|| _|j,j-j0| ƒt1| dƒr | j2|| | ƒq q WqÒntjj8dt9|ƒƒ‚t1|dƒr÷|j2|||ƒn|S(so Clone a node and give it the new owner document. Called by Node.cloneNode and Document.importNode R_sCannot clone node %s(:RDRNR$R%R0R1t NODE_IMPORTEDRRR?RGRcR{R}R®RßRŠRÜRhRˆRRCR*R R`R;RcR<R~RdR€RgRþR�ReR£RjRR;RGRKRuR&R'R,R"R-R2R>RYR_R3R4R5R RJRrR'( R6REtnewOwnerDocumentR\R6RÕRhRBR5RÁR7R8R9((s'/usr/lib64/python2.7/xml/dom/minidom.pyRCs|                  cCs:|jddƒ}t|ƒdkr(|Sd|dfSdS(NR†iii(R‡R©R(RÝtfields((s'/usr/lib64/python2.7/xml/dom/minidom.pyRÛfscCsddlm}|ƒS(Niÿÿÿÿ(tStringIO(Ry(Ry((s'/usr/lib64/python2.7/xml/dom/minidom.pyRnscCs<|||Ž}|jƒ\}}|j|ƒ|jƒ|S(N(tgetEventt expandNodeRQ(tfunctargstkwargsteventsttoktypetrootNode((s'/usr/lib64/python2.7/xml/dom/minidom.pyt_do_pulldom_parsess   cCsh|dkr0| r0ddlm}|j|ƒSddlm}t|j|fi|d6|d6ƒSdS(s3Parse a file into a DOM by filename or file object.iÿÿÿÿ(t expatbuilder(tpulldomtparsertbufsizeN(Rtxml.domRƒtparseR„R‚(tfileR…R†RƒR„((s'/usr/lib64/python2.7/xml/dom/minidom.pyRˆzs  cCsZ|dkr)ddlm}|j|ƒSddlm}t|j|fi|d6ƒSdS(s&Parse a file into a DOM from a string.iÿÿÿÿ(Rƒ(R„R…N(RR‡Rƒt parseStringR„R‚(tstringR…RƒR„((s'/usr/lib64/python2.7/xml/dom/minidom.pyRŠ„s   cCsa|rZt|tƒr'tj|ƒ}nx0|D]%\}}tjj||ƒs.dSq.WntjS(N(R°R±Rt_parse_feature_stringRLRGRHR(tfeaturestftv((s'/usr/lib64/python2.7/xml/dom/minidom.pytgetDOMImplementationŽs (8RÉR‡R$RRRRtxml.dom.minicompattxml.dom.xmlbuilderRRR%RR?RR.t defpropertyR7RkRqRsRwRyRƒtobjectR¥t AttributeListRÎRRŸRÓRãRûRýRR„RRöRRR!R%R+R3R2R@RMR/RLRCRÛRR‚RˆRŠR�(((s'/usr/lib64/python2.7/xml/dom/minidom.pyts„ "  í    r• Ü   (GZ     > <( O* ÿO  R