Wednesday, March 28, 2007

 

Read XML from Internet in SQL query

Sample of using URIFACTORY.getUri (UriType)


select c.datum,
extractvalue(value(b), '//tecaj/@oznaka','xmlns="http://www.bsi.si"') oznaka ,
extractvalue(value(b), '//tecaj/@sifra','xmlns="http://www.bsi.si"') sifra ,
extractvalue(value(b), '//tecaj','xmlns="http://www.bsi.si"') tecaj
from
(
select
extractvalue(value(a), '//tecajnica/@datum','xmlns="http://www.bsi.si"') datum,
extract(value(a),'//tecajnica','xmlns="http://www.bsi.si"') tecajnicaxml
from table (xmlsequence
(extract(
URIFACTORY.getUri('http://www.bsi.si/_data/tecajnice/dtecbs-l.xml').getXml()
, '//DtecBS/tecajnica','xmlns="http://www.bsi.si"'
))) a
) c, table (xmlsequence(extract(c.tecajnicaxml,'//tecaj','xmlns="http://www.bsi.si"'))) b
;

Comments:
I would like to appreciate you the way you have shared the post with us. It is really hard to find the quality post, but you have done this job nicely dear.
six month industrial training | Oracle Technologies

 
Post a Comment



<< Home

This page is powered by Blogger. Isn't yours?