Yogesh Khandelwal wrote: ..... but not getting how do i match both..
[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
Yogesh Khandelwal wrote:I know which xml elements match with which rows, but i don't want to do any hard coding..i am having so many database table and want to write a generic program for all.
[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
Sagar Rohankar wrote:
One doubt, are you cross checking the same values which you just inserted into db from XML?
Yogesh Khandelwal wrote:
Sagar Rohankar wrote:
One doubt, are you cross checking the same values which you just inserted into db from XML?
Yeah i am just cross checking the same values which i have inserted into Db from XML..
Yogesh Khandelwal wrote:
what i think is..i can maintain one properties file and map that properties file with XML and with read the properties file and match it with DB..but this will not be a feasible solution for this....please do help me regarding this:)
[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
Sagar Rohankar wrote:
and on table name
Now we to take "table_name" extracted from the root element of xml, here it is <cfb-schedule-document>..
Yogesh Khandelwal wrote:we are having lots of XML file so XML file is also gonna change..so what i have to do is..just read the XML file and in which attribute we have data,compare it with database table..so can we have a sql query which can read the XML attribute at run time...
[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
Yogesh Khandelwal wrote:
Problem is how do we get the data from XML..
[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
Sagar Rohankar wrote:
Parse it.
Yogesh Khandelwal wrote:
Sagar Rohankar wrote:
Parse it.
Sir,i'm able to parse the XML but not getting how do i make sql query by getting the data from XML element and tag.Is there any get/set method for this..
[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
Yogesh Khandelwal wrote:Isn't this hardcode?
Yogesh Khandelwal wrote:
also able to fetch the column name and data from database table but now got stuck with mapping with the MXL tags and attribute.How can i map it with XML tag and attributes.
NodeName: season, NodeValue:
AttributeName: season, attributeValue: 2007
[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
Sagar Rohankar wrote:
What is mapping between tags and attribute, as I can see you can extract the all the tags with there respective attribute.. So you can write a bunch of if..else statement to get the value , for example "season"..
NodeName: season, NodeValue:
AttributeName: season, attributeValue: 2007
And don't call me Sir, we Ranchers are friends here
To get a wish, you need a genie. To get a genie, you need a lamp. To get a lamp, you need a tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
|