User Profile
Collapse
-
I can easily keep track of all text written in the console window but it would be much easier to just copy everything at the end and dump it in a log file.. Anyway.. thanks for the help. -
Come on guys/girls any ideas? :) Is what I'm asking for impossible? If so please tell me so that I gave up :)
Thanks again!...Leave a comment:
-
Is there any way to copy all text from console window?
Hello all,
I am writing a console program in vb.net 2010 .net 4.0. Through out the program there are many lines of info. presented to the user in the console window. I was wondering if there is a way to copy all those lines from the code, cause I want to save the text as a log to the operations carried out.
Thanks in advance. -
It is rather confusing right :)
Now at last I got it to work. Check this out:
Code:Sub GetPaths(ByVal node As Xml.XmlNode, ByVal paths As List(Of String), Optional ByVal path As String = "") path &= "/" & node.Name If Not paths.Contains(path) Then paths.Add(path) lstPaths.Items.Add(path) End If For Each child
Leave a comment:
-
-
I am working with this right now, This recursive sub can easily find path of all children but it will miss any sibling!
Code:Public Class Form1 Public path As String Private Sub cmdRun_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdRun.Click Dim xDoc As XmlDocument = New XmlDocument xDoc.Load("C:\Temp\file.xml") Dim node As
Leave a comment:
-
Thanks I am working on something similar.. will post here if I get the same result with VB.net
Thanks againLeave a comment:
-
In fact I need those 4 paths and of course if there is another node inside say TITLE I need a path to that node as well. All paths should start from the Root node CATALOG in this case. It might be worth mentioning that I will then feed those paths to a list to give the user an easy way to select the node or node-set to be modified.
Thanks :)Leave a comment:
-
All available xpath in XML document
I am using vb.net 2010 to get data from XML file, I was wondering if there is any way to find and print all available xpath of all nodes in the document. For example:
XML file is like :
Code:<CATALOG> <CD> <TITLE>Empire Burlesque</TITLE> <ARTIST>Bob Dylan</ARTIST> </CD> <CD> <TITLE>Hide your heart</TITLE> <ARTIST>Bonnie
No activity results to display
Show More
Leave a comment: