Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #81815

Parsing XML Using XPATH for Python

Newsgroups comp.lang.python
Date 2014-12-02 14:13 -0800
Message-ID <a1a70942-6740-4de5-b41e-57a71fb36910@googlegroups.com> (permalink)
Subject Parsing XML Using XPATH for Python
From Uzoma Ojemeni <uojemeni@gmail.com>

Show all headers | View raw


I am new to Python - a few days old - and I would appreciate some help.

I want write a python code to parse the below XML as below:-

ServingCell----------NeighbourCell
L41_NBR3347_1----------L41_NBR3347_2
L41_NBR3347_1----------L41_NBR3347_3
L41_NBR3347_1----------L41_NBR3349_1
L41_NBR3347_1----------L41_NBREA2242_1

<LteCell id="L41_NBR3347_1">
 <attributes>
  <absPatternInfoTdd><unset/></absPatternInfoTdd>
  <additionalSpectrumEmission>1</additionalSpectrumEmission>
  <additionalSpectrumEmissionList><unset/></additionalSpectrumEmissionList>
  <LteSpeedDependentConf id="0">                   
    <attributes>                                    
     <tReselectionEutraSfHigh>lDot0</tReselectionEut
     <tReselectionEutraSfMedium>lDot0</tReselectionE
    </attributes>                                   
   </LteSpeedDependentConf>                         
   <LteNeighboringCellRelation id="L41_NBR3347_2">  
    <attributes>                                    
     <absPatternInfo><unset/></absPatternInfo>      
   </LteNeighboringCellRelation>                    
   <LteNeighboringCellRelation id="L41_NBR3347_3">  
    <attributes>                                    
     <absPatternInfo><unset/></absPatternInfo>      
   </LteNeighboringCellRelation>                    
   <LteNeighboringCellRelation id="L41_NBR3349_1">  
    <attributes>                                    
     <absPatternInfo><unset/></absPatternInfo>                            
   </LteNeighboringCellRelation>                    
   <LteNeighboringCellRelation id="L41_NBREA2242_1">
    <attributes>                                    
     <absPatternInfo><unset/></absPatternInfo>      
     <absPatternInfoTdd><unset/></absPatternInfoTdd>

Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Parsing XML Using XPATH for Python Uzoma Ojemeni <uojemeni@gmail.com> - 2014-12-02 14:13 -0800
  Re: Parsing XML Using XPATH for Python John Gordon <gordon@panix.com> - 2014-12-02 22:52 +0000
    Re: Parsing XML Using XPATH for Python Uzoma Ojemeni <uojemeni@gmail.com> - 2014-12-06 02:57 -0800
  Re: Parsing XML Using XPATH for Python dieter <dieter@handshake.de> - 2014-12-03 07:59 +0100

csiph-web