config root man

Current Path : /usr/local/lib/python2.5/xml/dom/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //usr/local/lib/python2.5/xml/dom/minidom.pyc

hRc	@sdZddkZddklZlZlZlZddkTddkl	Z	l
Z
eiii
eiiifZdeiifdYZeedd	d
eedd	deed
d	ddZdZdZdZdZdefdYZdefdYZeedd	deed
d	deedd	ddefdYZeedd	d eZd!efd"YZeeeZd#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"fd1YZ#ee#d2d	d3ee#d4d	d5d6Z$d7Z%d8e e"fd9YZ&d:e#fd;YZ'd<efd=YZ(ee(dd	d>d?fd@YZ)dAe)e efdBYZ*dCe)efdDYZ+dEe)e efdFYZ,dGe	fdHYZ-dIefdJYZ.dKZ/dLee
fdMYZ0ee0dNd	dOdPZ1dQZ2dRZ3dSZ4eedTZ5edUZ6edVZ7dS(Ws(minidom.py -- a lightweight DOM implementation.

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
iN(tEMPTY_NAMESPACEtEMPTY_PREFIXtXMLNS_NAMESPACEtdomreg(t*(tDOMImplementationLSt
DocumentLStNodecBseZdZdZdZdZdZeZ	dZ
ddZddddZdZ
dZdZdZd	Zd
ZdZdZd
ZdZdZdZdZdZdZdZdZdZRS(cCstS(N(tTrue(tself((s+/usr/local/lib/python2.5/xml/dom/minidom.pyt__nonzero__)scCs|idd|S(Nt(ttoprettyxml(R	tencoding((s+/usr/local/lib/python2.5/xml/dom/minidom.pyttoxml,ss	s
cCst}|dj	o)ddk}|i|d|}n|itijo|i|d|||n|i|d|||iS(NiiR(	t
_get_StringIOtNonetcodecstlookuptnodeTypeRt
DOCUMENT_NODEtwritexmltgetvalue(R	tindenttnewlR
twriterR((s+/usr/local/lib/python2.5/xml/dom/minidom.pyR/s	
cCs|iotSntSdS(N(t
childNodesRtFalse(R	((s+/usr/local/lib/python2.5/xml/dom/minidom.pyt
hasChildNodes>s
cCs|iS(N(R(R	((s+/usr/local/lib/python2.5/xml/dom/minidom.pyt_get_childNodesDscCs|io|idSndS(Ni(R(R	((s+/usr/local/lib/python2.5/xml/dom/minidom.pyt_get_firstChildGs
cCs|io|idSndS(Ni(R(R	((s+/usr/local/lib/python2.5/xml/dom/minidom.pyt_get_lastChildKs
cCs|i|ijo2x't|iD]}|i||q#W|Sn|i|ijo,tiidt	|t	|fn|i
dj	o|i
i|n|djo|i
|ny|ii|}Wn"tj
otiinX|itjot|n|ii||||_||_|o'|i|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((s+/usr/local/lib/python2.5/xml/dom/minidom.pyR"Os8	#
			
		cCs|i|ijo/x$t|iD]}|i|q#W|Sn|i|ijo,tiidt	|t	|fn|it
jot|n|idj	o|ii|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/local/lib/python2.5/xml/dom/minidom.pyR*os	#
	cCs|i|ijo*|i}|i||i||Sn|i|ijo,tiidt	|t	|fn||jodSn|i
dj	o|i
i|ny|ii
|}Wn"tj
otiinX||i|<||_
d|_
|itjp|itjot|n|i|_|i|_d|_d|_|io||i_n|io||i_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/local/lib/python2.5/xml/dom/minidom.pytreplaceChilds<	
	#

				

cCsy|ii|Wn"tj
otiinX|idj	o|i|i_n|idj	o|i|i_nd|_|_|i	t
jot|nd|_|S(N(
RtremoveR,R$R%R-R1RR2RR.R/R((R	R8((s+/usr/local/lib/python2.5/xml/dom/minidom.pyR)s	cCshg}x9|iD].}|itijo|i}|oU|oN|di|ijo7|d}|i|i|_|i|_|iq>|o?|o||d_|d|_n
d|_|i	|q>|iq|o||d_|d|_n
d|_|i	||iti
jo|iqqW|od|d_n||i(dS(Ni(RRRt	TEXT_NODEtdataR1tunlinkR2RtappendtELEMENT_NODEt	normalize(R	tLtchildR<R6((s+/usr/local/lib/python2.5/xml/dom/minidom.pyR@s6
	%

	
	
cCst|||ip|S(N(t_clone_nodet
ownerDocument(R	tdeep((s+/usr/local/lib/python2.5/xml/dom/minidom.pyt	cloneNodescCs|iii||S(N(RDtimplementationt
hasFeature(R	tfeaturetversion((s+/usr/local/lib/python2.5/xml/dom/minidom.pytisSupportedscCsdS(N(R(R	((s+/usr/local/lib/python2.5/xml/dom/minidom.pyt_get_localNamescCs
||jS(N((R	tother((s+/usr/local/lib/python2.5/xml/dom/minidom.pyt
isSameNodescCs#|i|do|SndSdS(N(RKR(R	RI((s+/usr/local/lib/python2.5/xml/dom/minidom.pytgetInterfacescCs7y|i|dSWnttfj
odSnXdS(Ni(t
_user_datatAttributeErrortKeyErrorR(R	tkey((s+/usr/local/lib/python2.5/xml/dom/minidom.pytgetUserDatascCsd}y
|i}Wn"tj
oh}||_nX|i|o||d}n|djo"d}|dj	o||=qn||f||<|S(Ni(RRPRQthas_key(R	RSR<thandlertoldtd((s+/usr/local/lib/python2.5/xml/dom/minidom.pytsetUserDatas


cCsht|doTxQ|iiD]<\}\}}|dj	o|i|||||q q WndS(NRP(thasattrRPtitemsRthandle(R	t	operationtsrctdstRSR<RV((s+/usr/local/lib/python2.5/xml/dom/minidom.pyt_call_user_data_handlers

cCs^d|_|_|io.x|iD]}|iq$Wt|_nd|_d|_dS(N(RR(RDRR=tNodeListR2R1(R	RB((s+/usr/local/lib/python2.5/xml/dom/minidom.pyR=s

	N(t__name__t
__module__RtnamespaceURIR(RDR1R2RtprefixR
RRRRRRR"R*R9R)R@RFRKRLRNRORTRYR`R=(((s+/usr/local/lib/python2.5/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.cCsV|i}|o(|d}||id<||id<n|i|||id<dS(NiR2R1R((Rt__dict__R>(R	R6Rtlast((s+/usr/local/lib/python2.5/xml/dom/minidom.pyR7s	


cCs=x6|dj	o(|itijotSn|i}qWtS(N(RRRRRR(R(R6((s+/usr/local/lib/python2.5/xml/dom/minidom.pyt_in_document#s
cCsM|iddidd}|iddidd}|i|d	S(
sWrites datachars to writer.t&s&amp;t<s&lt;s"s&quot;t>s&gt;N(treplacetwrite(RR<((s+/usr/local/lib/python2.5/xml/dom/minidom.pyt_write_data+scCsixb|iD]W}|itijo.|djp|i|jo|i|nt|||q
W|S(NR(RRRR?ttagNameR>t_get_elements_by_tagName_helper(tparenttnametrcR6((s+/usr/local/lib/python2.5/xml/dom/minidom.pyRt1s
cCsx|iD]{}|itijob|djp|i|jo.|djp|i|jo|i|nt||||q
q
W|S(NR(RRRR?RiRdR>t"_get_elements_by_tagName_ns_helper(RutnsURIRiRwR6((s+/usr/local/lib/python2.5/xml/dom/minidom.pyRx9s
tDocumentFragmentcBsbeZeiZdZdZdZdZ	ei
eieiei
eieieifZdZRS(s#document-fragmentcCst|_dS(N(RaR(R	((s+/usr/local/lib/python2.5/xml/dom/minidom.pyt__init__PsN(RbRcRR RtnodeNameRt	nodeValuet
attributesR(R?R;tCDATA_SECTION_NODEtENTITY_REFERENCE_NODEtPROCESSING_INSTRUCTION_NODEtCOMMENT_NODEt
NOTATION_NODER#R{(((s+/usr/local/lib/python2.5/xml/dom/minidom.pyRzBs	tAttrcBseZeiZd
Zd
ZeZ	eZ
eieifZ
ed
d
dZdZdZdZdZdZdZdZdZd	ZRS(cCsS|i}||d<|d<||d<||d<t|d<|iitdS(NR|RvRdReR(RjRaRR>tText(R	tqNameRdRiReRX((s+/usr/local/lib/python2.5/xml/dom/minidom.pyR{]s	


cCs|iidddS(Nt:ii(R|tsplit(R	((s+/usr/local/lib/python2.5/xml/dom/minidom.pyRLkscCs|iS(N(Rv(R	((s+/usr/local/lib/python2.5/xml/dom/minidom.pyt	_get_namenscCs|iS(N(t	specified(R	((s+/usr/local/lib/python2.5/xml/dom/minidom.pyt_get_specifiedqscCs|i}|djoY||d<|d<|idi}||d<|d<|idj	ot|iqnO|djo7||d<|d<|idj	ot|iqn|||<dS(	NtvalueR}iR<RvR|(svalues	nodeValue(snamesnodeName(RjRtownerElementRR/(R	RvRRXtd2((s+/usr/local/lib/python2.5/xml/dom/minidom.pyt__setattr__ts	

cCs|i}|djo.|o#|tjotiidqDn|i}||d<|djo
|i}nd||if}|iot	|in||d<|d<dS(Ntxmlnss5illegal use of 'xmlns' prefix for the wrong namespaceRes%s:%sR|Rv(
RdRR$R%tNamespaceErrRjRRiRR/(R	RetnsuriRXtnewName((s+/usr/local/lib/python2.5/xml/dom/minidom.pyt_set_prefixs	
		



cCsJ|i}||d<|d<|iot|in||id_dS(NRR}i(RjRR/RR<(R	RRX((s+/usr/local/lib/python2.5/xml/dom/minidom.pyt
_set_values
	
cCs|i}|dj	o_|i|i=|i|i|if=|io.t|_|i	d8_	|i
id8_qunx|iD]}|i
qW|i2dS(Ni(RRt_attrsR|t_attrsNSRdRit_is_idRt_magic_id_nodesRDt_magic_id_countRR=(R	telemRB((s+/usr/local/lib/python2.5/xml/dom/minidom.pyR=s	


	
cCs|iotSn|i}|i}|djp
|djotSn|i|}|djotSn|io|i|i|i	Sn|i
|iSdS(N(RRRDRRRt_get_elem_infoRdtisIdNSRitisIdR|(R	RgRtinfo((s+/usr/local/lib/python2.5/xml/dom/minidom.pyt	_get_isIds
		

cCs|i}|i}|djp
|djotSn|i|}|djotSn|io|i|i|iSn|i|i	SdS(N(
RDRRt_no_typeRRdtgetAttributeTypeNSRitgetAttributeTypeR|(R	RgRR((s+/usr/local/lib/python2.5/xml/dom/minidom.pyt_get_schemaTypes		

N(RbRcRtATTRIBUTE_NODERRR~RRRRR;RR#RR{RLRRRRRR=RR(((s+/usr/local/lib/python2.5/xml/dom/minidom.pyRTs"	
								Rs True if this attribute is an ID.s'Namespace-local name of this attribute.t
schemaTypesSchema type for this attribute.tNamedNodeMapcBseZdZdZdZdZdZdZdZd	Z	d
Z
dZdZdd
ZeZdZdZdZdZdZdZdZdZdZdZdZdZRS(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.
    RRt
_ownerElementcCs||_||_||_dS(N(RRR(R	tattrstattrsNSR((s+/usr/local/lib/python2.5/xml/dom/minidom.pyR{s		cCs
t|iS(N(tlenR(R	((s+/usr/local/lib/python2.5/xml/dom/minidom.pyt_get_lengthscCs7y||ii|SWntj
odSnXdS(N(Rtkeyst
IndexErrorR(R	R+((s+/usr/local/lib/python2.5/xml/dom/minidom.pytitemscCs=g}x0|iiD]}|i|i|ifqW|S(N(RtvaluesR>R|R(R	RAR6((s+/usr/local/lib/python2.5/xml/dom/minidom.pyR[s
cCsFg}x9|iiD](}|i|i|if|ifqW|S(N(RRR>RdRiR(R	RAR6((s+/usr/local/lib/python2.5/xml/dom/minidom.pytitemsNSs
&cCs8t|to|ii|Sn|ii|SdS(N(t
isinstancetStringTypesRRUR(R	RS((s+/usr/local/lib/python2.5/xml/dom/minidom.pyRUscCs
|iiS(N(RR(R	((s+/usr/local/lib/python2.5/xml/dom/minidom.pyRscCs
|iiS(N(RR(R	((s+/usr/local/lib/python2.5/xml/dom/minidom.pytkeysNSscCs
|iiS(N(RR(R	((s+/usr/local/lib/python2.5/xml/dom/minidom.pyRscCs|ii||S(N(Rtget(R	RvR((s+/usr/local/lib/python2.5/xml/dom/minidom.pyRscCsA|it|ddjodSntt|t|SdS(NRi(RtgetattrRtcmptid(R	RM((s+/usr/local/lib/python2.5/xml/dom/minidom.pyt__cmp__scCs.t|to|i|Sn|i|SdS(N(RR!RR(R	tattname_or_tuple((s+/usr/local/lib/python2.5/xml/dom/minidom.pyt__getitem__
scCst|to\y|i|}Wn;tj
o/t|}|ii|_|i|nX||_n1t|tp
t	dn|}|i|dS(Ns%value must be a string or Attr object(
RRRRRRRRDtsetNamedItemRt	TypeError(R	tattnameRR6((s+/usr/local/lib/python2.5/xml/dom/minidom.pyt__setitem__s

cCs-y|i|SWntj
odSnXdS(N(RRRR(R	Rv((s+/usr/local/lib/python2.5/xml/dom/minidom.pytgetNamedItem#scCs3y|i||fSWntj
odSnXdS(N(RRRR(R	RdRi((s+/usr/local/lib/python2.5/xml/dom/minidom.pytgetNamedItemNS)scCs|i|}|dj	o\t|i|i|i=|i|i|if=|i	i
dod|i	d<n|Sntii
dS(NR(RRR/RRR|RRdRiRjRUR$R%R-(R	Rvtn((s+/usr/local/lib/python2.5/xml/dom/minidom.pytremoveNamedItem/s


cCs|i||}|dj	o\t|i|i|i|if=|i|i=|i	i
dod|i	d<n|Sntii
dS(NR(RRR/RRRdRiRR|RjRUR$R%R-(R	RdRiR((s+/usr/local/lib/python2.5/xml/dom/minidom.pytremoveNamedItemNS;s


cCst|tp,tiidt|t|fn|ii|i}|o|i	n||i|i<||i
|i|if<|i
|_t|i|S(Ns%s cannot be child of %s(RRR$R%R&R'RRRvR=RRdRiRRR/(R	R6RW((s+/usr/local/lib/python2.5/xml/dom/minidom.pyRGs	#
cCs
|i|S(N(R(R	R6((s+/usr/local/lib/python2.5/xml/dom/minidom.pytsetNamedItemNSTscCs%||}t|i|idS(N(R/RR=(R	RR6((s+/usr/local/lib/python2.5/xml/dom/minidom.pyt__delitem__Ws

cCs|i|i|ifS(N(RRR(R	((s+/usr/local/lib/python2.5/xml/dom/minidom.pyt__getstate__\scCs|\|_|_|_dS(N(RRR(R	tstate((s+/usr/local/lib/python2.5/xml/dom/minidom.pyt__setstate___s(s_attrss_attrsNSs
_ownerElementN(RbRct__doc__t	__slots__R{RRR[RRURRRRRt__len__RRRRRRRRRRRR(((s+/usr/local/lib/python2.5/xml/dom/minidom.pyRs2																	
			tlengths$Number of nodes in the NamedNodeMap.tTypeInfocBs2eZdZdZdZdZdZRS(t	namespaceRvcCs||_||_dS(N(RRv(R	RRv((s+/usr/local/lib/python2.5/xml/dom/minidom.pyR{ks	cCs1|iod|i|ifSnd|iSdS(Ns<TypeInfo %r (from %r)>s
<TypeInfo %r>(RRv(R	((s+/usr/local/lib/python2.5/xml/dom/minidom.pyt__repr__os
cCs|iS(N(Rv(R	((s+/usr/local/lib/python2.5/xml/dom/minidom.pyRuscCs|iS(N(R(R	((s+/usr/local/lib/python2.5/xml/dom/minidom.pyt_get_namespacexs(s	namespacesname(RbRcRR{RRR(((s+/usr/local/lib/python2.5/xml/dom/minidom.pyRhs
			tElementcBsLeZeiZdZeZdZ	eiei
eieiei
eifZedddZdZdZdZdZdZdZdZd	Zd
ZdZeZdZd
ZdZeZ dZ!dZ"dZ#dZ$dZ%ddddZ&dZ'dZ(dZ)dZ*dZ+RS(icCsD||_|_||_||_t|_h|_h|_dS(N(RsR|ReRdRaRRR(R	RsRdReRi((s+/usr/local/lib/python2.5/xml/dom/minidom.pyR{s			cCs|iidddS(NRii(RsR(R	((s+/usr/local/lib/python2.5/xml/dom/minidom.pyRLscCs|iS(N(Rs(R	((s+/usr/local/lib/python2.5/xml/dom/minidom.pyt_get_tagNamescCsGx!|iiD]}|iqWd|_d|_ti|dS(N(RRR=RRR(R	tattr((s+/usr/local/lib/python2.5/xml/dom/minidom.pyR=s		cCs0y|i|iSWntj
odSnXdS(NR(RRRR(R	R((s+/usr/local/lib/python2.5/xml/dom/minidom.pytgetAttributescCs6y|i||fiSWntj
odSnXdS(NR(RRRR(R	RdRi((s+/usr/local/lib/python2.5/xml/dom/minidom.pytgetAttributeNSscCs|i|}|djoEt|}|i}||d<|d<|i|d<|i|nH||ijo7|i}||d<|d<|iot|qndS(NRR}RD(	tgetAttributeNodeRRRjRDtsetAttributeNodeRRR/(R	RRRRX((s+/usr/local/lib/python2.5/xml/dom/minidom.pytsetAttributes
	
	
cCst|\}}|i||}|djobt||||}|i}||d<||d<||d<|d<|i|d<|i|np|i}||ijo.||d<|d<|iot	|qn|i
|jo||d<||d<ndS(NReR|RR}RD(t_nssplittgetAttributeNodeNSRRRjRDRRRR/Re(R	Rdt
qualifiedNameRRet	localnameRRX((s+/usr/local/lib/python2.5/xml/dom/minidom.pytsetAttributeNSs$
	


	

cCs|ii|S(N(RR(R	tattrname((s+/usr/local/lib/python2.5/xml/dom/minidom.pyRscCs|ii||fS(N(RR(R	RdRi((s+/usr/local/lib/python2.5/xml/dom/minidom.pyRscCs|id|fjotiidn|ii|id}|dj	o|i|n|i	i|i
|ifd}|dj	o||j	o|i|nt||||j	o|Sn||j	o|SndS(Nsattribute node already owned(
RRR$R%tInuseAttributeErrRRRvtremoveAttributeNodeRRdRit_set_attribute_node(R	Rtold1told2((s+/usr/local/lib/python2.5/xml/dom/minidom.pyRs
!


cCsGy|i|}Wn"tj
otiinX|i|dS(N(RRRR$R%R-R(R	RvR((s+/usr/local/lib/python2.5/xml/dom/minidom.pytremoveAttributes
cCsMy|i||f}Wn"tj
otiinX|i|dS(N(RRRR$R%R-R(R	RdRiR((s+/usr/local/lib/python2.5/xml/dom/minidom.pytremoveAttributeNSs
cCs{|djotiiny|i|iWn"tj
otiinXt||i|i	|_	dS(N(
RR$R%R-RRvRRR/R=RD(R	R6((s+/usr/local/lib/python2.5/xml/dom/minidom.pyRs


cCs|ii|S(N(RRU(R	Rv((s+/usr/local/lib/python2.5/xml/dom/minidom.pythasAttributescCs|ii||fS(N(RRU(R	RdRi((s+/usr/local/lib/python2.5/xml/dom/minidom.pythasAttributeNSscCst||tS(N(RtRa(R	Rv((s+/usr/local/lib/python2.5/xml/dom/minidom.pytgetElementsByTagNamescCst|||tS(N(RxRa(R	RdRi((s+/usr/local/lib/python2.5/xml/dom/minidom.pytgetElementsByTagNameNSscCsd|it|fS(Ns<DOM Element: %s at %#x>(RsR(R	((s+/usr/local/lib/python2.5/xml/dom/minidom.pyRsRc		Cs|i|d|i|i}|i}|ix@|D]8}|id|t|||i|idqAW|io`|id|x+|iD] }|i|||||qW|id||i|fn|id|dS(NRns %s="s"s>%ss	%s</%s>%ss/>%s(	RqRst_get_attributesRtsortRrRRR(	R	RRt	addindentRRta_namesta_nameR6((s+/usr/local/lib/python2.5/xml/dom/minidom.pyRs 


!cCst|i|i|S(N(RRR(R	((s+/usr/local/lib/python2.5/xml/dom/minidom.pyR5scCs|iotSntSdS(N(RRR(R	((s+/usr/local/lib/python2.5/xml/dom/minidom.pyt
hasAttributes8s
cCs |i|}|i|dS(N(RtsetIdAttributeNode(R	RvtidAttr((s+/usr/local/lib/python2.5/xml/dom/minidom.pytsetIdAttribute@scCs#|i||}|i|dS(N(RR(R	RdRiR((s+/usr/local/lib/python2.5/xml/dom/minidom.pytsetIdAttributeNSDscCs|djp|i|iotiint|dj	otiin|ip<t	|i
d<|id7_|ii
d7_
t|ndS(NRi(RRNRR$R%R-t_get_containing_entreftNoModificationAllowedErrRRRjRRDRR/(R	R((s+/usr/local/lib/python2.5/xml/dom/minidom.pyRHs!

N(,RbRcRR?RRR}RRRRRR;RRR#RR{RLRR=RRRRRRRtsetAttributeNodeNSRRRtremoveAttributeNodeNSRRRRRRRRRRR(((s+/usr/local/lib/python2.5/xml/dom/minidom.pyR}sL														
									R~s*NamedNodeMap of attributes on the element.s%Namespace-local name of this element.cCsDt|||i|i<||i|i|if<||id<dS(NR(R/RRvRRdRiRj(telementR((s+/usr/local/lib/python2.5/xml/dom/minidom.pyRYs
t	ChildlesscBsheZdZdZeZdZdZdZ	dZ
dZdZdZ
dZdZRS(	sMixin that makes childless-ness easy to implement and avoids
    the complexity of the Node methods that deal with children.
    cCsdS(N(R(R	((s+/usr/local/lib/python2.5/xml/dom/minidom.pyRnscCsdS(N(R(R	((s+/usr/local/lib/python2.5/xml/dom/minidom.pyRqscCstii|iddS(Ns nodes cannot have children(R$R%R&R|(R	R6((s+/usr/local/lib/python2.5/xml/dom/minidom.pyR*ts	cCstS(N(R(R	((s+/usr/local/lib/python2.5/xml/dom/minidom.pyRxscCstii|iddS(Ns nodes do not have children(R$R%R&R|(R	R3R4((s+/usr/local/lib/python2.5/xml/dom/minidom.pyR"{s	cCstii|iddS(Ns nodes do not have children(R$R%R-R|(R	R8((s+/usr/local/lib/python2.5/xml/dom/minidom.pyR)s	cCstii|iddS(Ns nodes do not have children(R$R%R&R|(R	R3R8((s+/usr/local/lib/python2.5/xml/dom/minidom.pyR9s	N(RbRcRRR~t
EmptyNodeListRRfRhRRR*RR"R)R9(((s+/usr/local/lib/python2.5/xml/dom/minidom.pyRds							tProcessingInstructioncBsYeZeiZdZdZdZdZdZ	dZ
ddddZRS(cCs$||_|_||_|_dS(N(ttargetR|R<R}(R	RR<((s+/usr/local/lib/python2.5/xml/dom/minidom.pyR{scCs|iS(N(R<(R	((s+/usr/local/lib/python2.5/xml/dom/minidom.pyt	_get_datascCs|i}||d<|d<dS(NR<R}(Rj(R	RRX((s+/usr/local/lib/python2.5/xml/dom/minidom.pyt	_set_datas	cCs|iS(N(R(R	((s+/usr/local/lib/python2.5/xml/dom/minidom.pyt_get_targetscCs|i}||d<|d<dS(NRR|(Rj(R	RRX((s+/usr/local/lib/python2.5/xml/dom/minidom.pyt_set_targets	cCs}|djp
|djo||id<|id<nD|djp
|djo||id<|id<n||i|<dS(NR<R}RR|(Rj(R	RvR((s+/usr/local/lib/python2.5/xml/dom/minidom.pyRs
RcCs'|id||i|i|fdS(Ns
%s<?%s %s?>%s(RqRR<(R	RRRR((s+/usr/local/lib/python2.5/xml/dom/minidom.pyRs(RbRcRRRR{RRRRRR(((s+/usr/local/lib/python2.5/xml/dom/minidom.pyRs							t
CharacterDatacBsteZdZeZdZdZeZeZdZdZ	dZ
dZdZdZ
d	ZRS(
cCs
t|iS(N(RR<(R	((s+/usr/local/lib/python2.5/xml/dom/minidom.pyRscCs|idS(NR<(Rj(R	((s+/usr/local/lib/python2.5/xml/dom/minidom.pyRscCs|i}||d<|d<dS(NR<R}(Rj(R	R<RX((s+/usr/local/lib/python2.5/xml/dom/minidom.pyRs	cCsG|djp
|djo||id<|id<n||i|<dS(NR<R}(Rj(R	RvR((s+/usr/local/lib/python2.5/xml/dom/minidom.pyRscCsJ|i}t|djo
d}nd}d|ii|dd!|fS(Ni
s...Rs<DOM %s node "%s%s">i(R<Rt	__class__Rb(R	R<t	dotdotdot((s+/usr/local/lib/python2.5/xml/dom/minidom.pyRs	
cCs|djotiidn|t|ijotiidn|djotiidn|i|||!S(Nisoffset cannot be negatives#offset cannot be beyond end of datascount cannot be negative(R$R%tIndexSizeErrRR<(R	toffsettcount((s+/usr/local/lib/python2.5/xml/dom/minidom.pyt
substringDatas

cCs|i||_dS(N(R<(R	targ((s+/usr/local/lib/python2.5/xml/dom/minidom.pyt
appendDatascCs|djotiidn|t|ijotiidn|o(d|i| ||i|f|_ndS(Nisoffset cannot be negatives#offset cannot be beyond end of datas%s%s%s(R$R%RRR<(R	RR	((s+/usr/local/lib/python2.5/xml/dom/minidom.pyt
insertDatas
cCs|djotiidn|t|ijotiidn|djotiidn|o#|i| |i|||_ndS(Nisoffset cannot be negatives#offset cannot be beyond end of datascount cannot be negative(R$R%RRR<(R	RR((s+/usr/local/lib/python2.5/xml/dom/minidom.pyt
deleteDatas

cCs|djotiidn|t|ijotiidn|djotiidn|o,d|i| ||i||f|_ndS(Nisoffset cannot be negatives#offset cannot be beyond end of datascount cannot be negatives%s%s%s(R$R%RRR<(R	RRR	((s+/usr/local/lib/python2.5/xml/dom/minidom.pytreplaceDatas

(RbRcRRRRt_get_nodeValuet_set_nodeValueRRRR
RRR
(((s+/usr/local/lib/python2.5/xml/dom/minidom.pyRs												
sLength of the string data.RcBsSeZeiZdZdZdZddddZ	dZ
dZdZRS(s#textcCs|djp|t|ijotiidn|i}|i||_|i|_|i}|ioK||ii	jo8|djo|ii|q|ii||n|i| |_|S(Nisillegal offset value(
RR<R$R%RRRDR1R(RRR*R"(R	RtnewTexttnext((s+/usr/local/lib/python2.5/xml/dom/minidom.pyt	splitTexts#	
RcCs!t|d||i|fdS(Ns%s%s%s(RrR<(R	RRRR((s+/usr/local/lib/python2.5/xml/dom/minidom.pyR
scCs|ig}|i}xO|dj	oA|ititifjo |id|i|i}qPqW|i}xL|dj	o>|ititifjo|i	|i|i}qsPqsWdi
|S(NiR(R<R2RRRR;RR0R1R>tjoin(R	RAR((s+/usr/local/lib/python2.5/xml/dom/minidom.pyt_get_wholeTexts 	

	

cCs|i}|i}xO|dj	oA|ititifjo |i}|i||}qPqW|i}|p|i|nxO|dj	oA|ititifjo |i}|i||}qPqW|o%|i	}||d<||d<|SndSdS(NR<R}(
R(R2RRRR;RR)R1Rj(R	tcontentRuRRRX((s+/usr/local/lib/python2.5/xml/dom/minidom.pytreplaceWholeText!s2		
	

	
	

	

cCsn|iiotSnt|}|djotSn|ii|}|djotSn|iSdS(N(R<tstripRt_get_containing_elementRRDRtisElementContent(R	RR((s+/usr/local/lib/python2.5/xml/dom/minidom.pyt!_get_isWhitespaceInElementContent?s

N(
RbRcRR;RR|RR~RRRRR(((s+/usr/local/lib/python2.5/xml/dom/minidom.pyRs				tisWhitespaceInElementContentsKTrue iff this text node contains only whitespace and is in element content.t	wholeTexts.The text of all logically-adjacent text nodes.cCsF|i}x6|dj	o(|itijo|Sn|i}qWdS(N(R(RRRR?(R6R5((s+/usr/local/lib/python2.5/xml/dom/minidom.pyRRs	
cCsF|i}x6|dj	o(|itijo|Sn|i}qWdS(N(R(RRRR(R6R5((s+/usr/local/lib/python2.5/xml/dom/minidom.pyRZs	
tCommentcBs2eZeiZdZdZddddZRS(s#commentcCs||_|_dS(N(R<R}(R	R<((s+/usr/local/lib/python2.5/xml/dom/minidom.pyR{gsRcCs!|id||i|fdS(Ns
%s<!--%s-->%s(RqR<(R	RRRR((s+/usr/local/lib/python2.5/xml/dom/minidom.pyRjs(RbRcRRRR|R{R(((s+/usr/local/lib/python2.5/xml/dom/minidom.pyRcs		tCDATASectioncBs)eZeiZdZddddZRS(s#cdata-sectionRcCsA|iiddjotdn|id|idS(Ns]]>is$']]>' not allowed in a CDATA sections<![CDATA[%s]]>(R<tfindR,Rq(R	RRRR((s+/usr/local/lib/python2.5/xml/dom/minidom.pyRws(RbRcRRRR|R(((s+/usr/local/lib/python2.5/xml/dom/minidom.pyRns	tReadOnlySequentialNamedNodeMapcBseZdZddZdZdZdZdZdZdZ	dZ
d	Zd
ZdZ
dZd
ZRS(t_seqcCs
||_dS(N(R!(R	tseq((s+/usr/local/lib/python2.5/xml/dom/minidom.pyR{scCs
t|iS(N(RR!(R	((s+/usr/local/lib/python2.5/xml/dom/minidom.pyRscCs
t|iS(N(RR!(R	((s+/usr/local/lib/python2.5/xml/dom/minidom.pyRscCs0x)|iD]}|i|jo|Sq
q
WdS(N(R!R|(R	RvR((s+/usr/local/lib/python2.5/xml/dom/minidom.pyRs
cCs@x9|iD].}|i|jo|i|jo|Sq
q
WdS(N(R!RdRi(R	RdRiR((s+/usr/local/lib/python2.5/xml/dom/minidom.pyRs
 cCsPt|to|i|}n|i|}|djo
t|n|S(N(RR!RRRRR(R	t
name_or_tupleR6((s+/usr/local/lib/python2.5/xml/dom/minidom.pyRs

cCsB|djodSny|i|SWntj
odSnXdS(Ni(RR!R(R	R+((s+/usr/local/lib/python2.5/xml/dom/minidom.pyRs
cCstiiddS(Ns"NamedNodeMap instance is read-only(R$R%R(R	Rv((s+/usr/local/lib/python2.5/xml/dom/minidom.pyRs	cCstiiddS(Ns"NamedNodeMap instance is read-only(R$R%R(R	RdRi((s+/usr/local/lib/python2.5/xml/dom/minidom.pyRs	cCstiiddS(Ns"NamedNodeMap instance is read-only(R$R%R(R	R6((s+/usr/local/lib/python2.5/xml/dom/minidom.pyRs	cCstiiddS(Ns"NamedNodeMap instance is read-only(R$R%R(R	R6((s+/usr/local/lib/python2.5/xml/dom/minidom.pyRs	cCs
|igS(N(R!(R	((s+/usr/local/lib/python2.5/xml/dom/minidom.pyRscCs|d|_dS(Ni(R!(R	R((s+/usr/local/lib/python2.5/xml/dom/minidom.pyRs(s_seq((RbRcRR{RRRRRRRRRRRR(((s+/usr/local/lib/python2.5/xml/dom/minidom.pyR }s												s&Number of entries in the NamedNodeMap.t
IdentifiedcBs)eZdZdZdZdZRS(s@Mix-in class that supports the publicId and systemId attributes.cCs||_||_dS(N(tpublicIdtsystemId(R	R%R&((s+/usr/local/lib/python2.5/xml/dom/minidom.pyt_identified_mixin_inits	cCs|iS(N(R%(R	((s+/usr/local/lib/python2.5/xml/dom/minidom.pyt
_get_publicIdscCs|iS(N(R&(R	((s+/usr/local/lib/python2.5/xml/dom/minidom.pyt
_get_systemIds(RbRcRR'R(R)(((s+/usr/local/lib/python2.5/xml/dom/minidom.pyR$s		tDocumentTypecBs\eZeiZdZdZdZdZ	dZ
dZdZdZ
ddddZRS(cCsNt|_t|_|ot|\}}||_n|i|_dS(N(R tentitiest	notationsRRvR|(R	RReR((s+/usr/local/lib/python2.5/xml/dom/minidom.pyR{s
cCs|iS(N(tinternalSubset(R	((s+/usr/local/lib/python2.5/xml/dom/minidom.pyt_get_internalSubsetscCsc|idjoKtd}|i|_|i|_tiii}|og|i	_
g|i_
xU|ii
D]G}t|i|i
|i}|ii
i||i|||qoWx|i	i
D]q}t|i|i
|i|i}|i|_|i|_|i|_|i	i
i||i|||qWn|i||||SndSdS(N(RDRR*RvR|R$R%tUserDataHandlertNODE_CLONEDR+R!R,tNotationR%R&R>R`tEntitytnotationNametactualEncodingR
RJ(R	REtcloneR]Rtnotationtetentity((s+/usr/local/lib/python2.5/xml/dom/minidom.pyRFs2

RcCs|id|i|i|io'|id||i||ifn)|io|id||ifn|idj	o.|id|i|i|idn|id|dS(Ns
<!DOCTYPE s%s  PUBLIC '%s'%s  '%s's%s  SYSTEM '%s's [t]Ro(RqRvR%R&R-R(R	RRRR((s+/usr/local/lib/python2.5/xml/dom/minidom.pyRs

	

N(RbRcRtDOCUMENT_TYPE_NODERRR}RvR%R&R-R{R.RFR(((s+/usr/local/lib/python2.5/xml/dom/minidom.pyR*s				R2cBsweZdZeiZdZdZdZ	dZ
dZdZdZ
dZdZdZdZdZRS(	cCs2||_||_t|_|i||dS(N(R|R3RaRR'(R	RvR%R&R6((s+/usr/local/lib/python2.5/xml/dom/minidom.pyR{s		cCs|iS(N(R4(R	((s+/usr/local/lib/python2.5/xml/dom/minidom.pyt_get_actualEncodingscCs|iS(N(R
(R	((s+/usr/local/lib/python2.5/xml/dom/minidom.pyt
_get_encodingscCs|iS(N(RJ(R	((s+/usr/local/lib/python2.5/xml/dom/minidom.pyt_get_version scCstiiddS(Ns(cannot append children to an entity node(R$R%R&(R	R3((s+/usr/local/lib/python2.5/xml/dom/minidom.pyR*#s	cCstiiddS(Ns+cannot insert children below an entity node(R$R%R&(R	R3R4((s+/usr/local/lib/python2.5/xml/dom/minidom.pyR"'s	cCstiiddS(Ns*cannot remove children from an entity node(R$R%R&(R	R8((s+/usr/local/lib/python2.5/xml/dom/minidom.pyR)+s	cCstiiddS(Ns)cannot replace children of an entity node(R$R%R&(R	R3R8((s+/usr/local/lib/python2.5/xml/dom/minidom.pyR9/s	N(RbRcRR~RtENTITY_NODERR}R4R
RJR{R;R<R=R*R"R)R9(((s+/usr/local/lib/python2.5/xml/dom/minidom.pyR2s								R1cBs eZeiZdZdZRS(cCs||_|i||dS(N(R|R'(R	RvR%R&((s+/usr/local/lib/python2.5/xml/dom/minidom.pyR{7s	N(RbRcRRRRR}R{(((s+/usr/local/lib/python2.5/xml/dom/minidom.pyR13s	tDOMImplementationcBsYeZddd
dddddddg
ZdZdZdZd	Zd
ZRS(tcores1.0s2.0s3.0R$sls-loadcCs0|djo
d}n|i|f|ijS(NR(Rtlowert	_features(R	RIRJ((s+/usr/local/lib/python2.5/xml/dom/minidom.pyRHIs

c	Cs_|o&|idj	otiidn|i}|djo|djo
|dj}|o|otiidn|ot|\}}|djo#|djotiidn|o|otiidn|i	||}|o|i
|n|i
|n|o||_|_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_documenttInvalidCharacterErrRRtcreateElementNSR*RDtdoctypeRG(	R	RdRRGRgtadd_root_elementReRR((s+/usr/local/lib/python2.5/xml/dom/minidom.pytcreateDocumentNs4	






	
		cCs"t|}||_||_|S(N(R*R%R&(R	RR%R&RG((s+/usr/local/lib/python2.5/xml/dom/minidom.pytcreateDocumentType{s		cCs#|i|do|SndSdS(N(RHR(R	RI((s+/usr/local/lib/python2.5/xml/dom/minidom.pyROscCstS(N(tDocument(R	((s+/usr/local/lib/python2.5/xml/dom/minidom.pyRDs(R@s1.0(R@s2.0(R@s3.0N(R@N(sxmls1.0(sxmls2.0(sxmls3.0(sxmlN(sls-loads3.0(sls-loadN(	RbRcRRBRHRIRJRORD(((s+/usr/local/lib/python2.5/xml/dom/minidom.pyR?<s			-		tElementInfocBseeZdZdZdZdZdZdZdZdZ	dZ
d	Zd
ZRS(sObject 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.

    RscCs
||_dS(N(Rs(R	Rv((s+/usr/local/lib/python2.5/xml/dom/minidom.pyR{scCstS(N(R(R	taname((s+/usr/local/lib/python2.5/xml/dom/minidom.pyRscCstS(N(R(R	RdRi((s+/usr/local/lib/python2.5/xml/dom/minidom.pyRscCstS(N(R(R	((s+/usr/local/lib/python2.5/xml/dom/minidom.pyRscCstS(sQReturns true iff this element is declared to have an EMPTY
        content model.(R(R	((s+/usr/local/lib/python2.5/xml/dom/minidom.pytisEmptyscCstS(s6Returns true iff the named attribte is a DTD-style ID.(R(R	RM((s+/usr/local/lib/python2.5/xml/dom/minidom.pyRscCstS(s<Returns true iff the identified attribute is a DTD-style ID.(R(R	RdRi((s+/usr/local/lib/python2.5/xml/dom/minidom.pyRscCs|iS(N(Rs(R	((s+/usr/local/lib/python2.5/xml/dom/minidom.pyRscCs
||_dS(N(Rs(R	R((s+/usr/local/lib/python2.5/xml/dom/minidom.pyRs(stagName(
RbRcRRR{RRRRNRRRR(((s+/usr/local/lib/python2.5/xml/dom/minidom.pyRLs								cCs^|itijo|iid|_n.t|o |iiid|i_ndS(N(	RRRt	_id_cachetclearRt_id_search_stackRlRD(R6((s+/usr/local/lib/python2.5/xml/dom/minidom.pyR/s


RKcBseZeieieieifZeiZ	dZ
d$Zd$Z
d$Zd$Zd$ZZeZd$Zd$Zd$Zd$ZeZd$Zd$ZdZdZdZdZdZ dZ!dZ"dZ#d	Z$d
Z%dZ&dZ'd
Z(dZ)dZ*dZ+dZ,dZ-dZ.dZ/dZ0dZ1dZ2dZ3dZ4dZ5dZ6dZ7dZ8dZ9dZ:d Z;d!d!d!d$d"Z<d#Z=RS(%s	#documenticCs+t|_h|_h|_d|_dS(N(RaRt
_elem_infoRORRQ(R	((s+/usr/local/lib/python2.5/xml/dom/minidom.pyR{s		cCs9|io|i|if}n
|i}|ii|S(N(RdRiRsRRR(R	RRS((s+/usr/local/lib/python2.5/xml/dom/minidom.pyRs
	cCs|iS(N(R4(R	((s+/usr/local/lib/python2.5/xml/dom/minidom.pyR;scCs|iS(N(RG(R	((s+/usr/local/lib/python2.5/xml/dom/minidom.pyt_get_doctypescCs|iS(N(tdocumentURI(R	((s+/usr/local/lib/python2.5/xml/dom/minidom.pyt_get_documentURIscCs|iS(N(R
(R	((s+/usr/local/lib/python2.5/xml/dom/minidom.pyR<scCs|iS(N(terrorHandler(R	((s+/usr/local/lib/python2.5/xml/dom/minidom.pyt_get_errorHandlerscCs|iS(N(t
standalone(R	((s+/usr/local/lib/python2.5/xml/dom/minidom.pyt_get_standalonescCs|iS(N(tstrictErrorChecking(R	((s+/usr/local/lib/python2.5/xml/dom/minidom.pyt_get_strictErrorCheckingscCs|iS(N(RJ(R	((s+/usr/local/lib/python2.5/xml/dom/minidom.pyR=scCs|i|ijo,tiidt|t|fn|idj	o|ii|n|it	i
jo#|iotiidnt	i||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/local/lib/python2.5/xml/dom/minidom.pyR*s	#
	
cCssy|ii|Wn"tj
otiinXd|_|_d|_	|i
|jo
d|_
n|S(N(RR:R,R$R%R-RR1R2R(tdocumentElement(R	R8((s+/usr/local/lib/python2.5/xml/dom/minidom.pyR)s	
cCs3x,|iD]!}|itijo|Sq
q
WdS(N(RRRR?(R	R6((s+/usr/local/lib/python2.5/xml/dom/minidom.pyR\s
cCs;|idj	o|iid|_nti|dS(N(RGRR=R(R	((s+/usr/local/lib/python2.5/xml/dom/minidom.pyR=!s

cCs)|pdSn|iiddd}|i|_|i|_|i|_x|iD]}t|||}|ii	|pt
|ii||it
ijo|idjpt
n8|it
ijo$|idjpt
||_n||_qUW|itiii|||S(N(RRGRIR
RXRJRRCRDRNtAssertionErrorR>RRRR]R:RGR(R`R$R%R/R0(R	RER5Rt
childclone((s+/usr/local/lib/python2.5/xml/dom/minidom.pyRF's(



cCst}||_|S(N(RzRD(R	RX((s+/usr/local/lib/python2.5/xml/dom/minidom.pytcreateDocumentFragment<s		cCst|}||_|S(N(RRD(R	RsR7((s+/usr/local/lib/python2.5/xml/dom/minidom.pyt
createElementAs	cCs<t|tp
tdnt}||_||_|S(Nsnode contents must be a string(RRRRR<RD(R	R<tt((s+/usr/local/lib/python2.5/xml/dom/minidom.pytcreateTextNodeFs
			cCs<t|tp
tdnt}||_||_|S(Nsnode contents must be a string(RRRRR<RD(R	R<R5((s+/usr/local/lib/python2.5/xml/dom/minidom.pytcreateCDATASectionNs
			cCst|}||_|S(N(RRD(R	R<R5((s+/usr/local/lib/python2.5/xml/dom/minidom.pyt
createCommentVs	cCst||}||_|S(N(RRD(R	RR<tp((s+/usr/local/lib/python2.5/xml/dom/minidom.pytcreateProcessingInstruction[s	cCs"t|}||_d|_|S(NR(RRDR(R	Rta((s+/usr/local/lib/python2.5/xml/dom/minidom.pytcreateAttribute`s		cCs1t|\}}t|||}||_|S(N(RRRD(R	RdRReRiR7((s+/usr/local/lib/python2.5/xml/dom/minidom.pyRFfs	cCs=t|\}}t||||}||_d|_|S(NR(RRRDR(R	RdRReRiRh((s+/usr/local/lib/python2.5/xml/dom/minidom.pytcreateAttributeNSls
		cCs"t||||}||_|S(N(R2RD(R	RvR%R&R3R7((s+/usr/local/lib/python2.5/xml/dom/minidom.pyt_create_entityvs	cCst|||}||_|S(N(R1RD(R	RvR%R&R((s+/usr/local/lib/python2.5/xml/dom/minidom.pyt_create_notation{s	c	Cs|ii|o|i|Sn|ip|ipdSn|i}|djo|ig}||_n|pdSnd}x|o|i}|ig}|i	D]!}|i
tjo||qq~|i|}|ox||i
iD]}|ioZ|i|i|io=||i|i<|i|jo
|}qc|ipPqcqq|i|io=||i|i<|i|jo
|}q|ipPqq|ioC||i|i<|i|jo
|}q|idjoPqqqWna|ioVxS|i
iD]>}|io.||i|i<|i|jo
|}qdq&q&Wn|dj	oPqqW|S(Ni(RORURRRRRQR]tpoptextendRRR.RR~RRdRRiRRRRvR(	R	RtstacktresultR6t_[1]RBRR((s+/usr/local/lib/python2.5/xml/dom/minidom.pytgetElementByIdsb	

%





	





cCst||tS(N(RtRa(R	Rv((s+/usr/local/lib/python2.5/xml/dom/minidom.pyRscCst|||tS(N(RxRa(R	RdRi((s+/usr/local/lib/python2.5/xml/dom/minidom.pyRscCs|ii||S(N(RGRH(R	RIRJ((s+/usr/local/lib/python2.5/xml/dom/minidom.pyRKscCsb|itijotiidn*|itijotiidnt|||S(Nscannot import document nodess!cannot import document type nodes(RRRR$R%tNotSupportedErrR:RC(R	R6RE((s+/usr/local/lib/python2.5/xml/dom/minidom.pyt
importNodes
RcCsg|djo|id|n|id||fx'|iD]}|i||||qCWdS(Ns<?xml version="1.0" ?>s%<?xml version="1.0" encoding="%s"?>%s(RRqRR(R	RRRRR
R6((s+/usr/local/lib/python2.5/xml/dom/minidom.pyRs

c	Cs|i|j	o#tiid||ifn|ititifjotiidn|t	jod|joR|i
dd\}}|djo)|tiijotiidq&q6|djo<|tiijo)|itijotiidnd}|}n
d}d}|itijo4|i}|dj	o|i}|i|qnd}|i}||d<||d	<||d
<||d<|itijo||d<nA||d
<|dj	o)|i||o|i|qn|S(Ns?cannot rename nodes from other documents;
expected %s,
found %ss8renameNode() only applies to element and attribute nodesRiRsillegal use of 'xmlns' prefixs$illegal use of the 'xmlns' attributeReRiRdR|RsRv(RDR$R%RCRRR?RRsRRRRRRRRRjRR(	R	RRdRvReRiRtis_idRX((s+/usr/local/lib/python2.5/xml/dom/minidom.pyt
renameNodesT		



	
	

	
		






N(>RbRcRR?RRR:R#RRR|RR}R~RGR(R2R1R?RGR4R
RXRJRRZRVRTRR{RR;RSRUR<RWRYR[R=R*R)R\R=RFR`RaRcRdReRgRiRFRjRkRlRrRRRKRtRRv(((s+/usr/local/lib/python2.5/xml/dom/minidom.pyRKsh	
																									
			:					
R]s#Top-level element of this document.c
Cs0|ii|otiii}ntiii}|iti	jo|i
|i|i}xW|i
iD]F}|i|i|i|i|i|i|i}|i|_qpW|o7x4|iD]%}t|||}|i|qWqn
|itijoN|i}|o7x4|iD]%}t|||}|i|q,Wqn|itijo|i|i}n|itijo|i|i}nW|itijo|i|i |i}n(|iti!jo|i"|i}n|iti#jo1|i$|i|i}t%|_|i|_n|iti&jo|i|j	pt'tiii}|i(i)|i*|i+|i,}||_|o0g|i-_.g|i/_.xr|i/i.D]d}	t0|	i|	i+|	i,}
||
_|i/i.i1|
t2|	do|	i3||	|
qqWx|i-i.D]}t4|i|i+|i,|i5}|i6|_6|i7|_7|i8|_8||_|i-i.i1|t2|do|i3||	|qOqOWqntii9dt:|t2|do|i3|||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?RFRdR|R~RRRRRiRRRCR*R R`R;RcR<RRdRRgRRReRRjRR:R^RGRJRvR%R&R+R!R,R1R>RZR`R2R3R4R
RJRsR'(
R6REtnewOwnerDocumentR]R5RRhRBR5RR6R7R8((s+/usr/local/lib/python2.5/xml/dom/minidom.pyRCs

			
	
	#cCs?|idd}t|djo|Snd|dfSdS(NRiii(RRR(Rtfields((s+/usr/local/lib/python2.5/xml/dom/minidom.pyRcscCsddkl}|S(Ni(tStringIO(Rz(Rz((s+/usr/local/lib/python2.5/xml/dom/minidom.pyRkscCs<|||}|i\}}|i||i|S(N(tgetEventt
expandNodeRP(tfunctargstkwargsteventsttoktypetrootNode((s+/usr/local/lib/python2.5/xml/dom/minidom.pyt_do_pulldom_parseps


cCsr|djo)|o!ddkl}|i|Sn9ddkl}t|i|fh|d<|d<SdS(s3Parse a file into a DOM by filename or file object.i(texpatbuilder(tpulldomtparsertbufsizeN(Rtxml.domRtparseRR(tfileRRRR((s+/usr/local/lib/python2.5/xml/dom/minidom.pyRwscCsa|djo!ddkl}|i|Sn0ddkl}t|i|fh|d<SdS(s&Parse a file into a DOM from a string.i(R(RRN(RRRtparseStringRR(tstringRRR((s+/usr/local/lib/python2.5/xml/dom/minidom.pyRs
cCsj|o\t|toti|}nx6|D]*\}}tii||pdSq1q1WntiS(N(RRRt_parse_feature_stringRKRGRHR(tfeaturestftv((s+/usr/local/lib/python2.5/xml/dom/minidom.pytgetDOMImplementations(8RRR$RRRRtxml.dom.minicompattxml.dom.xmlbuilderRRR%RR?RR.tdefpropertyR7RlRrRtRxRzRtobjectRt
AttributeListRRRRRRRRRRRRRR R$R*R2R1R?RLR/RKRCRRRRRR(((s+/usr/local/lib/python2.5/xml/dom/minidom.pys<module>s"
	
					u	$GZ			><(	Q*	O	R			


Man Man