comparison MpdlXmlTextServer.py @ 260:e2da793cdd3a

*** empty log message ***
author abukhman
date Wed, 13 Oct 2010 17:49:08 +0200
parents 56767b764f37
children 2508c813d87a
comparison
equal deleted inserted replaced
259:56767b764f37 260:e2da793cdd3a
150 150
151 text=self.getServerData("xpath.xql", "document=%s&xpath=%s&pn=%s"%(docinfo['textURLPath'],'//place',pn)) 151 text=self.getServerData("xpath.xql", "document=%s&xpath=%s&pn=%s"%(docinfo['textURLPath'],'//place',pn))
152 #logging.debug("documentViewer getGisPlaces (text) text:%s"%(text)) 152 #logging.debug("documentViewer getGisPlaces (text) text:%s"%(text))
153 pagedom = Parse(text) 153 pagedom = Parse(text)
154 result =pagedom.xpath("//result/resultPage/place") 154 result =pagedom.xpath("//result/resultPage/place")
155 logging.debug("getGisPlaces (place) text:%s"%(place)) 155 logging.debug("getGisPlaces (place) result:%s"%(result))
156 for l in result: 156 for l in result:
157 hrefNode= l.getAttributeNodeNS(None, u"id") 157 hrefNode= l.getAttributeNodeNS(None, u"id")
158 logging.debug("documentViewer getGisPlaces (characterNormalization) l:%s"%(l)) 158 logging.debug("documentViewer getGisPlaces (characterNormalization) l:%s"%(l))
159 if hrefNode: 159 if hrefNode:
160 href= hrefNode.nodeValue 160 href= hrefNode.nodeValue