473,326 Members | 2,124 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

mutiple xml feeds

this is one feed

- <category name="Television" timeGenerated="2007-05-28T23:21:13" >
- <event name="Channel1" eventid="573512.20" date="20090701" time="1000" meeting="" >
- <televisiontype name=" Outright" inrunning="0">
<TV name="Videocon" id="16007131.20" price="$222" />
<TV name="Philips" id="16007132.20" price="$322" />
<TV name="Western" id="16007133.20" price="$121" />
</televisiontype>
</event>


</category>

this is another XML feed

<?xml version="1.0" encoding="UTF-8" ?><!DOCTYPE abcd SYSTEM "abcd.dtd"><abcd version="6.0" created="2007-05-29 06:15:26" lastMsgId="3080173">
<response>
<returnStatus>
<code>100</code>
<message>success</message>
</returnStatus>
<respQueryApplyXSLT>


<class>
<id>9</id>
<name>Television</name>

<type>
<id>4020</id>
<name>Videocon</name>

<event>
<id>2890</id>
<name>channel1</name>
<date>2007-06-07</date>
<time>09:30:00</time>

<market>
<id>11819</id>
<name>Asia</name>
<eachway>
<reduction>/</reduction>
<place/>
</eachway>
<outcome>
<name>Speaker</name>
<price>$2000</price>
</outcome>
</type>
<type>
<id>4020</id>
<name>Philips</name>

<event>
<id>2890</id>
<name>channel1</name>
<date>2007-06-07</date>
<time>09:30:00</time>

<market>
<id>11819</id>
<name>Africa</name>
<eachway>
<reduction>/</reduction>
<place/>
</eachway>
<outcome>
<name>Speaker</name>
<price>$2100</price>
</outcome>
</type>
</class>
</respQueryApplyXSLT>
</response>
</abcd>



now i have database fields like



categoryname

eventname

Typename

Price



from the first set of xml feeds i have done like



xmldocument xmldoc=new xmldocument();

xmldoc.LoadXML(URL);

Xmlnode nevents=xmldoc.Childnodes[0];

categoryname=nevents.attributes["name"];

foreach(xmlnode nevent in nevents)

{

eventname=?

foreach(xmlnode type in nevent.childnodes)

{

typename=?

foreach(Xmlnode nprice in type)

{

price=?

}

}

}



now taking a look at the second xml feed the contents are same like

i need to match the price alone

for example i need to load only the price for videocon from the second feed matching the first feed

i dont know how to proceed on this

plz help me on this regard

Rama
May 29 '07 #1
0 757

Sign in to post your reply or Sign up for a free account.

Similar topics

10
by: Richard | last post by:
Here is the program problem: Month with 30 days have 720 hours, and month with 31 days have 744 hours. February, with 28 days, has 672 hours. Enhance the input validation of the program code...
0
by: deepak | last post by:
i have set multiple selection property in bith listboxes(html control) to true. i have taken 2 buttons(html control) say Button1,Button2.now i want to add mutiple selected items to another listbox...
0
by: saravana | last post by:
I have to display the mutiple xml filename path in treeview control using c#. net some thing like this In treeview control....... ========= =C:\\a.xml=
7
by: shanmugamit | last post by:
hi, i using mutiple check box but i didn't get all value... as $res=mysql_query("select * from cie where des='Resource Pipeline Associate' order by name"); $j=0;...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.