MINI SHELL

Server : Apache/2.2.2 (Fedora)
System : Linux App1.pathumtani.go.th 2.6.20-1.2320.fc5smp #1 SMP Tue Jun 12 19:40:16 EDT 2007 i686
User : apache ( 48)
PHP Version : 5.2.9
Disable Function : NONE
Directory :  /proc/self/root/usr/lib/python2.4/site-packages/_xmlplus/dom/ext/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/self/root/usr/lib/python2.4/site-packages/_xmlplus/dom/ext/Dom2Sax.pyc
mς
¨Ρ<c	@s5dZdklZlZdklZlZlZdkl	Z	l
Z
dklZdk
lZlZeZdefd„ƒYZdfd	„ƒYZd
„Zedjo‡dkZd
klZdklZdklZdklZlZlZlZeZ eZ!eZ"eZ#ei$dZ%ei&ƒZ'e(e%ƒZ)e'i*e)ƒZ+dGe+Ge+i,GHee+ƒxΟddddfD]·\Z-Z.Z/Z0x’eƒe+fedgƒe)fedgƒe)ffD]j\Z1Z2e2e+j	oe(e%ƒZ2nee1e2e e-fe!e.ffe"e/fe#e0ffƒe)i3ƒq»WqrWndS(sc  parser to generate SAX events from a DOM tree

$Date: 2002/05/02 10:15:04 $ by $Author: loewis $
(sSAXNotSupportedExceptionsSAXNotRecognizedException(s	XMLReadersAttributesNSImplsAttributesImpl(sLexicalHandlersDeclHandler(shandler(sNodesXMLNS_NAMESPACEt
Dom2SaxParsercBs_tZdZd„Zd„Zd„Zd„Zd„Zd„Zd„Z	d„Z
d	„ZRS(
sm  Generate SAX events from a DOM tree
    
    handle _ feature_namespaces
           _ feature_namespace_prefixes,
           _ property_lexical_handler
           _ property_declaration_handler (not yet fully)
           
    differences with standard sax parser:
         _ no error handling (we start from a dom tree !!)
         _ no locator (same reason)
    cCsDti|ƒtƒ|_tƒ|_d|_d|_d|_	dS(Nii(
t	XMLReadert__init__tselftLexicalHandlert_lex_handlertDeclHandlert
_decl_handlert_nst_ns_prfxt_parsing(R((t</usr/lib/python2.4/site-packages/_xmlplus/dom/ext/Dom2Sax.pyRs
		cCsJ|tijo|iSn|tijo|iSntd|ƒ‚dS(NsFeature '%s' not recognized(tnamethandlertfeature_namespacesRRtfeature_namespace_prefixesR	tSAXNotRecognizedException(RR((Rt
getFeature#s
cCsh|iotdƒ‚n|tijo
||_n.|tijo
||_	nt
d|ƒ‚dS(Ns!Cannot set features while parsingsFeature '%s' not recognized(RR
tSAXNotSupportedExceptionRR
RtstateRRR	R(RRR((Rt
setFeature+s


cCsJ|tijo|iSn|tijo|iSntd|ƒ‚dS(NsProperty '%s' not recognized(RR
tproperty_lexical_handlerRt_lex_handler_proptproperty_declaration_handlert_decl_handler_propR(RR((RtgetProperty7s
cCsh|iotdƒ‚n|tijo
||_n.|tijo
||_	nt
d|ƒ‚dS(Ns#Cannot set properties while parsingsProperty '%s' not recognized(RR
RRR
RtvalueRRRR(RRR((RtsetProperty?s


cCsc|iotdƒ‚nd|_|io|i|_n
|i|_|i|ƒd|_dS(NsAsk for parse while parsingii(	RR
RRt_element_nst	_element_t_elementt	_from_domtdom(RR ((RtparseLs
	

cCs›x”|oŒ|i}|tijo|i|ƒnV|tijo|ii	|i
ƒn/|tijo|ii|i
|i
ƒn|tijo.|iiƒ|i|iƒ|iiƒnΔ|tijoBx°|iD]0}|iiƒ|i|iƒ|iiƒqΰWnr|tijo1|iiƒ|ii	|i
ƒ|iiƒn1|tijo|ii|i
ƒn
|tijo―|ii|i|i|iƒx|t |i!i"ƒD]h}|i!i$|ƒ}|ip
|io#|i&i'|i(|i|iƒqΒ|i&i'|i|i)ƒqΒW|ii*ƒnK|ti+jo:|ii,|i-ƒ|i|iƒ|ii.|i-ƒn|i/}qWdS(N(0tntnodeTypettypetNodetELEMENT_NODERRt	TEXT_NODEt
_cont_handlert
characterstdatatPROCESSING_INSTRUCTION_NODEtprocessingInstructionttargett
DOCUMENT_NODEt
startDocumentRt
firstChildtendDocumenttDOCUMENT_FRAGMENT_NODEt
childNodestCDATA_SECTION_NODERt
startCDATAtendCDATAtCOMMENT_NODEtcommenttDOCUMENT_TYPE_NODEtstartDTDRtpublicIdtsystemIdtrangetentitiestlengthtititemteRtexternalEntityDecltnotationNameRtendDTDtENTITY_REFERENCE_NODEtstartEntitytnodeNamet	endEntitytnextSibling(RR"RBR@R$((RRXsN	



#cCs||i}h}x$|iƒD]}|i||i<qW|i}|i
i|t|ƒƒ|i
|iƒ|i
i|ƒdS(s+ handle an ElementNode without NS interfaceN(R"t
attributestnnmtattrstvaluestaRRHRRR(tstartElementtAttributesImplRR0t
endElement(RR"RORLRRM((RR„s	
	cCsUg}	|i}hh}}x»|iƒD]­}|i}
|
t
joh|i|i}}|ii||ƒ|	i|ƒ|io'|
|f}|||<|i||<qΦq)|
|if}|i||<|i||<q)W|i|if}|ii||it||ƒƒ|i|iƒ|ii||iƒ|	iƒt|ii|	ƒdS(s( handle an ElementNode with NS interfaceN(tprefix_listR"RKRLRMtqnamesRNROtnamespaceURIta_uritXMLNS_NSt	localNameRtprefixtvalRR(tstartPrefixMappingtappendR	RRHtstartElementNStAttributesNSImplRR0tendElementNStreversetmaptendPrefixMapping(RR"RORLRRZRTRYRMRSRV((RR“s2	

	





(t__name__t
__module__t__doc__RRRRRR!RRR(((RR
s	
				
		,	tPrintSaxHandlercBsΰtZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z	d	„Z
d
„Zd„Zd„Z
d
„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„ZRS(NcCs
dG|GHdS(NtsetDocumentLocator(tlocator(RRh((RRg΅scCs	dGHdS(NR/((R((RR/·scCs	dGHdS(NR1((R((RR1ΉscCs7dG|GHx'|iƒD]\}}dG|G|GHqWdS(NRPt	attribute(RRMtitemstkeyRZ(RRRMRZRk((RRP»s	
cCs
dG|GHdS(NRR(R(RR((RRRΏscCs;dG|G|GHx'|iƒD]\}}dG|G|GHqWdS(NR]Ri(RtqnameRMRjRkRZ(RRRlRMRZRk((RR]Αs

cCsdG|G|GHdS(NR_(RRl(RRRl((RR_ΕscCsdG|G|GHdS(NR[(RYturi(RRYRm((RR[ΗscCs
dG|GHdS(NRb(RY(RRY((RRbΙscCsdG|G|GHdS(NR,(R-R*(RR-R*((RR,ΛscCs
dG|GHdS(NtignorableWhitespace(t
whitespace(RRo((RRnΝscCsdG|idƒGHdS(NR)siso-8859-15(tchtencode(RRp((RR)ΟscCsdG|G|G|GHdS(NtxmlDecl(tversiontencodingt
standalone(RRsRtRu((RRrΣscCsdG|idƒGHdS(NR8sUTF-8(tmachinRq(RRv((RR8ΥscCs
dG|GHdS(NRG(R(RR((RRGΧscCs
dG|GHdS(NRI(R(RR((RRIΩscCs	dGHdS(NR5((R((RR5ΫscCs	dGHdS(NR6((R((RR6έscCsdG|G|G|GHdS(NR:(Rt	public_idt	system_id(RRRwRx((RR:ίscCs	dGHdS(NRE((R((RREαscCsdG|G|G|G|G|GHdS(Nt
attributeDecl(t	elem_namet	attr_nameR$t	value_defR(RRzR{R$R|R((RRyεscCsdG|G|GHdS(NtelementDecl(Rzt
content_model(RRzR~((RR}ηscCsdG|G|idƒGHdS(NtinternalEntityDeclsUTF-8(RRRq(RRR((RRιscCsdG|G|G|GHdS(NRC(RRwRx(RRRwRx((RRCλs(RcRdRgR/R1RPRRR]R_R[RbR,RnR)RrR8RGRIR5R6R:RERyR}RRC(((RRf²s0																							cCs!dk}	tƒ}
|i|
ƒddGH|iGHHxN|D]F\}}y|i	||ƒ|G|GHWq8t
j
o}|GHq8Xq8WxY|D]Q\}}y(|o|i||
ƒn|G|GHWq‰t
j
o}|GHq‰Xq‰WddGH|	iƒ}|i|ƒddGHdG|	iƒ|GHHdS(Nt-iPt*sTEMPS:(ttimeRfthtparsertsetContentHandlert	__class__tfeaturestfRZRt	ExceptionRBt
propertiestpRttR!tdoc(R„RR‡RŠRBRˆR‹RZRŒR‚Rƒ((Rt_parseρs6		
	

	
	t__main__N(smake_parser(sSax2(sPrettyPrint(sfeature_namespacessfeature_namespace_prefixessproperty_lexical_handlersproperty_declaration_handlerisInitial documentisxml.sax.drivers2.drv_pyexpatsxml.sax.drivers2.drv_xmlproc(iiii(iiii(iiii(iiii(4Retxml.sax._exceptionsRRtxml.sax.xmlreaderRR^RQtxml.sax.saxlibRRtxml.saxR
txml.domR%tXMLNS_NAMESPACERWRRfRŽRctsystmake_parsertxml.dom.ext.readertSax2txml.dom.exttPrettyPrinttxml.sax.handlerRRRRtf1tf2tp1tp2targvtfiletReadertrtopenRˆt
fromStreamRR†tval1tval2tval3tval4R‹tdtclose($RRžRR«R’R©R¨R§RR^R•RfR‹RRͺR
RRQRR%R–RR—RRWRŸR›R™RˆRRRR R€RŽR((Rt?sB
₯?	
	




7
7

Anon7 - 2021