all groups > dotnet xml > april 2005 >
You're in the

dotnet xml

group:

xsd.exe schema documentation...


xsd.exe schema documentation... jojobar
4/8/2005 1:47:06 PM
dotnet xml:
Hi!

I am creating schema directly from the .net assembly using the xsd.exe tool.
Now I would like to annotate the schema (using xs:annotation and
xs:documentation etc.). The C# file that created the assembly has comments in
it. Is it possible to somehow import these comments into the generated schema
file.

I am willing to write a program for it, but was wondering what is the best
way to go.

Thanks
--
RE: xsd.exe schema documentation... v-kevy NO[at]SPAM online.microsoft.com
4/9/2005 12:00:00 AM
Hi jojobar,

First of all, I would like to confirm my understanding of your issue. From
your description, I understand that you need to generate annotation
elements using xsd.exe. If there is any misunderstanding, please feel free
to let me know.

As far as I know, xsd.exe cannot generate comments for the schema. So we
have to do it by write our own code for it. Use System.CodeDom namespace to
parse the the code. You will get a CodeComment object which represents the
comment part. For more information, please check the following link:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/
frlrfSystemCodeDomCodeCommentClassTopic.asp

HTH.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
AddThis Social Bookmark Button