461 Posted Topics

Member Avatar for codeorder
Member Avatar for czxzxcXZ

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 …

Member Avatar for Mike Askew
0
215
Member Avatar for Mike Askew

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 …

Member Avatar for Mike Askew
0
109
Member Avatar for thak123

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?

Member Avatar for Mike Askew
0
303
Member Avatar for musicazx

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.

Member Avatar for Mike Askew
0
154
Member Avatar for babyhadem
Re: code

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.

Member Avatar for Mike Askew
0
114
Member Avatar for ROSS679

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.

Member Avatar for ROSS679
0
154
Member Avatar for lokesh.r.kandula

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 …

Member Avatar for Mike Askew
0
178
Member Avatar for sridevi boya

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?

Member Avatar for Mike Askew
0
220
Member Avatar for Hani1991

> 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 …

Member Avatar for Reverend Jim
-5
1K
Member Avatar for JEEM

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 :)

Member Avatar for Mike Askew
0
338
Member Avatar for Majestics
Member Avatar for Mike Askew
0
319
Member Avatar for Stuugie

Going on naming patterns and activity from the real time feed `queenbaby` will be the next to be removed or to watch.

Member Avatar for Mike Askew
0
470
Member Avatar for LuckyBec
Member Avatar for Mike Askew

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,

Member Avatar for Mike Askew
0
114
Member Avatar for navachaitanya

> 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?

Member Avatar for Mike Askew
0
222
Member Avatar for Mike Askew

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 …

Member Avatar for Mike Askew
0
118
Member Avatar for skp03

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.

Member Avatar for Mike Askew
0
189
Member Avatar for crystalpaper

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. …

Member Avatar for ChrisHunter
0
148
Member Avatar for Majestics

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 …

Member Avatar for Mike Askew
0
93
Member Avatar for asif49

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 …

Member Avatar for Mike Askew
0
318
Member Avatar for manaila

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 …

Member Avatar for Mike Askew
0
136
Member Avatar for veledrom
Member Avatar for Mike Askew
0
121
Member Avatar for emclondon

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.

Member Avatar for emclondon
0
149
Member Avatar for eeyc

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.

Member Avatar for Mike Askew
0
152
Member Avatar for Mike Askew

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 …

Member Avatar for Dani
0
248
Member Avatar for abhadoria

Is it safe to assume that every `<name>` node will have a corresponding `<duration>` and `<time>` node?

Member Avatar for Mike Askew
0
150
Member Avatar for Andy90

http://stackoverflow.com/questions/599837/how-to-generate-and-validate-a-software-license-key May be of interest to you.

Member Avatar for Mike Askew
0
210
Member Avatar for morgan.wowk

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. …

Member Avatar for Mitja Bonca
0
285
Member Avatar for jonc

*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 …

Member Avatar for Mike Askew
0
3K
Member Avatar for Cenchrus

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 …

Member Avatar for Mike Askew
0
878
Member Avatar for daino

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

Member Avatar for Mike Askew
0
117
Member Avatar for Mike Askew

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 …

Member Avatar for Cap'nKirk
0
149
Member Avatar for sbutt

Can we see your full XSLT, can't edit it currently due to missing declarations allowing the functionality.

Member Avatar for Mike Askew
0
399
Member Avatar for maha.siva.9

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))"> …

Member Avatar for Mike Askew
0
160
Member Avatar for tudorH

<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 …

Member Avatar for Mike Askew
0
780
Member Avatar for RogerInHawaii

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.

Member Avatar for Mike Askew
0
131
Member Avatar for mohan_m01

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>

Member Avatar for Mike Askew
0
145
Member Avatar for itgrowsind

Can you provide some example code of where you dont understand/are having trouble with :)

Member Avatar for Mike Askew
0
159
Member Avatar for muhammad ismail

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.

Member Avatar for Mitja Bonca
0
290
Member Avatar for saybabs

For others information, What database are you using? Oracle? SQLServer? Access?

Member Avatar for Cameronsmith63
0
403
Member Avatar for pktnewbie

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 …

Member Avatar for Mike Askew
0
2K
Member Avatar for Mike Askew

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. …

Member Avatar for Dani
0
239
Member Avatar for xsltstarter

What exactly are the brackets for in the xml? are they typos? i.e. ( <target attribute1="LRC1985s5c4" attribute2="6(17)1"> 4e/54 </target> )

Member Avatar for Mike Askew
0
223
Member Avatar for baltazar

<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" …

Member Avatar for Mike Askew
0
1K
Member Avatar for arathy nair

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.

Member Avatar for Mike Askew
0
136
Member Avatar for manus26

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 :)

Member Avatar for Mike Askew
0
229
Member Avatar for syd919

<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# :)

Member Avatar for Mike Askew
0
135
Member Avatar for syd919

<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 :)

Member Avatar for Mike Askew
0
169
Member Avatar for George_91

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.

Member Avatar for skatamatic
0
841

The End.