XML Feed as a source of data?
Hello worldI've been away from all CF and webdev world for a few years and I have some catching up to do - please bear with me :)
I am putting together a site that attracts the lists of products from a third party XML feed and then use their site for transactions by credit card etc.. I've never worked with before XML streams, so I googled a bit looking for some basic information. I came across this page:
http://www.Adobe.com/devnet/articles/xml_resource_feed.html
and found this statement: "you can use the XML feed as a data source in ColdFusion to create dynamic content for an HTML page or a Macromedia Flash application.»
This does mean that I can simply create a data source on my CF box, he points to the XML stream and then just question him like a normal mySQL or Access DB? Or (as I strongly suspect), am I missing something?
If I get immersed in XML does anyone know of a good introduction to hang a stream in a CF XML site?
Thank you
Paul.
For example, run the following
Query = "rssQuery."
source =" http://rss.news.yahoo.com/rss/topstories" > "
Tags: ColdFusion
Similar Questions
-
import data produced by xml feed
BC agrees to import data through xml feeds?
No thanks, I'll do it myself with this tutorial from the BC gurus and cross my fingers. Part 2 of creating a Migration Application of data of Business Catalyst
-
I have codes as follows:
SET SERVEROUTPUT ON
SET DEFINE OFF
DECLARE
feedURL VARCHAR2 (500);
xmlparser parser. Analyzer;
feedXML xmldom. DOMDocument;
titles xmldom. DOMNodeList;
titles_found NUMBER;
curNode xmldom. DOMNode;
textChild xmldom. DOMNode;
BEGIN
feedURL: = '3Aproject % http://192.168.2.30/cgi-bin/query-meta?v%3Asources=cansumtest & v = query-meta & query = HOOD & render.function = xml-feed-display & content-type = text/xml';
Parser: = xmlparser.newParser;
feedXML: = xmlparser.parse (feedURL);
xmlparser.freeParser (parser);
titles: = xmldom.getElementsByTagName(feedXML,'*');
FOR j IN LOOP 1.xmldom.getLength (titles)
curNode: = xmldom.item(titles,j-1);
textChild: = xmldom.getFirstChild (curNode);
dbms_output.put_line ('('||) LPAD(j,2) |') '|| xmldom.getNodeValue (textChild));
END LOOP;
xmldom.freeDocument (feedXML);
END;
Above codes generate result:
(1)
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
(11) 150
* (12) H0OH18101 *.
(13) < span class = "vivbold qt0" > </span > HOOD, RONALD E
(14)
(15)
(16) 155
* (17) H8OH07073 *.
(18) < span class = "vivbold qt0" > </span >, RONALD EDWARD HOOD
(19)
(20)
(21)
(22)
(23) H0oh18101, hood, Ronald
(24)
(25) Edward, Hood, Ronald
PL/SQL procedure successfully completed.
You can see by browsing, oracle shows all items in the feed url. From the results above, I need to display only items 12 and 17, and ignore the rest. I also provide XML feed below:
<? XML version = "1.0"? >
-vce >
< param name = "v: sources" value = "cansumtest" / >
< param name = "v: project ' value = 'query-meta' / >
< param name = "query" value = "HOOD" / >
< param name = "render.function" value = "xml-feed-display" / > "
< param name = "content-type" value = "text/xml" / >
-added source = test-strictly 'test-strictly"name ="cansumtest"type ="vse"modified"1355412925"="1.3"over-request = num = '200' status 'questioned' = asked ="200"query-xml-Jack in charge ="query-xml-support' vse - vse = 'vse - vse"total-results = '2' admin-url ="http://velocity/vivisimo/cgi-bin/admin"stem"depluralize"stem2 = 'none' = list of stopwords = 'none' search-ms ="1"recovery-ms = '0' total-results-with-duplicates = '2' retrieved '2' = >
< parse url = "http://127.0.0.1:7205/search?query-xml=%3cterm%20field%3d%22query%22%20str%3d%22HOOD%22%20position%3d%220%22%20processing%3d%22strict%22%20input-type%3d%22user%22%20%2f%3e & mode = normal & strength-binning binning = 0 & max = 300 & start = 0 & num = 200 & staging = 0 & collection = cansumtest & r-o-p = 0 & sort keys = 1 & shingles = 1 & sum = 1 & = 1 & cache-data cache = 0 & score = 0 & show-duplicates =" 0 & gen - key = 0 & n-collapse = 0 & is is collapsed binning = 0 "start time"57"end of time = = http ="64"status" 200 OK"status =" "read treated analysis ' recovered '2' = / >" "
< / source added >
-< path list = "" num = "2" level = '0' start '0' by = '10' = > "
-document url = "oracle://192.168.2.19:1521 / orcl /?" key - val = 9' rank = '0' source = "cansumtest" score = "0.111111" truncated url = "oracle://192.168.2.19:1521 / orcl /?" key - val = 9"context =" 3astate % http://192.168.2.30/cgi-bin/query-meta?v%3afile=viv_MLtzUk & v = % 28root % 29% 7croot & v % 3aframe = tree & subquery = id % 3aNdoc0 & % active 3d = root & v % 3asubsearch = 1 & ">
< = "size" type = "text" > 150 happy name < / content >
< happy name = "CAND_ID" type = "text" > H0OH18101 < / content >
< happy name = "CAND_NM" type = "text" > < span class = "vivbold qt0" > </span > HOOD, RONALD E < / content >
< happy name = "extract" type = "html" / >
< / document >
-document url = "oracle://192.168.2.19:1521 / orcl /?" key - val = 4015"="1"source ="cansumtest"rank score = '0.1' truncated url =" oracle://192.168.2.19:1521 / orcl /? " key - val = 4015"context =" 3astate % http://192.168.2.30/cgi-bin/query-meta?v%3afile=viv_MLtzUk & v = % 28root % 29% 7croot & v % 3aframe = tree & subquery = id % 3aNdoc1 & % active 3d = root & v % 3asubsearch = 1 & ">
< happy name = "size" type = "text" > 155 < / content >
< happy name = "CAND_ID" type = "text" > H8OH07073 < / content >
< happy name = "CAND_NM" type = "text" > < span class = "vivbold qt0" > </span >, RONALD EDWARD HOOD < / content >
< happy name = "extract" type = "html" / >
< / document >
< / list >
-< tree base-url = "" http://192.168.2.30/cgi-bin/query-meta?v%3afile=viv_MLtzUk & v: state = ' recluster-base-url = "http://192.168.2.30/cgi-bin/query-meta?v%3afile=viv_MLtzUk &" > "
-< node type = 'high' level = '0' Sindocs = '2' active = '1' subnodes = '0' ts = "|" root' ls = "root |" root' bs = "|" root">
-< node type = 'document' level = '1' Sindocs = '1' ts = "(root) |" root' ls = "root |" N0"bs =" (root) | " N0 ">"
< description > H0oh18101, hood, Ronald < / description >
< / node >
-< node type = 'document' level = '1' Sindocs = '1' ts = "(root) |" root' ls = "root |" N1"bs =" (root) | " N1 ">"
< description > Edward, Hood, Ronald < / description >
< / node >
< / node >
< / tree >
< / vce >The easiest way is probably to apply a regular expression, either by post-processing of the column:
SQL> select cand_id 2 , regexp_replace(cand_nm, '<[^>]+>') as cand_nm 3 from xmltable( 4 '/vce/list/document' 5 passing xdburitype('/public/feed.xml').getxml() 6 columns 7 cand_id varchar2(30) path 'content[@name="CAND_ID"]' 8 , cand_nm varchar2(80) path 'content[@name="CAND_NM"]' 9 ) 10 ; CAND_ID CAND_NM ------------------------------ -------------------------------------------------------------------------------- H0OH18101 HOOD, RONALD E H8OH07073 HOOD, RONALD EDWARD
or directly in XMLTable:
SQL> select cand_id 2 , cand_nm 3 from xmltable( 4 '/vce/list/document' 5 passing xdburitype('/public/feed.xml').getxml() 6 columns 7 cand_id varchar2(30) path 'content[@name="CAND_ID"]' 8 , cand_nm varchar2(80) path 'ora:replace(content[@name="CAND_NM"], "<[^>]+>", "")' 9 ) 10 ; CAND_ID CAND_NM ------------------------------ -------------------------------------------------------------------------------- H0OH18101 HOOD, RONALD E H8OH07073 HOOD, RONALD EDWARD
-
Determine the Sources of data used by Applications
We are still currently using MX6.1. Our team of Oracle is upgrading to a large amount of databases (at the beginning of DEV, then QA, then Prod) which connect our various applications see I'm pulling my hair out I am trying to figure out/map which applications use a particular data source. I know that when I go into a sandbox given via the web administration I see sources of data that an application is allowed to use. It would be terribly helpful if I could just go in the variety, defined data sources and see what sandbox (es) currently allow connectivity and would thus know which applications would be affected. Someone can shed some light on my dismal existence? Thanks in advance.Your method is easy.
All the your DSN are saved in the file "cfroot\lib\neo-datasource.xml". You can open with an XML editor and view the settings.
-
Podcast XML Feed does not update
Hello
Since May 2009, I have the following podcast that ran (albeit with a 2 year hiatus):
https://iTunes.Apple.com/GB/podcast/the-itsawinner-Poker-podcast/id344260020?MT= 2
The XML of talkshoe is: http://recordings.talkshoe.com/rss72195.xml
After our show "comeback" on March 22, it downloaded correctly. Unfortunately the shows on March 29 and April 5 are uploaded correctly and if you are a Subscriber came to watch to download in the iTunes client but do not appear in the iTunes store.
In 'Apple Podcasts Connect' the food reads as having various errors. Oddly enough, a second podcast that I have has a talkshoe XML feed has been allowed a few days ago showed that the error, then was allowed again.
Can someone help me? I sent to Apple who have said that they will study closer, but that was a week ago and I heard nothing. The show is a real body of works and we want to continue to use the feed.
Thank you
Malcolm
I don't expect the 5th episode of April to show in the store again - it usually takes about 2 days for a new episode to appear. However, previous episodes of 29 March should have appeared. However, there has been cases recently of the Bank of failing to show the odd episodes. All you can do is to email them and request a re-indexing - it usually sorts out. It seem not to be serious errors in the food that can cause this.
-
"BOLD" is supported by two streams of source with data source?
I created a data source with two streams of source - one for audio and one for video. During the init data source, the streams of the two sources are created. When dataSource.start () is called, my application call start() of the two source Brooks. When the player calls getStreams(), the soft returns an array containing the two water courses.
However, once started, the player only calls the first stream's read() method. In other words, the read() method second flow is never called.
Are several stream source by source of data supported by RIM, in particular on "BOLD"? I tested on v4.6.0.304 9000 "BOLD".
Thanks for your thoughts/aid.
It is not supported.
-
How to change the source of data in application with the deployment plan
Hello
JDev Version: 12.1.3
I can't change the source data with the deployment plan bc4j.
Any example on this requirement?
Thank you
Anil
Well, if you take a look at:
http://Biemond.blogspot.com/2009/04/using-WebLogic-deployment-plan-to.html
(one of the links in the link you get), you will see Edvin Biemond answwer:
"you must change the configuration of module of the Application so that it uses a data source. and in the deployment of applications disable deployment of jdbc connection.
Now you is enough to make the good source of data on each wls and deploy ears. »
The simplest (and probably the best) way is, as I told you, and you are also mentioned: open up JDeveloper and change declaratively and re-download the ears
-
Business Catalyst - dynamic dropdown of source of data used in page EDITING webapp?
I can create a dynamic drop-down list < option > when I want to CREATE webapp page element.
How to create a < option > dynamic drop-down list for a webapp CHANGE item?
-who shows me the value of the field if it already exists...
HERE IS THE GENERATED POINT BC
< label for = "CAT_Custom_21" > NomModele < / label >
< select name = "CAT_Custom_21" id = "CAT_Custom_21" class = "cat_dropdown" >
"< option value =" ">--please select--< / option >".
< option value = "10478478" > Allegro < / option >
< option value = "10478466" > Aurora < / option >
< option value = "10478490" > Beaknik < / option >
< option value = "10478506" > Bosa Nova < / option >
< option value = "12304768" > Boss Cruiser < / option >
etc...
HERA IS THE WORKAROUND MODULE RELEASE > > BUT it does not show the correct value in the edit page, so I have re - select he or she will enter an incorrect value
< label for = "CAT_Custom_21" > NomModele < / label >
< select name = "CAT_Custom_21" id = "CAT_Custom_21" class = "cat_dropdown" >
{% If CAT_Custom_21 <>"" %}
{module_webapps, 31182, a template="/tpl/option.tpl",,,true,500,,1}
{% endif %}
< / select >
and in the option.tpl file...
< option value = "{tag_itemid}" > {tag_name_nolink} < / option >
How can I either...To get the value of CAT_Custom_21 to show 'first' in the option - as we list the API to get the value. ? If Yes, then what?
B get the menu drop down have the correct value (if it is already running)... is there something that I am missing?
It seems that it would be something that is obvious and doable... as anyone who wishes to make a webapp that change information would need it to be DYNAMIC.
If not, go and manually change the html list whenever there is an update of info are ridiculous.
If I'm missing the thing most obvious, please let me know.
I'm pretty new to this and I've learned a boatload, but I usually find myself missing the smallest and simplest answers.
Thanks for your help!
Dean
OH, BTW. I try this using liquid. but I imagine that the same problem exists. Because is made to the 'list' up 'after' the html element is displayed...
unless liquid actually get produced first? is this the case?
Even if this is not the case, is it possible to create the complete list of options in a field to retain wholesale and THEN have to create the whole form field in a liquid?
This seems a lot more work than necessary... anyway. Thanks again.
THANKS TO
who did this answered in another post for me... What is the best way to get a drop-down list in a web form application that can only contain items sent from a specific domain user?
I meet here in case other people to search answer.
creation of the FIRST option and the field selected.
picking out the value of the source of data by using this code.
Thank you Philippe.
as I thought. It was something easy, and I just missed him...
tag_datasource_id
Is a useful super tag
-
Removal of sources of data not used in Web Analytics
I created the report with charts and spreadsheets and it created its data source object that is associated with Web Analytics.
But the cube associated with the data sources is known by my administration. for older data sources are corrupt.
How can I remove the old data source objects in WA?
I am able to create new sources of data to the same report and use it, but when I open the report every time, it asks me to log in to post old data sources.
Any suggestion is appreciated. I have goggled for this information I'm out of luck. I export and import report if I was aware of the changes in my cube.
Thanks and greetings
VIC.Hello Vic,
-> Open the report, switch to Design view
-> Double click the report.
->, Select the desired data source
-> Press Delete on your keyboardHe asks, is it safe to remove
-> Click ok
Kind regards
TOTA- -
Can you collect audit from sources of data non-base data?
Can you collect audit from sources of data non-base data? For example, security related events in Windows and/or Linux?In the current production version of the Audit Vault, you can only collect audit data from Oracle, Sybase, SQL Server and DB2 LUW databases.
-
Try to read the attributes of an XML feed, having problems
Here is the XML file that I use (hoopstest.xml):
< bbcareer version = "1.1.0" date = "2007, July 3" >
< player name = 'John Doe' >
< season year = "2004-05" gp = '22' gs = '0': = '343' minavg = "15.6" tp = "134" ptsavg = "6.1".
FGM = fga "49" = '107' fgpct = '.458' fgm3 = '5' fga3 = '16' fg3pct = ".313" = "31" = "47" ftpct FTA ftm = ".660.
Oreb = '20' suspicious = "42" treb = '62' rebavg = "2.82" pf = dq '37' = '0' ast = "11" wanting = blk = '29' '12' stl '8' = >
< Tester > 1 < / Tester >
< / season >
< season year = "2005-06" gp = "26" gs = "15" min = "582" minavg = "22.4" tp = "274" ptsavg = "10.5."
FGM = fga "107" = '184' fgpct = '.582' fgm3 = '5' fga3 = fg3pct "19" = '.263' ftm '55' ALE '82' ftpct = = = '.671.
Oreb = suspicious "49" = "83" treb = "132" rebavg "5.08" pf = dq = "56" = "2" ast = "25" will = blk '49' = '31' stl '23' = >
< Tester > 2 < / Tester >
< / season >
< season year = "2006-07" gp = "25" gs = "25" min = "768" minavg = "30.7" tp = '490' ptsavg = '19.6.
FGM = "179" fga = "314" fgpct = '.570' fgm3 = '12' fga3 = '31' fg3pct = '.387' ftm '120' ALE '163' ftpct = = = '.736.
Oreb = suspicious "89" = "106" treb = '195' rebavg = "7.80" pf = dq '74' = '3' ast = "37" wanting = blk = '72' '40' stl '26' = >
< Tester > 3 < / Tester >
< / season >
< season year = gp 'TOTAL' = '73' gs = "40" min = "1693" minavg = "23.2" tp = ptsavg '898' = '12.3 ".
FGM = fga "335" = "605" fgpct = '.554' fgm3 = fga3 "22" = "66" fg3pct = ftm ".333" = "206" ALE = "292" ftpct = ".705.
Oreb = suspicious "158" = "231" treb = "389" rebavg = "5.33" pf = dq '167' = '5' ast = '73' wanting = blk = '150' stl "83" = "57" > < Tester > 4 < / Tester >
< / season >
< / player >
< / bbcareer >
The tester is just if I can check for the number of records is read.
In my app below, 4 Tester records appear, but the attributes are not. No idea why? TIA.
<? XML version = "1.0" encoding = "utf-8"? >
"" < mx:Application xmlns:mx = ' http://www.adobe.com/2006/mxml ' layout = "absolute".
creationComplete = "feedRequest.send ()" >
"" < mx:HTTPService id = "feedRequest" url = " http://www.stats.com/hoopstest.xml" useProxy = "false" / >
< mx:Panel x = "10" y = "10" width = "475" height = "400" layout = "absolute" title = "Player stats" >
< mx:DataGrid = "20" x = "20" id = "dgPosts" width = "400".
dataProvider = "{feedRequest.lastResult.bbcareer.player.season}" >
< mx:columns >
< mx:DataGridColumn headerText = "Test" dataField = "Tester" / >
< mx:DataGridColumn headerText = 'year' dataField="@year"/ >
< mx:DataGridColumn headerText = "gp" dataField="@gp"/ >
< mx:DataGridColumn headerText = "Min" dataField="@min"/ >
< / mx:columns >
< / mx:DataGrid >
< / mx:Panel >
< / mx:Application >change the dataProvider to
dataProvider = "{feedRequest.lastResult.player.season}" "
When you get back XML you don't have to make reference to the root node.
-
connect to the source of data in OWB
Hello
I don't want to connect to a database as a source of data in OWB 11g,
I use a user name and password to connect to the DB, the user has no objects but I can see other patterns and their objects via tools like developer sql with this user.
How to connect to a specific schema in my DB, and import the data source with this user/pass via OWB?
concerning
JuditeHi judite
The definition of location in OWB has a user name and password that is used for authentication and a schema that is used to reference objects of. You can use X as the user authentication schema and the schema Y for the reference schema, then objects of there will be imported.
See you soon
David -
What is the source of data 11.1.2?
Hello
What is the source of data 11.1.2? without the help of ODBC drivers how to connect to the back-end database. I need the flow for that.
Thank you
PCHello
I answered a similar question here > what is the data source 9.3.1? Is OLEDB supports ODBC
If you didn't even answer or bother to mark it.Data source connections are driven by JDBC to communicate with the repository database and a JAVA API to communicate with essbase.
Ok?
See you soon
John
http://John-Goodwin.blogspot.com/ -
What is the source of data 9.3.1? Is OLEDB supports ODBC
Please someone make me know
What is the source of data hyperion 9.3.1
and is OLE DB takes ODBC support
In hyperion 11 the data source is through ODBC.
Thank youHello
The data source in 9.3 / 11 is stored in the tables of planning system database
In 9.3 it is implemented through the configuration utility, in 11 it's done directly through planning web.The data source may contain connection details standards of planning and essbase application.
The data source connects to the repository planning through JDBC and essbase using a JAVA API.Ok?
See you soon
John
http://John-Goodwin.blogspot.com/ -
Several Sources of data in a single logical table
I'm new to OBIEE and I encountered a problem. I apologize if this information is in the forum somewhere, but I've searched and can't find it.
My situation is that I would have a logical table that contains multiple sources of data, which all have the same columns. I already have the configuration of session variables to differentiate the security of the user through the variable for a specific column and a session variable to another column that determines the association of the user with the data source to which they belong to. This security works well when the data sources are separated in the business model and mapping party, but the question that arises is that the user cannot share reports when data sources are separated in the BM & M.
I slipped and fell on a table in the physical model to the BM & M, I dragged then the second source of data (with the same meta data structure) on the "Sources" folder in the first data source table into the BM & M. on the content tab or each table data source, I've defined as WHERE clause where VALUEOF (NQ_SESSION. ("" SCHOOL session variable ") is my filter in the column and VALUE (NQ_SESSION. ("" GROUP filter ') is my critical data source:
sandbox. ». SANDBOX. OBIEE_CROSS_ENROLLMENTS. HOME_SCHOOL = VALUEOF (NQ_SESSION. ("" SCHOOL ") AND sandbox. » ». SANDBOX. OBIEE_CROSS_ENROLLMENTS. DATA_SOURCE = VALUEOF (NQ_SESSION. "" GROUP")"
Unfortunately that returns the values in the BI responses for the first drag and drop material table in the BM & M layer and not the second drug physical table in the folder 'Sources '. I also tried to create a new logical table and drag two tables in the "Sources" folder without success. I have experimented with the Fragmentation in the tab "Content" of the separate logical tables, checking the "this source must be combined with other sources at this level", which gives me an error in the responses of BI that there is no such thing as a column which has really.
What might be missing? Thank you in advance to those who respond.
Thank you
KyleDo not check the box "this source must be combined with other sources at this level", otherwise, it will always take the first logical table source. If you need to get rid of the error message. Are you sure that you have mapped all the columns on every logical table source?
Maybe this article helps you to:
http://www.rittmanmead.com/2007/06/19/OBIEE-data-modeling-tips-2-fragmentation/Kind regards
Stijn
Maybe you are looking for
-
Can not verify the account to download the free app Always get "Session Timed Out" message.
Can not verify the account to download for free enter or just about always "Session Timed Out" message.
-
best free photo editing tool?
What is the best free photo editing tool of basis for a macbook?
-
There was a recent update, and now when my cursor rests almost anywhere on the Thunderbird window, big yellow notes pop up, describing everything that I'm hovering above. I want to disable this feature. I wish I could get a capture screen, but every
-
Bought one from Best Buy Apple Watch that had been returned. Original purchaser cannot be contacted. The phone is synchronized to their account, how can I sync to mine?
-
Change of location on the weather Gadget?
The weather Gadget on my computor will not change the location of the location of what it was on... to the location of my hometown, no matter how many times I try. What should I do to get my hometown on the weather gadget location?