User Profile

Collapse

Profile Sidebar

Collapse
oscar2
oscar2
Last Activity: Mar 14 '11, 11:54 AM
Joined: May 26 '10
Location: Norway
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • 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.
    See more | Go to post

    Leave a comment:


  • 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!...
    See more | Go to post

    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.
    See more | Go to post
    Last edited by oscar2; Jun 26 '10, 05:06 PM. Reason: misspelling!

  • oscar2
    replied to All available xpath in XML document
    in XML
    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
    ...
    See more | Go to post

    Leave a comment:


  • oscar2
    replied to All available xpath in XML document
    in XML
    Thanks.. i working on it :)
    See more | Go to post

    Leave a comment:


  • oscar2
    replied to All available xpath in XML document
    in XML
    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
    ...
    See more | Go to post

    Leave a comment:


  • oscar2
    replied to All available xpath in XML document
    in XML
    Thanks I am working on something similar.. will post here if I get the same result with VB.net
    Thanks again
    See more | Go to post

    Leave a comment:


  • oscar2
    replied to All available xpath in XML document
    in XML
    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 :)
    See more | Go to post

    Leave a comment:


  • oscar2
    started a topic All available xpath in XML document
    in XML

    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
    ...
    See more | Go to post
No activity results to display
Show More
Working...