mkanna wrote:
is there any google webservice available to get the bulk geocoding?
Welcome to CodeProject.com :beer: Looks like you took a wrong turn in a router somewhere because I think you are looking for code.Google.com[^]
led mike
Check out the XmlSerializer class.
--Mike-- Visual C++ MVP :cool: LINKS~! CP SearchBar v3.0 | C++ Forum FAQ "That's what's great about doing user interface work. No matter what you do, people will say that what you did was idiotic." -- Raymond Chen
Since you voted my post down I guess that means you don't believe that as a developer you should learn the technology you need to work with. Ok, good luck.
led mike
This is not XML, therefore your question does not belong in this forum. Do you know why ? Do you know how XML is defined ? 1 - it has one root element 2 - it is case sensitive.
Christian Graus No longer a Microsoft MVP, but still happy to answer your questions.
Don't repost your question. You were given reasonable answers on your first post.
debobrata wrote:
the source code I got for the XML Notepad from the Codeplex.com is not building.
The project you describe is far to ambitious for a developer that can't even compile an open source project.
led mike
H.Subbulakshmi wrote:
i want to get the attribute names from the xml using xslt
H.Subbulakshmi wrote:
Now i want to get the value select equal to true or false..
I don't know what that means but the following XSLT will render the names of all the attributes that have the value true
<xsl:for-each select="//*/@*[.='true']">
<p>
<xsl:value-of select="name()"/>
</p>
</xsl:for-each>
led mike
the source code I got for the XML Notepad from the Codeplex.com is not building. Can you please zip and send me the entire source code for the XML Notepad in my email id which is debobrata.bose@gmail.com
Thanks and Regards, Deb
HI Run this in a console app and change the connection string!
using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using System.Data.SqlClient;
namespace MenuGen
{
class Program
{
public static string Crlf = System.Environment.NewLine;
private class LeftMenuNode
{
public int NodeID = 0;
public string ParentNodeID = string.Empty;
public int FK\_LangID = 0;
public string Text = string.Empty;
public bool LastLevel = false;
public bool LinkLevel = false;
public List SubMenus;
public LeftMenuNode()
{
SubMenus = new List();
}
}
//get the menu data from the database
static void GetDBMenus(ref DataSet ds)
{
string sql = "SELECT \* FROM LeftMenu";
SqlCommand cmd = new SqlCommand(sql, new SqlConnection(@"data source=\*\*\*;initial catalog=\*\*\*;Integrated Security=True"));
cmd.CommandType = CommandType.Text;
SqlDataAdapter adapter = new SqlDataAdapter(cmd);
ds.Clear();
using (adapter)
{
adapter.Fill(ds);
}
}
static void Main(string\[\] args)
{
DataSet dsMenus = new DataSet("Menu");
//get the list of menus
GetDBMenus(ref dsMenus);
//make sure we have a table to work with
if (dsMenus.Tables.Count == 0)
return;
//kick off the menu gen process
BuilMenuXML(ref dsMenus);
//now that we've buld a class structure we can work with
//all we have to do now if
}
static void BuilMenuXML(ref DataSet ds)
{
int tab = 0;
string xml = string.Empty;
xml = "
"
+ Crlf;
//populate our custom menu class
List menus = new List();
foreach (DataRowView row in ds.Tables\[0\].DefaultView)
{
LeftMenuNode menuItem = new LeftMenuNode();
menuItem.NodeID = Convert.ToInt32(row\["NodeID"\]);
menuItem.ParentNodeID = Convert.ToString(row\["ParentNodeID"\] == DBNull.Value ? "" : row\["ParentNodeID"\]);
menuItem.Text = Convert.ToString(row\["Text"\]);