Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old August 9th, 2006, 10:55 AM
onno.willems@gmail.com
Guest
 
Posts: n/a
Default Retrieve embedded XML parts from .vbs file

Hi,

In our project we have a large library of VB script (.vbs) files. Each
file has 1 function. I want to document these functions, so a VB.NET
application can retrieve the documentation and display it. I thought
that the best way to do this is in XML. Since the files in the library
have to remain VB script, the XML parts have to be preceded by VB
script comment characters. Something in the line of this (vbscript
example):

' <Header>
' <Author>Me</Author>
' <IntialVersion>2006-02-20</IntialVersion>
' <ShortDescription>This is function 1</ShortDescription>
' <DetailedDescription>
' Function 1 does what you expect of a function called this way.
' </DetailedDescription>
' <Parameters>
' <Parameter name="param1">
' <Description>The first parameter</Description>
' </Parameter>
' </Parameters>
' <Returns>Always returns True</Returns>
' </Header>
Public Function MyFunction1(par1)
' Function implementation here...
MyFunction1 = True
End Function

What would be the best way to retrieve the XML parts from each file
from my VB.NET application? All the methods I can find only read valid
XML, and I have to parse out the ' characters first. I really don't
want to read each 'header' part and write it to a temp file and read
that in again. Is there a way to read an XML structure from a (an array
of) string(s)?

Thanks,
Onno

p.s. The app is .NET 1.1

 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles