Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8088

X-Path like Query option for XMLModel?

$
0
0

Hi,

 

is there an option to use x-path-like queries in the XMLModel?

 

E.g.

 

  1. <?xmlversion="1.0"encoding="UTF-8"?>   
  2. <main> 
  3.                          <config> 
  4.                                     <mode>1</mode>  
  5.                                     <ext> 
  6.                                         <itemdate="January 2009">                                         
  7.                                         <unit>900</unit> 
  8.                                         <current>1</current>  
  9.                                         <interactive>1</interactive> 
  10.                                         </item> 
  11.                                    </ext> 
  12.                          </config>  
  13.                           <config> 
  14.                                      <mode>2</mode>   
  15.                                     <ext> 
  16.                                            <itemdate="February 2009">                                      
  17.                                         <unit>400</unit>   
  18.                                         <current>2</current>  
  19.                                         <interactive>5</interactive>   
  20.                                          </item> 
  21.                                    </ext> 
  22.                        </config>  
  23. </main> 

 

and

 

  1. var oTable2 = new sap.ui.table.Table();   
  2. oTable2.bindRows("/config['mode='1'']/ext"); 

 

to select a node directly?

 

The source is from an old Post [SAPUI5 - XMLModel]  Xpath filter ? where the solution was to loop through the result.

Does SAPUI support X-Path like queries in the meantime?

 

Thanks,

Oliver


Viewing all articles
Browse latest Browse all 8088

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>