|
Chintan.Desai wrote: Scott is absolutely correct.
XPath is fastest among all in parsing xml node.
YES he is. But if the XML file is pretty huge, then this method may take some time. I think XMLDocument class loads the entire XML file to the memory when it initializes. Am I right ?
|
|
|
|
|
Yes, you are correct. The XmlDocument class does read the entire file into memory. In my opinion, if you're trying to deal with XML files that large, you should probably be using something other than XML.
|
|
|
|
|
ya, u r correct? but buddy loading xml and parsing both are completely different. Its work of different object. Its just lik this Building apartement is made by engineer, but its maintainance is depend on people who live ther.
So, XPath is very fastest in parsing.
Bye
Regards
Chintan
www.visharadsoft.com
(I am thinking to change humans to computer, but unfortunately GOD will not give me the source code)
|
|
|
|
|
I want to read a huge xml file and the node that i want to read is about to the middle of the file. Then also XPath is of to use?
|
|
|
|
|
P_Elza wrote: I want to read a huge xml file and the node that i want to read is about to the middle of the file. Then also XPath is of to use?
Why don't you write an application that compares performance difference for both the methods. I feel loading huge XML file to XMlDocument class will be slow compared to other.
|
|
|
|
|
Yes, XPath would be of use. XPath is the "query" language that allows you to retrieve a specific node or list of nodes. Think of it as working in a similar way to a SQL Select statement for a database.
|
|
|
|
|
What is the size of your xml file ? if its 1 GB like that then you hsould use xmlreader and dom in hand like this
http://www.codeproject.com/useritems/XmlParsing.asp[^]
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
You may want to take a look at vtd-xml for that...
http://vtd-xml.sf.net
|
|
|
|
|
Graphical problems really, functionality is fine.
Due to the slightly odd shape of the form, when you minimize / restore the form the blue (silver/green) bar reapears and looks kinda lame (WinXP). On minimizing i can just hide the form, minimize it, then show it again. But that code is in my little minimize button. When restoring i can't control what happens, so any ideas there would be great.
A more serious problem, when loading (initially and when restoring the window) everything appears, then all controls / graphics dissapear leaving a black shape, then all reappear. All withing a fraction of a second of course, i need to find out how to hide the form until everything has been (re)loaded then show it again. Also when the form first loads and it flickers, you just see garbage from the vram instead of the background image of the form, just for a fraction of a second of course.
Ugh anyway...
perhaps if you could have some kind of double buffering. I know c# has an option for that somewhere, but i don't know what it affects or how to use it. Argh, this is doing my head in.
-- modified at 23:32 Thursday 20th September, 2007
Eew, temporary fix. On form load, set opacity to 0.
In the on paint event count up the number of controls draw (14 need to be drawn, so each time the paint event is fired by each control a counter is increased) once the counter reaches the required number the opcaity is set back to 1.0.
When you minimize the counter is reset.
It wouldn't be so bad, but not all controls set off the paint event, so i coulnd't compare the counter to this.Controls.Count
|
|
|
|
|
I think this might fix your problem if your form is extended from the System.Windows.Forms.Form class. Enter the following code into the constructor of your form.
<br />
this.SetStyle(ControlStyles.OptimizedDoubleBuffer, true);<br />
I hope it fixes your problem, if it doesn't maybe someone else knows how to fix it. 
|
|
|
|
|
While recording the application, using Web test, the test is not recording the Cookie actions in certain stage, how could i record the Cookie actions in that application? or how could i add the code to the webtest source code?
|
|
|
|
|
After adding pictureboxes to my form which move using the keydown event and drawing using gdi+,i decided to put a defined usercontrol on my form.the pictureboxes don't move,and nothing is drawn.then i thought the problem is in the usercontrol so i removed it and i put a button.the same happend wht should i do?
|
|
|
|
|
Hi,
we may need more info, possibly code too.
Are you accessing some Controls from different threads? (you shouldn't)
if so, is this .NET 1.x? or have you set Control.CheckForIllegalCrossThreadCalls false
(you shouldn't).
Luc Pattyn [Forum Guidelines] [My Articles]
this weeks tips:
- make Visual display line numbers: Tools/Options/TextEditor/...
- show exceptions with ToString() to see all information
- before you ask a question here, search CodeProject, then Google
|
|
|
|
|
I'm a Newbee, so be patient please.
My c# Application has a Tabbed control in it. (lets say 2 tabs just as an example, TabTest1 & TabTest2)
Each Tab has WebBrowser dropped into it and its default website is set to our test webserver.
If I log in to the webserver using the browser on TabTest1 using Testaccount1 userid and password all is fine. As soon as I switch to TabTest2 and log in using Testaccount2 userid and password, I find myself inside the Testaccount1's profile.
I guess I need to make these two WebBrowser components truly independent of each other, they appear to be sharing cookies & session variables.
I cant figure out how to do that.
(I can post the code if that will help)
I downloaded a couple of multiTabbed browser applications as examples from here and they exhibited the same behaviour.
I guess I am asking is there a way to make these WebBrowser Instances completely seperate within the same application.
(the hardest thing is explaining myself)
|
|
|
|
|
This doesn't have anything to do with the WebBrowser control. The website uses cookies, which are essentially tied to the site not the browser. Since each control is navigating to the same site, they are using the same set of cookies. In order to make this work you would need to change the web site to somehow create a unique cookie for each login.
|
|
|
|
|
I agree that the webbrowser controls are using the same set of cookies.
They are being tied to the application, which contains two browser controls.
I noticed that firefox's multitabbed browser displays the same traits (Shared cookies across tabs).
However...
If I launch IE point it at my test server, sign in (cookies are created). Then launch another seperate IE window point it at my test server this second window does not share the same cookies and behaves like a seperated browser(application) a unique instance. and I can log in with the different userid, and all is fine. (firefox does'nt behave the same multiple windows still share cookies)
I'm trying to achieve this behavior, of completely seperate browser instances within the same tabbed application. (I'm using IE version 6 by the way)
I guess i'm trying to achieve the impossible?
Thanks for the input Scott.
Beefy
(The hardest thing is explaining myself)
I guess I'm trying to achieve the impossible.
|
|
|
|
|
You might want to do the same test using IE 7 and see how it behaves.
You could possibly achieve this by loading different .NET AppDomains for each browser control, but that may not be worth the additional hassle of doing so.
|
|
|
|
|
Hi all,
I have written a small application that takes a snapshot of a webcam stream every so many seconds, and then saves as either a jpeg or bitmap.
Is there a straight forward way to convert these into a video file, such as an avi or mpeg?
Thanks,
Ben.
-- modified at 18:48 Thursday 20th September, 2007
PHP and C# Developer for Magezine Publishing Ltd
|
|
|
|
|
I think there's an article on this site on creating a video from stills, using DirectX
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I'm using CVS with a very large WinForms project (written in C#).
A little over a month ago, the code split into 2 lines (6.0 and 5.1). Over the past month, I've been making changes in over 100 files for various enhancements and bug fixes in 5.1, while other developers have been pushing unrelated changes into 6.0.
Now I need to push all my changes into the 6.0 line without overwriting the changes of other developers. There's probably only 2 or 3 files with unresolvable differences, and I'd hate to have to manually analyze over 100 diff's when the vast majority of the difference between files is that I made a change in a file that no one else made a change to, and most of the files that we both made changes to can be merged without trouble.
If there was a way to make CVS believe that I checked out version 6.0 on 8/10/2007 (when it was born), and that now I'm pushing changes I've made since then into 6.0, and it should merge these changes with everyone else's, I would be in great shape.
However, although I can check out 6.0 from 8/10/2007 and overlay my changes, it won't merge them back in, as it says the files have a "sticky date" on them. Can I remove the sticky date in such a way that it will still try to merge with other developers' changes rather than overwrite them?
|
|
|
|
|
Not sure but it sounds like a headache...
"Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus
|
|
|
|
|
Now, I know how to send a filename to my application through the context menu with the registry.
AppName "%1"
But I want to send multiple filenames to my application.
Does anyone have any examples or hints as to what direction I should be looking do do this?
Thanks
|
|
|
|
|
I got this link from Marc Clifton's website. Looks interesting. Anyone have any experience with it? Would you recommend it?
TIA
Why is common sense not common?
Never argue with an idiot. They will drag you down to their level where they are an expert.
Sometimes it takes a lot of work to be lazy
The people in the lounge said I should google for the answer to a programming question but I do not know what search engine to use
|
|
|
|
|
I know people who've used it and like it. To be honest - I prefer to use the ones that I've rolled over the years, but they do seem to be solid enough.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Thanks Pete
Why is common sense not common?
Never argue with an idiot. They will drag you down to their level where they are an expert.
Sometimes it takes a lot of work to be lazy
The people in the lounge said I should google for the answer to a programming question but I do not know what search engine to use
|
|
|
|