JFIF  x x C         C     "        } !1AQa "q2 #B R $3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz        w !1AQ aq"2 B #3R br $4 % &'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz   ?  N m? j EP ó Åßjc@sûdZddlZddlmZmZmZmZddlTddlm 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„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)„ƒYZd*ee fd+„ƒYZ d,ee fd-„ƒYZ!ee!dd d.ƒd/e!fd0„ƒYZ"ee"d1d d2ƒee"d3d d4ƒd5„Z#d6„Z$d7ee!fd8„ƒYZ%d9e"fd:„ƒYZ&d;efd<„ƒYZ'ee'dd d=ƒd>fd?„ƒYZ(d@e(ee fdA„ƒYZ)dBe(e fdC„ƒYZ*dDe(ee fdE„ƒYZ+dFe fdG„ƒYZ,dHefdI„ƒYZ-dJ„Z.dKe e fdL„ƒYZ/ee/dMd dNƒdO„Z0dP„Z1dQ„Z2dR„Z3eedS„Z4edT„Z5edU„Z6dS(VscSimple 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((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyt __nonzero__*scCs|jdd|ƒS(Nt(t toprettyxml(R tencoding((s4/opt/alt/python27/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((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyR 0s   cCs|jr tStSdS(N(t childNodesRtFalse(R ((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyt hasChildNodes?s cCs|jS(N(R(R ((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyt_get_childNodesEscCs|jr|jdSdS(Ni(R(R ((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyt_get_firstChildHs cCs|jr|jdSdS(Niÿÿÿÿ(R(R ((s4/opt/alt/python27/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((s4/opt/alt/python27/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((s4/opt/alt/python27/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+((s4/opt/alt/python27/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((s4/opt/alt/python27/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((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyR@±s*        cCst|||jp|ƒS(N(t _clone_nodet ownerDocument(R tdeep((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyt cloneNodeÌscCs|jjj||ƒS(N(RDtimplementationt hasFeature(R tfeaturetversion((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyt isSupportedÏscCsdS(N(R(R ((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyt_get_localNameÒscCs ||kS(N((R tother((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyt isSameNodeØscCs|j|dƒr|SdSdS(N(RKR(R RI((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyt getInterfaceÛscCs2y|j|dSWnttfk r-dSXdS(Ni(t _user_datatAttributeErrortKeyErrorR(R tkey((s4/opt/alt/python27/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((s4/opt/alt/python27/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((s4/opt/alt/python27/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((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyR=s  N(t__name__t __module__Rt namespaceURIR(RDR1R2RtprefixR RR RRRRR"R*R9R)R@RFRKRLRNRORTRXR_R=(((s4/opt/alt/python27/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((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyR7s    cCsP|rL|jddƒjddƒjddƒjddƒ}|j|ƒnd S( sWrites datachars to writer.t&s&ts>N(treplacetwrite(RR<((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyt _write_datascCsex^|jD]S}|jtjkrM|dks=|j|krM|j|ƒnt|||ƒq W|S(NR(RRRR?ttagNameR>t_get_elements_by_tagName_helper(tparenttnametrcR6((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyRr%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(RstnsURIRhRuR6((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyRv-stDocumentFragmentcBsbeZejZdZdZdZdZ ej ej ej ej ejejejfZd„ZRS(s#document-fragmentcCstƒ|_dS(N(R`R(R ((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyt__init__DsN(RaRbRR RtnodeNameRt nodeValuet attributesR(R?R;tCDATA_SECTION_NODEtENTITY_REFERENCE_NODEtPROCESSING_INSTRUCTION_NODEt COMMENT_NODEt NOTATION_NODER#Ry(((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyRx6s  tAttrcBs•eZejZd Zd ZeZ eZ ej ej fZ ed d d„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„ZRS( cCs]|j}d|d<||d<|d<||d<||dtText(R tqNameRcRhRdRW((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyRyQs     cCs|jjddƒdS(Nt:iiÿÿÿÿ(Rztsplit(R ((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyRL`scCs|jS(N(t specified(R ((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyt_get_specifiedcscCs¹|j}|dkrk||d<|d<|jdj}||d<|d<|jdk rµt|jƒqµnJ|dkr«||d<|d<|jdk rµt|jƒqµn |||RzR‰(R RAR6((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyRZÙscCsFg}x9|jjƒD](}|j|j|jf|jfƒqW|S(N(R“R­R>RcRhR‰(R RAR6((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pytitemsNSßs&cCs-t|tƒr||jkS||jkSdS(N(t isinstancet StringTypesR“R”(R RS((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pythas_keyås cCs |jjƒS(N(R“Rª(R ((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyRªëscCs |jjƒS(N(R”Rª(R ((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pytkeysNSîscCs |jjƒS(N(R“R­(R ((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyR­ñscCs|jj||ƒS(N(R“tget(R RtR‰((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyR³ôscCs<|jt|ddƒkrdStt|ƒt|ƒƒSdS(NR“i(R“tgetattrRtcmptid(R RM((s4/opt/alt/python27/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((s4/opt/alt/python27/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((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyt __setitem__s    cCs(y|j|SWntk r#dSXdS(N(R“RRR(R Rt((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyt getNamedItems cCs.y|j||fSWntk r)dSXdS(N(R”RRR(R RcRh((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pytgetNamedItemNSs cCs�|j|ƒ}|dk rnt|jƒ|j|j=|j|j|jf=d|j krjd|j ds (RÎRt(R ((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyt__repr__bs cCs|jS(N(Rt(R ((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyt _get_namehscCs|jS(N(RÎ(R ((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyt_get_namespaceks(RÎRt(RaRbRÉRyRÏRÐRÑ(((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyRÍ[s    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(icCsMd|_||_|_||_||_tƒ|_i|_i|_ dS(N( RRDRqRzRdRcR`RR“R”(R RqRcRdRh((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyRy~s     cCs|jjddƒdS(NR…iiÿÿÿÿ(RqR†(R ((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyRLŽscCs|jS(N(Rq(R ((s4/opt/alt/python27/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((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyR=”s   cCs+y|j|jSWntk r&dSXdS(NR (R“R‰RR(R R¼((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyt getAttribute›s cCs1y|j||fjSWntk r,dSXdS(NR (R”R‰RR(R RcRh((s4/opt/alt/python27/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((s4/opt/alt/python27/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(RqR¶(R ((s4/opt/alt/python27/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( NRls %s="s"RmiiR s%ss/>%s( RoRqt_get_attributesRªtsortRpR‰RR¨RRR;R( R RRt addindentRR¦ta_namesta_nameR6((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyRs&         cCst|j|j|ƒS(N(R¤R“R”(R ((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyRë/scCs|jr tStSdS(N(R“RR(R ((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyt hasAttributes2s cCs |j|ƒ}|j|ƒdS(N(R×tsetIdAttributeNode(R RttidAttr((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pytsetIdAttribute:scCs#|j||ƒ}|j|ƒdS(N(RÛRñ(R RcRhRò((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pytsetIdAttributeNS>scCs�|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ò((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyRñBs  N(,RaRbRR?RRR{RžR£R–RR€R;R}R~R#RRyRLRÓR=RÕRÖRÙRÞR×RÛRØtsetAttributeNodeNSRåRæRátremoveAttributeNodeNSRçRèRéRêRÏRRëRðRóRôRñ(((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyRÒpsL                         R|s*NamedNodeMap of attributes on the element.s%Namespace-local name of this element.cCsDt|ƒ||j|j<||j|j|jf<||jd%s(RoRýR<(R RRRíR((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyR¡s( RaRbRRRRyRþRÿRRRŒR(((s4/opt/alt/python27/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 ((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyR©¦scCs |jdS(NR<(Ri(R ((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyRþªscCs|j}||d<|di(R<R¨t __class__Ra(R R<t dotdotdot((s4/opt/alt/python27/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((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyt substringDataÂs  cCs|j||_dS(N(R<(R targ((s4/opt/alt/python27/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 ((s4/opt/alt/python27/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((s4/opt/alt/python27/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 ((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyt replaceDataás  (RaRbR©RÊRþRÿt_get_nodeValuet_set_nodeValueRŒRÏRR R R R (((s4/opt/alt/python27/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((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyt splitTextùs!    R cCs!t|d||j|fƒdS(Ns%s%s%s(RpR<(R RRRíR((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyRscCsÄ|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À((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyt_get_wholeText s     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 tcontentRsRÀRRW((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pytreplaceWholeTexts.            cCs_|jjƒrtSt|ƒ}|dkr/tS|jj|ƒ}|dkrQtS|jƒSdS(N(R<tstripRt_get_containing_elementRRDR™tisElementContent(R R˜Rœ((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyt!_get_isWhitespaceInElementContent=s   N( RaRbRR;RRzRR|RRRRR(((s4/opt/alt/python27/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((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyRPs   cCs?|j}x/|dk r:|jtjkr.|S|j}q WdS(N(R(RRRR~(R6R5((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyRõXs   tCommentcBs2eZejZdZd„Zdddd„ZRS(s#commentcCs||_|_dS(N(R<R{(R R<((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyRyesR cCs?d|jkrtdƒ‚n|jd||j|fƒdS(Ns--s%'--' is not allowed in a comment nodes %s%s(R<R,Ro(R RRRíR((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyRhs(RaRbRR€RRzRyR(((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyRas  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,Ro(R RRRíR((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyRws(RaRbRR}RRzR(((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyRns 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((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyRy€scCs t|jƒS(N(R¨R!(R ((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyRÊ„scCs t|jƒS(N(R¨R!(R ((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyR©‡scCs+x$|jD]}|j|kr |Sq WdS(N(R!Rz(R RtRÀ((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyR¾ŠscCs:x3|jD](}|j|kr |j|kr |Sq WdS(N(R!RcRh(R RcRhRÀ((s4/opt/alt/python27/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((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyR¹”s   cCs8|dkrdSy|j|SWntk r3dSXdS(Ni(RR!R«(R R+((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyR¬�s   cCstjjdƒ‚dS(Ns"NamedNodeMap instance is read-only(R$R%Rö(R Rt((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyRÁ¥s cCstjjdƒ‚dS(Ns"NamedNodeMap instance is read-only(R$R%Rö(R RcRh((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyR©s cCstjjdƒ‚dS(Ns"NamedNodeMap instance is read-only(R$R%Rö(R R6((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyRº­s cCstjjdƒ‚dS(Ns"NamedNodeMap instance is read-only(R$R%Rö(R R6((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyRñs cCs |jgS(N(R!(R ((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyRŵscCs|d|_dS(Ni(R!(R RÆ((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyRǸs(R!((RaRbRÉRyRÊR©R¾R¿R¹R¬RÁRÂRºRÃRÅRÇ(((s4/opt/alt/python27/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&((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyt_identified_mixin_initÅs cCs|jS(N(R%(R ((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyt _get_publicIdÉscCs|jS(N(R&(R ((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyt _get_systemIdÌs(RaRbRÈR'R(R)(((s4/opt/alt/python27/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ÚRtRz(R RÜRdRÝ((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyRy×s    cCs|jS(N(tinternalSubset(R ((s4/opt/alt/python27/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*RtRzR$R%tUserDataHandlert NODE_CLONEDR+R!R,tNotationR%R&R>R_tEntityt notationNametactualEncodingR RJ(R REtcloneR\RÀtnotationtetentity((s4/opt/alt/python27/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 RRRR:RGR(R_R$R%R/R0(R RER5RÀt childclone((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyRF%s"      cCstƒ}||_|S(N(RxRD(R RW((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pytcreateDocumentFragment:s  cCst|ƒ}||_|S(N(RÒRD(R RqR7((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyt createElement?s  cCs:t|tƒstd‚ntƒ}||_||_|S(Nsnode contents must be a string(R¯R°R»RƒR<RD(R R<tt((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pytcreateTextNodeDs     cCs:t|tƒstd‚ntƒ}||_||_|S(Nsnode contents must be a string(R¯R°R»RR<RD(R R<R5((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pytcreateCDATASectionLs     cCst|ƒ}||_|S(N(RRD(R R<R5((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyt createCommentTs  cCst||ƒ}||_|S(N(RüRD(R RýR<tp((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pytcreateProcessingInstructionYs cCs"t|ƒ}||_d|_|S(NR (R‚RDR‰(R R„ta((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pytcreateAttribute^s   cCs1t|ƒ\}}t|||ƒ}||_|S(N(RÚRÒRD(R RcRÜRdRhR7((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyRFds cCs=t|ƒ\}}t||||ƒ}||_d|_|S(NR (RÚR‚RDR‰(R RcRÜRdRhRg((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pytcreateAttributeNSjs   cCs"t||||ƒ}||_|S(N(R2RD(R RtR%R&R3R7((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyt_create_entityts cCst|||ƒ}||_|S(N(R1RD(R RtR%R&RÀ((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyt_create_notationys 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(RORRR—RRQR]tpoptextendRRR.R™R|R­RcRšRhR‰R–R›RtR•(R R¶tstacktresultR6RBRœRÔ((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pytgetElementById~s\                  cCst||tƒƒS(N(RrR`(R Rt((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyRé¸scCst|||tƒƒS(N(RvR`(R RcRh((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyRê»scCs|jj||ƒS(N(RGRH(R RIRJ((s4/opt/alt/python27/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((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyt importNodeÂs R cCse|dkr |jd|ƒn|jd||fƒx'|jD]}|j||||ƒqAWdS(Nss%%s(RRoRR(R RRRíRR R6((s4/opt/alt/python27/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?RR€R:R#RRRzRR{R|RGR(R2R1R?RGR4R RXRJRRZRVRTR—RyR™R;RSRUR<RWRYR[R=R*R)R\R=RFR_R`RbRcRdRfRhRFRiRjRkRpRéRêRKRrRRt(((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyRK½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%R/R0t NODE_IMPORTEDRRR?RFRcRzR|R­RÞR‰RÛRhR‡RRCR*R R_R;RbR<R}RcRRfRýR€RdR¢RiRR:RGRJRtR%R&R+R!R,R1R>RYR_R2R3R4R RJRqR'( R6REtnewOwnerDocumentR\R5RÔRgRBR5RÀR6R7R8((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyRCs|                  cCs:|jddƒ}t|ƒdkr(|Sd|dfSdS(NR…iii(R†R¨R(RÜtfields((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyRÚascCsddlm}|ƒS(Niÿÿÿÿ(tStringIO(Rx(Rx((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyRiscCs<|||Ž}|jƒ\}}|j|ƒ|jƒ|S(N(tgetEventt expandNodeRP(tfunctargstkwargsteventsttoktypetrootNode((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyt_do_pulldom_parsens   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ƒ((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyR‡us  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ƒ((s4/opt/alt/python27/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_stringRKRGRHR(tfeaturestftv((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pytgetDOMImplementation‰s (7RÈR†R$RRRRtxml.dom.minicompattxml.dom.xmlbuilderRRR%RR?R~R.t defpropertyR7RpRrRvRxR‚tobjectR¤t AttributeListRÍRRžRÒRâRúRüRRƒRRõRRR R$R*R2R1R?RLR/RKRCRÚRR�R‡R‰R�(((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyts‚ "  í   s• Ý   (GZ     > <( O* ÿO  R