Java |
i can read Xml file including with that codes that i created but not from website..should i do something else to read from website..here is the structure of the web site xml file http://img228.imageshack.us/f/22741667.jpg/
Java |
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
ShankeyRank #972 · 2.1K reputationPosted Nov 30, 2010, 4:19 AM EST
From web site are you able to get your file. If this is not the case then you can use
Server.MapPath Method to locate the file.
Erdinc Kolukisa109 reputationPosted Nov 30, 2010, 5:14 AM EST
Suthish NairRank #92 · 22.8K reputationPosted Nov 30, 2010, 5:27 AM EST
Sam HobbsRank #107 · 20.5K reputationPosted Nov 30, 2010, 3:14 PM EST
Erdinc Kolukisa109 reputationPosted Nov 30, 2010, 9:48 PM EST
XmlTextReader xtr = new XmlTextReader("Dosya3.Xml");
while (xtr.Read())
{
XmlNodeType nodeType = xtr.NodeType;
switch (nodeType)
{
case XmlNodeType.Element:
Console.WriteLine("Element name is : {0}", xtr.Name);
if (xtr.HasAttributes)
{
for (int i = 0; i < xtr.AttributeCount; i++)
{
xtr.MoveToAttribute(i);
Console.WriteLine("Attribute is :{0} with value : {1}", xtr.Name, xtr.Value);
}
}
break;
case XmlNodeType.Text :
Console.WriteLine("Value is : {0}", xtr.Value);
break;
default:
break;
}
}
CrishRank #1,487 · 1.1K reputationPosted Dec 1, 2010, 9:09 PM EST
Its good question.I think i have its solution if you want to more detail about it just check this below link.
http://weblogs.asp.net/scottgu/archive/2007/01/11/tip-trick-how-to-upload-a-sql-file-to-a-hoster-and-execute-it-to-deploy-a-sql-database.aspx