PK œqhYî¶J‚ßFßF)nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/ $#$#$#

Dir : /home2/bookbymarye/mail/ans_sym/root/opt/alt/python27/lib64/python2.7/xml/dom/
Server: Linux server1.superfastcloudhosting.com 5.14.0-687.31.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Sat Aug 1 05:38:01 EDT 2026 x86_64
IP: 65.109.111.76
Choose File :

Url:
Dir : /home2/bookbymarye/mail/ans_sym/root/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyc

�
��jc@s�dZddlZddlmZmZmZmZddlTddlm	Z	m
Z
ejjj
ejjjfZdejjfd��YZeedd	d
�eedd	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("<foo><bar/></foo>")

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�Zdddd�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(ttoprettyxml(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
parentNodeRtremoveChildtappendChildtindext
ValueErrortNotFoundErrt_nodeTypes_with_childrent_clear_id_cachetinserttnextSiblingtpreviousSibling(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.pytisSupported�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.pytgetUserData�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.pytsetUserData�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<n|j|�||jd<dS(Ni����R2R1R((Rt__dict__R>(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&amp;t<s&lt;s"s&quot;t>s&gt;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
ejej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
ejejfZ
ed	d	d�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�ZRS(
cCs]|j}d|d<||d<|d<||d<||d<t�|d<|jjt��dS(NRDRzRtRcRdR(RiRR`RR>tText(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
|||<dS(	NtvalueR{iR<RtRz(R�R{(RtRz(RiRtownerElementRR/(R	RtR�RWtd2((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyt__setattr__fs	cCs�|j}|dkr?|r?|tkr?tjjd��q?n|j}||d<|dkrj|j}nd||jf}|jr�t	|j�n||d<|d<dS(Ntxmlnss5illegal use of 'xmlns' prefix for the wrong namespaceRds%s:%sRzRt(
RcRR$R%tNamespaceErrRiRRhR�R/(R	RdtnsuriRWtnewName((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyt_set_prefixus			
	cCsH|j}||d<|d<|jr4t|j�n||jd_dS(NR�R{i(RiR�R/RR<(R	R�RW((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyt
_set_value�s
		cCs�|j}|dk	rq|j|j=|j|j|jf=|jrqt|_|j	d8_	|j
jd8_qqnx|jD]}|j
�q{W|j2dS(Ni(R�Rt_attrsRzt_attrsNSRcRht_is_idRt_magic_id_nodesRDt_magic_id_countRR=(R	telemRB((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyR=�s	
		cCs�|jr
tS|j}|j}|dks7|dkr;tS|j|�}|dkrZtS|jry|j|j|j	�S|j
|j�SdS(N(R�RRDR�RRt_get_elem_infoRctisIdNSRhtisIdRz(R	RfR�tinfo((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyt	_get_isId�s				cCs�|j}|j}|dks*|dkr.tS|j|�}|dkrMtS|jrl|j|j|j�S|j|j	�SdS(N(
RDR�Rt_no_typeR�RctgetAttributeTypeNSRhtgetAttributeTypeRz(R	RfR�R�((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyt_get_schemaType�s			N(RaRbRtATTRIBUTE_NODERRR|R�RR�R�R;R~R#RRyRLR�R�R�R�R=R�R�(((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyR�Hs 								R�s True if this attribute is an ID.s'Namespace-local name of this attribute.t
schemaTypesSchema type for this attribute.tNamedNodeMapcBs�eZdZdZd�Zd�Zd�Zd�Zd�Zd	�Z	d
�Z
d�Zd�Zdd
�ZeZdZd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�ZRS(sThe attribute list is a transient interface to the underlying
    dictionaries.  Mutations here will change the underlying element's
    dictionary.

    Ordering is imposed artificially and does not reflect the order of
    attributes as found in an input document.
    R�R�t
_ownerElementcCs||_||_||_dS(N(R�R�R�(R	tattrstattrsNSR�((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyRy�s		cCs
t|j�S(N(tlenR�(R	((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyt_get_length�scCs2y||jj�|SWntk
r-dSXdS(N(R�tkeyst
IndexErrorR(R	R+((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pytitem�s
cCs=g}x0|jj�D]}|j|j|jf�qW|S(N(R�tvaluesR>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
isinstancetStringTypesR�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__scCs�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	d<n|St
jj��dS(NR�(
R�RR/R�R�RzR�RcRhRiR$R%R-(R	Rttn((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pytremoveNamedItem"s

cCs�|j||�}|dk	rqt|j�|j|j|jf=|j|j=d|j	krmd|j	d<n|St
jj��dS(NR�(
R�RR/R�R�RcRhR�RzRiR$R%R-(R	RcRhR�((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pytremoveNamedItemNS.s

cCs�t|t�s:tjjdt|�t|�f��n|jj|j�}|rb|j	�n||j|j<||j
|j|jf<|j
|_t|j�|S(Ns%s cannot be child of %s(R�R�R$R%R&R'R�R�RtR=R�RcRhR�R�R/(R	R6RV((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyR�:s	"

cCs
|j|�S(N(R�(R	R6((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pytsetNamedItemNSGscCs%||}t|j�|j�dS(N(R/R�R=(R	R�R6((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyt__delitem__Js

cCs|j|j|jfS(N(R�R�R�(R	((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyt__getstate__OscCs|\|_|_|_dS(N(R�R�R�(R	tstate((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyt__setstate__Rs(R�R�R�N(RaRbt__doc__t	__slots__RyR�R�RZR�R�R�R�R�RR�t__len__t__hash__R�R�R�R�R�R�R�R�R�R�R�R�(((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyR��s4																	
			tlengths$Number of nodes in the NamedNodeMap.tTypeInfocBs2eZdZd�Zd�Zd�Zd�ZRS(t	namespaceRtcCs||_||_dS(N(R�Rt(R	R�Rt((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyRy^s	cCs,|jrd|j|jfSd|jSdS(Ns<TypeInfo %r (from %r)>s
<TypeInfo %r>(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
ejej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<ndS(NRdRzR�R{RD(t_nssplittgetAttributeNodeNSRR�RiRDR�R�R�R/Rd(R	Rct
qualifiedNameR�Rdt	localnameR�RW((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pytsetAttributeNS�s$	


		
cCs|jj|�S(N(R�R�(R	tattrname((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyR��scCs|jj||f�S(N(R�R�(R	RcRh((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyR��scCs�|jd|fkr*tjjd��n|jj|jd�}|dk	r^|j|�n|j	j|j
|jfd�}|dk	r�||k	r�|j|�nt||�||k	r�|S||k	r�|SdS(Nsattribute node already owned(
R�RR$R%tInuseAttributeErrR�R�RttremoveAttributeNodeR�RcRht_set_attribute_node(R	R�told1told2((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyR��s!
cCsEy|j|}Wn tk
r3tjj��nX|j|�dS(N(R�RRR$R%R-R�(R	RtR�((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pytremoveAttribute�s

cCsKy|j||f}Wn tk
r9tjj��nX|j|�dS(N(R�RRR$R%R-R�(R	RcRhR�((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pytremoveAttributeNS�s

cCsw|dkrtjj��ny|j|jWn tk
rRtjj��nXt|�|j�|j	|_	dS(N(
RR$R%R-R�RtRRR/R=RD(R	R6((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyR��s


cCs
||jkS(N(R�(R	Rt((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pythasAttributescCs||f|jkS(N(R�(R	RcRh((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pythasAttributeNSscCst||t��S(N(RrR`(R	Rt((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pytgetElementsByTagName	scCst|||t��S(N(RvR`(R	RcRh((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pytgetElementsByTagNameNSscCsd|jt|�fS(Ns<DOM Element: %s at %#x>(RqR�(R	((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyR�sRc	Cs[|j|d|j�|j�}|j�}|j�x@|D]8}|jd|�t|||j�|jd�qAW|jrF|jd�t|j�dkr�|jdj	t
jkr�|jdj|ddd�nH|j|�x+|jD] }|j|||||�q�W|j|�|jd|j|f�n|jd	|�dS(
NRls %s="s"RmiiRs</%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<|jd7_|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<dS(NR�(R/R�RtR�RcRhRi(telementR�((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyR�Ss
t	ChildlesscBsqeZdZd	Ze�Zd	Zd	Zd�Z	d�Z
d�Zd�Zd�Z
d�Zd�Zd�ZRS(
s�Mixin that makes childless-ness easy to implement and avoids
    the complexity of the Node methods that deal with children.
    cCsdS(N(R(R	((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyRhscCsdS(N(R(R	((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyRkscCstjj|jd��dS(Ns nodes cannot have children(R$R%R&Rz(R	R6((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyR*ns	cCstS(N(R(R	((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyRrscCstjj|jd��dS(Ns nodes do not have children(R$R%R&Rz(R	R3R4((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyR"us	cCstjj|jd��dS(Ns nodes do not have children(R$R%R-Rz(R	R8((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyR)ys	cCsdS(N((R	((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyR@}scCstjj|jd��dS(Ns nodes do not have children(R$R%R&Rz(R	R3R8((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyR9�s	N(RaRbR�RR|t
EmptyNodeListRReRgRRR*RR"R)R@R9(((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyR�^s								tProcessingInstructioncBsYeZejZd�Zd�Zd�Zd�Zd�Z	d�Z
dddd�ZRS(cCs$||_|_||_|_dS(N(ttargetRzR<R{(R	R�R<((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyRy�scCs|jS(N(R<(R	((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyt	_get_data�scCs|j}||d<|d<dS(NR<R{(Ri(R	R�RW((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyt	_set_data�s	cCs|jS(N(R�(R	((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyt_get_target�scCs|j}||d<|d<dS(NR�Rz(Ri(R	R�RW((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyt_set_target�s	cCsw|dks|dkr3||jd<|jd<n@|dksK|dkrf||jd<|jd<n
||j|<dS(NR<R{R�Rz(Ri(R	RtR�((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyR��s
RcCs'|jd||j|j|f�dS(Ns
%s<?%s %s?>%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�Zd�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<|d<dS(NR<R{(Ri(R	R<RW((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyR��s	cCsD|dks|dkr3||jd<|jd<n
||j|<dS(NR<R{(Ri(R	RtR�((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyR��scCsH|j}t|�dkr$d}nd}d|jj|dd!|fS(Ni
s...Rs<DOM %s node "%r%s">i(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.pytreplaceData�s(RaRbR�R�R�R�t_get_nodeValuet_set_nodeValueR�R�RR
RR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�Zd�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!	RcCs!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.pyRyesRcCs?d|jkrtd��n|jd||j|f�dS(Ns--s%'--' is not allowed in a comment nodes
%s<!--%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-sectionRcCs?|jjd�dkr'td��n|jd|j�dS(Ns]]>is$']]>' not allowed in a CDATA sections<![CDATA[%s]]>(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	�Zd
�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�Zd�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|jj
D]G}t|j|j
|j�}|jj
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%tUserDataHandlertNODE_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.RcCs�|jd�|j|j�|jrL|jd||j||jf�n&|jrr|jd||jf�n|jdk	r�|jd�|j|j�|jd�n|jd|�dS(Ns
<!DOCTYPE s%s  PUBLIC '%s'%s  '%s's%s  SYSTEM '%s's [t]Rm(RoRtR%R&R-R(R	RRR�R((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyR�s
			
N(RaRbRtDOCUMENT_TYPE_NODERRR{RtR%R&R-RyR.RFR(((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyR*�s				R2cBsweZdZejZdZdZdZ	dZ
d�Zd�Zd�Z
d�Zd�Zd�Zd�Zd�ZRS(	cCs2||_||_t�|_|j||�dS(N(RzR3R`RR'(R	RtR%R&R6((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyRys		cCs|jS(N(R4(R	((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyt_get_actualEncodingscCs|jS(N(R
(R	((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyt
_get_encodingscCs|jS(N(RJ(R	((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyt_get_version scCstjjd��dS(Ns(cannot append children to an entity node(R$R%R&(R	R3((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyR*#s	cCstjjd��dS(Ns+cannot insert children below an entity node(R$R%R&(R	R3R4((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyR"'s	cCstjjd��dS(Ns*cannot remove children from an entity node(R$R%R&(R	R8((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyR)+s	cCstjjd��dS(Ns)cannot replace children of an entity node(R$R%R&(R	R3R8((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyR9/s	N(RaRbRR|RtENTITY_NODERR{R4R
RJRyR;R<R=R*R"R)R9(((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyR2s								R1cBs eZejZdZd�ZRS(cCs||_|j||�dS(N(RzR'(R	RtR%R&((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyRy7s	N(RaRbRR�RRR{Ry(((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyR13s	tDOMImplementationc	BsSeZddddddddgZd�Zd�Zd�Zd	�Zd
�ZRS(tcores1.0s2.0R$sls-loads3.0cCs.|dkrd}n|j�|f|jkS(NR(Rtlowert	_features(R	RIRJ((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyRHGs	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�RGRftadd_root_elementRdR�R�((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pytcreateDocumentLs4	



			cCs"t|�}||_||_|S(N(R*R%R&(R	R�R%R&RG((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pytcreateDocumentTypeys		cCs|j|d�r|SdSdS(N(RHR(R	RI((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyRO�scCst�S(N(tDocument(R	((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyRD�s(R@s1.0(R@s2.0N(R@N(R$s1.0(R$s2.0(R$N(sls-loads3.0(sls-loadN(	RaRbRRBRHRIRJRORD(((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyR?<s			-		tElementInfocBseeZdZdZd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�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.

    RqcCs
||_dS(N(Rq(R	Rt((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyRy�scCstS(N(R�(R	taname((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyR��scCstS(N(R�(R	RcRh((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyR��scCstS(N(R(R	((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyR�scCstS(sQReturns true iff this element is declared to have an EMPTY
        content model.(R(R	((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pytisEmpty�scCstS(s7Returns true iff the named attribute is a DTD-style ID.(R(R	RM((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyR��scCstS(s<Returns true iff the identified attribute is a DTD-style ID.(R(R	RcRh((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyR��scCs|jS(N(Rq(R	((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyR��scCs
||_dS(N(Rq(R	R�((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyR��s(Rq(
RaRbR�R�RyR�R�RRNR�R�R�R�(((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyRL�s								cCsW|jtjkr+|jj�d|_n(|jrS|jjj�d|j_ndS(N(RRRt	_id_cachetclearRt_id_search_stackRD(R6((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyR/�s
	RKcBs�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_infoRORRQ(R	((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyRy�s		cCs7|jr|j|jf}n	|j}|jj|�S(N(RcRhRqRRR�(R	R�RS((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyR��s		cCs|jS(N(R4(R	((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyR;�scCs|jS(N(RG(R	((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyt_get_doctype�scCs|jS(N(tdocumentURI(R	((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyt_get_documentURI�scCs|jS(N(R
(R	((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyR<�scCs|jS(N(terrorHandler(R	((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyt_get_errorHandler�scCs|jS(N(t
standalone(R	((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyt_get_standalone�scCs|jS(N(tstrictErrorChecking(R	((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyt_get_strictErrorChecking�scCs|jS(N(RJ(R	((s4/opt/alt/python27/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((s4/opt/alt/python27/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((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyR)s
	cCs.x'|jD]}|jtjkr
|Sq
WdS(N(RRRR?(R	R6((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyR\scCs9|jdk	r(|jj�d|_ntj|�dS(N(RGRR=R(R	((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyR=s
cCs|s
dS|jjddd�}|j|_|j|_|j|_x�|jD]�}t|||�}|jj	|�s�t
�|jj|�|jt
jkr�|jdks�t
�n3|jt
jkr�|jdks�t
�||_n||_qPW|jtjjj||�|S(N(RRGRIR
RXRJRRCRDRNtAssertionErrorR>RRRR]R: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�RdRhRh((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
RcCse|dkr |jd|�n|jd||f�x'|jD]}|j||||�qAWdS(Ns<?xml version="1.0" ?>s%<?xml version="1.0" encoding="%s"?>%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|tjjkrtjjd��qq'|dkr|tjjkr|jtjkrtjjd��nd}|}nd}d}|jtjkrj|j}|dk	rp|j}|j|�qpnd}|j}||d<||d	<||d
<||d<|jtjkr�||d<n<||d
<|dk	r�|j|�|r�|j|�q�n|S(Ns?cannot rename nodes from other documents;
expected %s,
found %ss8renameNode() only applies to element and attribute nodesR�iR�sillegal use of 'xmlns' prefixs$illegal use of the 'xmlns' attributeRdRhRcRzRqRt(RDR$R%RCRRR?R�RrRR�RR�RR�R�R�RiR�R�(	R	R�RcRtRdRhR�tis_idRW((s4/opt/alt/python27/lib64/python2.7/xml/dom/minidom.pyt
renameNode�sT								






N(>RaRbRR?RR�R:R#RRRzRR{R|RGR(R2R1R?RGR4R
RXRJRRZRVRTR�RyR�R;RSRUR<RWRYR[R=R*R)R\R=RFR`RaRcRdReRgRiRFRjRkRlRqR�R�RKRsRRu(((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�}nm|jtjkr�|j|j�}nF|jtjkr�|j|j |j�}n|jtj!kr�|j"|j�}n�|jtj#kr7|j$|j|j�}t%|_|j|_n�|jtj&kr�|j|k	s^t'�tjjj}|j(j)|j*|j+|j,�}||_|r�g|j-_.g|j/_.xp|j/j.D]b}	t0|	j|	j+|	j,�}
||
_|j/j.j1|
�t2|	d�r�|	j3||	|
�q�q�Wx�|j-j.D]�}t4|j|j+|j,|j5�}|j6|_6|j7|_7|j8|_8||_|j-j.j1|�t2|d�r5|j3|||�q5q5Wq�ntjj9dt:|���t2|d�r|j3|||�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;RcR<R}RdRRgR�R�ReR�RjRR:R^RGRJRtR%R&R+R!R,R1R>RYR_R2R3R4R
RJRrR'(
R6REtnewOwnerDocumentR\R5R�RhRBR5R�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(Ry(Ry((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�tparseStringR�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.tdefpropertyR7RpRrRvRxR�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.pyt<module>s�"
�					s��	(GZ			
><(	O*	�O	R