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