461 Posted Topics
| |
Re: That was so painstaking to read with the formatting. The answers could also be found yourself by using google. ------------ > What kind of component in an XML file is written like this: <?xml version="1.0"?> >Select one: >a. an empty element >b. none of the other cases - this is … | |
More out of interest really. How does the reply box work out whether or not your incorrectly formatting a code post and what are the most common errors people encounter? As I've written a rediculously long reply to something and it's being flagged as incorrectly code formed yet I see … | |
Re: You would have to use the data returned from the database while writing with the XML writer. What exactly is the database returning to you? It will allow us to give a better explanation of how to implement this. Ie. Is it massive amounts of data or small individual pieces? | |
Re: Been a long time since I touched VB.Net, A quick google showed the following as a way to do it, however I have **not** confirmed this myself. TabPage.Controls.Find("ControlName", true) Where the true options also searches child controls. | |
Re: Following on from what Rev. Jim said, [HomeAndLearn](http://www.homeandlearn.co.uk/net/vbnet.html) is a great site for learning the basics of VB.Net and also includes database connections. | |
Re: I would suggest providing a copy of the code with this in. What your currently doing is correct, and so therefore the surrounding code my shed some light on things. | |
Re: The provided XSLT actually runs cleanly for me in VS2010 XSLT debugging. However, you are using XSLT like it is a programatical language which it is not, I used to make this mistake also. Below I have provided a remake of it which removes the programatical style, as there was … | |
Re: Sounds quite like a homework assignment to me. *For others reading:* It is also linked to this thread: http://www.daniweb.com/software-development/csharp/threads/430061/chow-to-codefor-accessing-same-file-names.-if-there-are-2-folders-and-th What have you done so far yourself? | |
Re: > Anyone who has ever read parts or all of the Bible or Quran should have known that 2:6-7 means. I'm flabbergasted. I know what they mean and I have no association to religon whatsoever... I now question what these people actually know when they argue points. Been following this … | |
Re: Can you provide a sample output? With one node matching and one without, so I can see what needs doing exactly. Just needs clarifying in my head :) | |
Re: The provided code runs fine on my computer, can we see the actual? | |
Re: Going on naming patterns and activity from the real time feed `queenbaby` will be the next to be removed or to watch. | |
So me and a colleague at work are trying to decide upon a mini-project to do, simply to see how differently we would code it. Has anyone got a good resource for such ideas, or even have some themselves, that are semi-challenging and do-able in about a day? Cheers, | |
Re: > datetimepicker2.value=DateTimePicker1.Value.AddDays(comboBox1.SelectedValue) I believe the `.SelectedValue` would need to be converted from string to int first for that line to work? | |
After a recent occurance this suggestion arises from me. After writing a fair amount of text I managed to clip the back button on my mouse and thus lose everything written. It would be quite convienient to have an 'Are you sure you wish to leave the page?' confirmation when … | |
Re: I suggest you re-think your post giving far more information and showing what you've done so far, also what issues you have, and what you need help with. Nobody is going to write you one from scratch, especially when showing little to no effort on your behalf. | |
Re: I presume CSS can do this as it looks like a web application, however my CSS is awful. Doing it with CSS would probably also require the rest to be done in it also which could just cause more problems. Someone more experienced in web development can probably elaborate further. … | |
Re: Move your methods for checking files etc to the `splashScreen_Shown` event. This is run once the form appears on screen EDIT:- The reason all the checks are currently done before the splashscreen appears are because it is in the `splashScreen_Load` event which will fire before the form is visible as … | |
Re: My first question is what causes the requirement for it to be a Laptop? Gaming and Laptops in general don't mix very well, especially in terms of budgetting and also future proofing, you can't upgrade a laptop in the same way you can pretty much reconfigure a desktop rig every … | |
Re: Right so, `<xs:attribute name="lang" type="xs:string"/>` Would create an xml attribute looking like this: `<RandomNode lang=""></RandomNode>` Which is perfectly acceptable if we want to create a blank attribute. What your referring to would be used when we wish to apply a value to that attribute and in that case it goes … | |
Re: Do you have an example? Are the characters required by the document? | |
Re: Could use an XMLDocument to store the data from string? http://msdn.microsoft.com/en-us/library/system.xml.xmldocument.loadxml.aspx The above method hopefully should do it. | |
Re: I would generally just right-click, outlining, toggle all outlining and then open up the main one and voila you have classes collasped. I am using VS2010 but i assume it'll be similar. | |
I'm well aware this is most likely going for an instant shoot-down. Currently we can only get the four line signature. It would be nice to allow small HTML imaging. For example I'd like to include my StackOverflow flair :) <a href="http://stackoverflow.com/users/1220965/mike"> <img src="http://stackoverflow.com/users/flair/1220965.png" width="208" height="58" alt="profile for Mike at … | |
Re: Is it safe to assume that every `<name>` node will have a corresponding `<duration>` and `<time>` node? | |
Re: http://stackoverflow.com/questions/599837/how-to-generate-and-validate-a-software-license-key May be of interest to you. | |
Re: Been a while since I played with forms but if exceptions are occuring I believe they do not get thrown in `form_load` and instead are suppressed. It might be worth assigning the code to a button press or to a function called from `form_load` to see if any exceptions occur. … | |
Re: *edit: Just noticed someone had raised this from the grave -.- still below might be useful to some* Forgive me for doing so without request but I thought I'd give you a pointer @jonifen as I used to make this mistake myself too until someone said. You are using XSLT … | |
Re: The XML itself is fine and all well formed if you check it with online validators. Im not aware of the android specifics myself. > Element Type "SlidingDrawer" must be followed by either atribute specifications ">" , or , "/>" One would guess that 'SlidingDrawer' cant have attributes and that … | |
Re: What do you intend to use the XML for? Holding the data for rows etc? I.E: http://www.maani.us/xml_charts/index.php?menu=Tutorial&submenu=Chart_Data | |
I'm after some advice really. I wish to create an application for myself and a friend using DropBox as a means to store and sync a CSV with data in. Is it possible to programatically search through a computers directory to locate folder called 'Dropbox' without hardcoding its location? If … | |
Re: Can we see your full XSLT, can't edit it currently due to missing declarations allowing the functionality. | |
Re: Input XML <?xml version="1.0" encoding="UTF-8"?> <Employer> <Employees> <EmployeesDetails>van ind 26%</EmployeesDetails> </Employees> <Employees> <EmployeesDetails>van ind</EmployeesDetails> </Employees> </Employer> XSLT Sheet <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output indent ="yes"/> <xsl:strip-space elements ="*"/> <xsl:template match="@*|node()"> <xsl:copy> <xsl:apply-templates select="@*|node()"/> </xsl:copy> </xsl:template> <xsl:template match="EmployeesDetails/text()" name="tokenize"> <xsl:param name="text" select="."/> <xsl:param name="separator" select="' '"/> <xsl:param name="nodename">Names</xsl:param> <xsl:choose> <xsl:when test="not(contains($text, $separator))"> … | |
Re: <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output omit-xml-declaration="yes"/> <xsl:variable name ="urlVar"></xsl:variable> <xsl:variable name="title"></xsl:variable> <xsl:template match="*"> <xsl:element name="td"> <xsl:element name="a"> <xsl:attribute name="href"> <xsl:value-of select ="$urlVar"/> </xsl:attribute> <xsl:value-of select="$title"/> </xsl:element> </xsl:element> </xsl:template> </xsl:stylesheet> I've produced what your after using this code. It is worth noting that if you enable Indenting in the stylesheet it wont … | |
Re: I think it would be done by clearing the line and redrawing in the new position, say incrementing the x co-ord by 1 to move it right. Not entirely sure thats the only way though. | |
Re: You haven't said how you want the XML laid out, nobody can help without that information. Ie. <M1 Total='15'> <V1 Value='10' /> <V2 Value='5' /> </M1> Or. <M1> <Total>15</Total> <V1> <Value>10</Value> </V1> <V2> <Value>5</Value> </V2> </M1> | |
Re: Can you provide some example code of where you dont understand/are having trouble with :) | |
Re: Set the `valuemember` to the ID value. Set the `displaymember` to the Name value. Then use the `valuemember` instead of `displaymember` when writing the SQL to store it. | |
Re: For others information, What database are you using? Oracle? SQLServer? Access? | |
Re: Well in terms of handling the account number and surname search possibilities, you can use a TryParse to distinguish which you are dealing with, I am **assuming** an account number is entirely numeric. string InputFromTextBox = "0011223344"; int OutputAccountNumber; // if bool = true, its account number, else false, surname … | |
More of a question than feedback if im honest, as i'm not sure if it was just me or not. But I noticed after a while I wasnt getting the emails from threads I had replied to, obviously indicating the auto subscribe to topics I reply to was turned off. … | |
Re: What exactly are the brackets for in the xml? are they typos? i.e. ( <target attribute1="LRC1985s5c4" attribute2="6(17)1"> 4e/54 </target> ) | |
Re: <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:x="http://www.w3.org/1999/xhtml" version="1.0"> <xsl:template match="/*"> <xsl:value-of select="x:body/x:div/x:p"/> //note changes to this line </xsl:template> </xsl:stylesheet> I've assigned the HTML namespace to x, so now we prefix all references to the XML with x: and then you can find the nodes you were missing before :) Proof in action: <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" … | |
Re: Try [This](http://www.mkyong.com/java/how-to-create-xml-file-in-java-dom/). The xmlns will be an attribute of the `<pierRecord>` element. | |
Re: Can you make it more clear the format of the input, and the **exact** format of the output, and something can be looked into. A JSON format currently means nothing to me but doesnt mean XSLT cant be made :) | |
Re: <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/> <xsl:template match="/"> <xsl:apply-templates/> </xsl:template> <xsl:template match="person"> <xsl:if test="id = 677"> <xsl:element name="Output"> <xsl:value-of select="name"/> </xsl:element> </xsl:if> </xsl:template> </xsl:stylesheet> As an example. We would use the xsl:if to recreate the same if statement you demonstrated in c# :) | |
Re: <xsl:for-each select="Score"> <xsl:element name="tem:arg0"> <xsl:value-of select='format-number(.,"#" )'/> </xsl:element> </xsl:for-each> You've already selected score in the for-each and so it is looked for a child of score called score, changing this to `.` means it selects current which is in fact the value you are looking for :) | |
Re: One note about GeissT's submission, if used ensure you use a Thread.Sleep() in that loop to avoid just using your CPU constantly on that loop. |
The End.