6,049 Topics
![]() | |
how to access xml resource file in C# wpf application? i have made xml file a resource file but i cant access it . here is a code: private static string MessageExtract(string tagName) { XmlDocument messageTags = new XmlDocument(); messageTags.Load(@"//resources//Messages.xml");//this dont work XmlElement messageRoot= (XmlElement)messageTags.GetElementsByTagName(tagName)[0]; return messageRoot.GetElementsByTagName(AppManager.GetCurrentLanguage())[0].InnerText; } | |
I could not find the correct heading for my question but I just want to have my site content as text file or XML file and I just want to create one tamplate page and it is loading all content from a file or xml file. In this way I … | |
Hi there, I am a PHP developer and know little of JS - in my current project I have hit a few probs as I know I need to incoporate some JS. After some help already from this community I have almost completed the JS part of one page that … | |
Hi All, I am trying to create an XML file that saves email addresses and files. This would then be read by another application and will send the emails and attach the files to the email. I am using the OpenFileDialog to get the file path and name. But when … | |
Hello, The title of this thread perhaps does not explain my problem correctly. Actually i am developing a financial software for a company.The software is similar to a banking system. The software is being developed using VB 2008 and SQL Server 2008.The company has its branches located at different locations. … | |
Hello Everyone, i am wanting to build a leaderboard for my site for the members gamerscore on Xbox LIVE. I know how to fech from a MySQL database, etc but this is the hard bit. So the users table in MySQL contains their gamertag and i want to pull that … | |
Hi, I have a few SOAP+WSDL examples and all work fine. All have this bit in all my WSDL files: [CODE]<definitions name="MyExample" targetNamespace="http://localhost/myapache/friends.wsdl" xmlns:tns="http://localhost/myapache/friends.wsdl" [COLOR="Red"]xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"[/COLOR] >[/CODE] I am wondering if I can host these 3 links (last 3 with red coloured) on my local server as well. I … | |
Hi, I do not know how to pass parameters using soapclient with call method in PHP. ---------------------------------------------------------------------- [B]Description:[/B] This command is used to authenticate the user. Most of the biz functions require authentication in order to function. If the session is already logged in then a subsequent successful login will … | |
Hi all Firstly may i say i have found your forums to be of great help, but I have a task and not entirely sure if its possible I have a shoutcast radio that i have displaying on my shoutbox every 3.5 mins (auto refresh) but someone said what i … | |
Hi, I have a WPF program written in C# that updates an Xml file from a textbox when a submit button is clicked. The code works as I can tell that the xml file is updated after the execution of the program, however I would like the update in real … | |
hello just started web development. does anyone know anything about aptana studio, i want to change the browser from fire fox to chrome but i can't seem to locate aptana source control is to change the xml ![]() | |
Hi, I want to send parameters to wsdl (xml file). I give sample code below. --------------- [B]createsession.php[/B] ------------------------------------------------ <?php session_start(); require_once('lib/nusoap.php'); $client = new soapclientw('https://www.domin.com/services/umarketsc?wsdl', true); $client->soap_defencoding = 'UTF-8'; $client->decode_utf8 = false; $sessionResult = $client->call('createsession'); // [B]No parameters[/B] echo 'Session ID : '. $sessionResult['sessionid']; ?> ------------ [B]End code[/B] --------------------------------------------------------------- [B]Sample … | |
Response: ---------- [CODE]<?xml version="1.0" ?> <S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"> <S:Body> <ns3:createsessionResponse xmlns="http://www.utiba.com/delirium/ws/TypedQuery" xmlns:ns2="http://www.utiba.com/delirium/ws/Misc" xmlns:ns3="urn:UMARKETSCWS" xmlns:ns4="http://www.utiba.com/delirium/ws/StdQuery"> <ns3:createsessionReturn> <ns3:sessionid>6DL42ED0GG67MADDTD96</ns3:sessionid> <ns3:result>0</ns3:result> <ns3:result_namespace>session</ns3:result_namespace> <ns3:createsessionReturn> <ns3:createsessionResponse> <S:Body> <S:Envelope>[/CODE] ------------------------- How can i get xmlns Attribute Values using PHP. [ICODE] <ns3:sessionid>6DL42ED0GG67MADDTD96</ns3:sessionid>[/ICODE] I want to take [ICODE]<ns3:sessionid>[/ICODE] value [ICODE][6DL42ED0GG67MADDTD96][/ICODE]. Please reply asap. very urgent. Thanks William | |
for example: the html file is as fllows: <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <title>HTML form </title> </head> </html> then after the htmlparser the xml file is as fllows: <?xml version="1.0" encoding="utf-8" ?> - <pagestructure> - <pageNodeList> - <pageNode id="0" name="" tagName="html" parentNodeId="-1"> <nodeValue /> </pageNode> - <pageNode id="1" … | |
Hi All, New here and very new to .Net. I am currently trying to learn about consuming web services within .net and am having trouble with the following example. I have the WSDL file to contact a vehicle look up web service which based on the selection in a drop … | |
hay gays i want to retrieve xml data from three table stored in mysql. i used the below code it works fine but first it retrieve one record from first table than iterate to second table and print the whole table and then iterate to third table and print the … | |
Hello i want create gui for aria2c( internet download manager ) with java for doing this aria2c has built in xmlrpc. i use xmlRpc to create gui for aria2c. in aria2c support site there is a example code for python programming language that uses xmlrpc [CODE]>>> import xmlrpclib >>> s … | |
Hello, To start off, this is not a homework related question, just something I've run into on a project I'm working on for myself for fun. Basically, I have a screen whose controls are dynamically created (I create one for each root entry in an xml file) so that the … | |
I need to select attributes from my XML file and output the info into a table using XSL, need to output day name, instructor and class being taught, the problem is that I have multiple attirubtes within each group. my XML: <?xml version="1.0"?> <?xml-stylesheet type="text/xsl" href="g4.xsl"?> <schedule> <student_info> Vitaliy Berkovich … | |
Hello guys! I am new to web development in general and C# particularly. Recently I have been given a project to create a simple web application, using C# and .NET. The application is divided into three parts: Data Access Layer with an XML file attached to it, the Business Layer … | |
hi all, please can u help me, it's urgent and i'm working on it about 5 days without result i have a xml file: [CODE] - <Menus> - <UsersMenu> <ID>1</ID> <Text>Button1</Text> - <UsersMenu> <ID>2</ID> <Text>B1I1</Text> <link>template.aspx</link> <parent>1</parent> </UsersMenu> - <UsersMenu> <ID>3</ID> <Text>B1I2</Text> <parent>1</parent> - <UsersMenu> <ID>6</ID> <Text>B1I2I1</Text> <link>template.aspx</link> <parent>3</parent> </UsersMenu> … | |
Hello mates i am having a problem designing a new DTD over the existing one found at: [url]http://dblp.uni-trier.de/xml/dblp.dtd[/url] This is the DTD over their original XML file. I used a SAX parser to store specific data from the original file into my relational database. Now i have to do the … | |
hi, never done this before and wondered if anyone could point me to a fairly simple step by step guide on how to add an rss feed from a site into our own web site? many thanks | |
Hi I'm trying to create a choosing statement by using a link ie [CODE] if(Link == google) run something else (Link == yahoo) [/CODE] Meaning that if the declared link is google it will do something else if it will load yahoo Here's what i'm thinking how the code is … | |
I have a query which generates an xml file from data collected. There are 2 columns in the data (reason, TotTime) but they are joined together into one column using the concat command. Currently the results are ordered by reason, but I want to limit my results to only the … | |
Often times I see a SOAP document (blog or example) that references the WSDL from the client side as: [url]http://yourUserid:yourPassword@example.com/foobar.wsdl[/url] as in this example:[code] $client = new SoapClient("https://yourLogin:yourPassword@foo.com/bar.wsdl", array( "login" => "yourLogin", "password" => "yourPassword", "trace" => 1, "exceptions" => 0));[/code] How are they processing the userid/password and managing the … | |
[CODE] <RecentGames> <XboxUserGameInfo> <Game> <Name>Plants vs. Zombies</Name> <TotalAchievements>12</TotalAchievements> <TotalGamerScore>200</TotalGamerScore> </Game> <LastPlayed>2010-11-08T04:01:33+00:00</LastPlayed> <Achievements>1</Achievements> <GamerScore>10</GamerScore> </XboxUserGameInfo> <XboxUserGameInfo> <Game> <Name>Kinect Sports</Name> <TotalAchievements>50</TotalAchievements> <TotalGamerScore>1000</TotalGamerScore> </Game> <LastPlayed>2010-11-08T01:46:06+00:00</LastPlayed> <Achievements>0</Achievements> <GamerScore>0</GamerScore> </XboxUserGameInfo> <XboxUserGameInfo> <Game> <Name>Halo: Reach</Name> <TotalAchievements>49</TotalAchievements> <TotalGamerScore>1000</TotalGamerScore> </Game> <LastPlayed>2010-11-07T18:37:13+00:00</LastPlayed> <Achievements>23</Achievements> <GamerScore>245</GamerScore> </XboxUserGameInfo> </RecentGames> [/CODE] How do I read the different Information of each node even though … | |
Ok, here we go again. I am trying to use sessions to keep track of how many times a user guesses at a number. All of the code works fine [I]except[/I] for the counter at the top. I am not aware of how to start a counting session and get … | |
How can I listen for new connection as well as lisstening for ongoing communication with TCPIP? I have the following code which properly listen for new connections, sends and receive data. However, if the client application sends new data from an existing connection I don't see anything. [CODE] using System; … | |
Hello everyone, I am a beginning programmer using XSLT. I work at a company wich has a database witch generates catalogs, exporting XSL and XML to FOP.(wich converts to PDF). the program runs on apache and is build in delphi. That being said, I was wondering if it is possible … | |
Hi! I have simple web application called App that is secured with Windows Authentication. I have set identity impersonate to true in web.config. There is only one page (Default.aspx) in App directory. When user enters the site ex.: [url]http://localhost/App[/url] the login window pops up. When user clicks Cancel, IIS redirects … ![]() | |
I have an XML-form (Silverlight application) with validations in C#. My XML-code works fine, but I'm having problems with the C# part. For every textbox I first check that the textbox is not empty (this works fine), and if it's not empty I check that the input is correct. My … | |
i am creating a web-album for my site. what i am trying to do, is on the homepage, if a user clicks on a specific thumbnail, it will got to the album using a #image[number] tag. i have this code so far for changing the images based on the tag … | |
Hiii all.... I've been working on a project.. i have a problem when creating the menu of the website. The menu i'v designed is a sliding menu..bt its not the center of attraction. my problem is i wanna align the menu to the center of the page.. here i'm givin … | |
Dear All, I am currently working on an assignment. And I wanted to implement a bit ajax in it. I've got my html page, and on an onclick event the ajax code is going to populate a table and place it in my html page. The php file is working … | |
[CODE]using System.Data; using System.Linq; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.HtmlControls; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Xml.Linq; using System.Net; using System.Net.Mail; using System.Web.Mail; public partial class mail : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } protected void SendMail() { var fromAddress = new MailAddress("user@gmail.com", txtName.Text); var … | |
Greetings Good People of DaniWeb, I have been on a search for a solution for my problem for weeks and weeks now. My search has brought me into this wonderful community in which I hope to find help. I will be doing my part in the community by providing help … | |
Hi, I have been struggling with Valgrind's error in this function: [CODE]void parse_date(char *date_out) { char *date_in = __DATE__; int month = 0, day = 0; char *str_month = (char*) malloc(sizeof(char) * 4); char *str_day = (char*) malloc(sizeof(char) * 3); /* check mallocs */ if ((str_day == NULL) || (str_month … | |
I have to display a <div> data in a loop in XSL.But the below code is not working. Please help. <script> i=3; for(i=0;i <xsl:text disable-output-escaping="yes"><</xsl:text> count;i++) { </script> div style="float:left;background-color:#D3D3D3;width:100">test</div> <script> } </script> | |
I have taught myself the basics of PHP (with the help of this awesome forum) I have all the basic (most common stuff on the web) stuff down fairly well. Now I am trying to figure out the best thing to learn next for web design and development. I was … | |
////////////////////////////////////////////////////////////////////////////// <!-- To change this template, choose Tools | Templates and open the template in the editor. --> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <script type="text/javascript"> // 3 constructor functions of Person, Book, and Library function Person(fname,lname) { this.firstName = fname; this.lastName … | |
Another total Nuby collection. I have an xml file from which I wish to eliminate all elements that have any attributes at all. All I really need to do is eliminate the contents of the attribute. How do I do this? My plan is to start with <xsl:template match="Contains an … | |
Hi, am currently trying to create a social networking website but I am having problem with the AJAX part... All i want to do is have a form to both insert the data in my database and to add this data dynamically to a table below it, thus each time … | |
I'm sending out AJAX request for a XML file to plot a chart. The problem is everytime the response comes back, the chart refresh itself, even if the XML is exactly the same. I would like to use Javascript to check the content of the reponse XML with the cached … | |
i have used the XMLEncoder to put my list of clients details into but am wondering how i go about retrieving information from the xml files say for instance if i wanted to show all clients who were entered on a specific date? so far i have. public void dxml(){ … | |
I am trying to Subclass ElementTree with an abstract method. I have read in several forums that ElementTree is actually both a module and a class. I have been unable to get the subclassing to work. [CODE]from abc import ABCMeta, abstractmethod from xml.etree.ElementTree import ElementTree, Element, tostring class A(ElementTree): __metaclass__ … | |
Hi, I have an xml like this <agency count="133">GOV.NIH.XYZ.465.56</agency> <agency count="129">GOV.NIH.ABC.245.21</agency> <agency count="216">GOV.NIH.NCI.456.23</agency> <agency count="48">GOV.USDA.4412.345.08</agency> <agency count="46">GOV.USDA.1411.345.00</agency> <agency count="51">GOV.USDA.5512.231.05</agency> <agency count="42">GOV.USDA.1411.16.10</agency> <agency count="39">GOV.USDA.5512.16.12</agency> <agency count="32">GOV.USDA.1411.17.03</agency> <agency count="60">GOV.FDA.4412.33.56</agency> <agency count="59">GOV.FDA.4410.45.87</agency> <agency count="55">GOV.FDA.1411.56.213</agency> <agency count="60">GOV.FDA.1412.86.45</agency> <agency count="55">GOV.FDA.1431.32.45</agency> I need to sort them based on the coutn for each agency . The results … | |
Hi! Is it possible to retrieve XML data and input it to mysql database using JSP? If so, how will I do it? I'm new to java by the way. Thanks in advance to those who will reply! | |
This error is a big pain, simply because I cannot test solutions redily. On my build machine everything works fine, however having make a release and installed it on a different machine (in a differant building) things start to break because of the following exception: [B] System.Net.WebException : The underlying … | |
Google do have cinema listings but they dont have an api available for [url]http://www.google.com/movies[/url] even though the search itself works. when using a standard search api google ommits the cinema data which you can usually do be performing the search: "movies, local area" so has anyone got a workaround for … |
The End.