Mercurial > hg > documentViewer
comparison MpdlXmlTextServer.py @ 278:3cf933f640a3
*** empty log message ***
author | abukhman |
---|---|
date | Thu, 14 Oct 2010 12:10:33 +0200 |
parents | b39fb81a1919 |
children | 5bdecec2af22 |
comparison
equal
deleted
inserted
replaced
277:b39fb81a1919 | 278:3cf933f640a3 |
---|---|
151 text=self.getServerData("xpath.xql", "document=%s&xpath=%s&pn=%s"%(docinfo['textURLPath'],xpath,pn)) | 151 text=self.getServerData("xpath.xql", "document=%s&xpath=%s&pn=%s"%(docinfo['textURLPath'],xpath,pn)) |
152 dom = Parse(text) | 152 dom = Parse(text) |
153 result = dom.xpath("//result/resultPage/place") | 153 result = dom.xpath("//result/resultPage/place") |
154 for l in result: | 154 for l in result: |
155 hrefNode= l.getAttributeNodeNS(None, u"id") | 155 hrefNode= l.getAttributeNodeNS(None, u"id") |
156 logging.debug("getGisPlaces :%s"%(hrefNode)) | |
156 href= hrefNode.nodeValue | 157 href= hrefNode.nodeValue |
157 #koka=href | 158 #koka=href |
158 #logging.debug("getGisPlaces :%s"%(href)) | 159 #logging.debug("getGisPlaces :%s"%(href)) |
159 #if href.startswith('id='): | 160 #if href.startswith('id='): |
160 #hrefNode.nodeValue = href.replace('id=',"?") | 161 #hrefNode.nodeValue = href.replace('id=',"?") |