473,386 Members | 1,830 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Build comment web pages for "value" and "example"

Hello,

I used Visual C# Standard Edition.
I want to comment my program using xml commentary method,
I don't know why if I use value and example tag, it is not working / showed in the html result.
for example I have Property

///<value>this is in description</value>
///<example>this is in Example</example>
public int A{
get{
return 27;
}
}

Note: it works for "remark" and "summary" tag
Can anyone help me?
Thanks
Pujo
Nov 16 '05 #1
11 2612
Hi ajikoe,

The most common xml doc syntax if you vs.net doc generation is

<summary>
<remarks>

But if you use ndoc, you can place your own xml tags. Check this out. Cool tool.

http://ndoc.sourceforge.net/

Hope it helps. Cheers.
--
Regards,
Chua Wen Ching :)
"ajikoe" wrote:
Hello,

I used Visual C# Standard Edition.
I want to comment my program using xml commentary method,
I don't know why if I use value and example tag, it is not working / showed in the html result.
for example I have Property

///<value>this is in description</value>
///<example>this is in Example</example>
public int A{
get{
return 27;
}
}

Note: it works for "remark" and "summary" tag
Can anyone help me?
Thanks
Pujo

Nov 16 '05 #2
Hello,

Have you tried using value and example?
How it looks in HTML format?

I don't know How it looks like cause this is the first time I use XML documentation, I just want to know why those tag(value and example) is not working.

Sincerely Yours,
pujo
"Chua Wen Ching" wrote:
Hi ajikoe,

The most common xml doc syntax if you vs.net doc generation is

<summary>
<remarks>

But if you use ndoc, you can place your own xml tags. Check this out. Cool tool.

http://ndoc.sourceforge.net/

Hope it helps. Cheers.
--
Regards,
Chua Wen Ching :)
"ajikoe" wrote:
Hello,

I used Visual C# Standard Edition.
I want to comment my program using xml commentary method,
I don't know why if I use value and example tag, it is not working / showed in the html result.
for example I have Property

///<value>this is in description</value>
///<example>this is in Example</example>
public int A{
get{
return 27;
}
}

Note: it works for "remark" and "summary" tag
Can anyone help me?
Thanks
Pujo

Nov 16 '05 #3
Hi ajikoe,

From my understanding, only 2 kind of xml elements that can be used into vs.net xml report generation. Try this:

Assuming:

/// <summary>
/// The main entry point for the application.
/// </summary>
/// <remarks>Just a sample app!</remarks>
[STAThread]
static void Main(string[] args)
{
}

1) Inside VS.NET, go to Tools, then select Build Comments Web Page.

2) The Build Comments Web Pages will appear. Select entire solution for any particular solution you want.

3) Use the default settings, and press Ok.

4) You will see a generated comment file.

5) Navigate the tree, solution -> project -> main (inside you can see the summary and remark).

Anyway I know until now in vs.net 2003 <remarks> and <summary> are the only one that works.

Even though you can <example> xml element in there.

Please correct me if i am wrong! Cheers.
--
Regards,
Chua Wen Ching :)
"ajikoe" wrote:
Hello,

Have you tried using value and example?
How it looks in HTML format?

I don't know How it looks like cause this is the first time I use XML documentation, I just want to know why those tag(value and example) is not working.

Sincerely Yours,
pujo
"Chua Wen Ching" wrote:
Hi ajikoe,

The most common xml doc syntax if you vs.net doc generation is

<summary>
<remarks>

But if you use ndoc, you can place your own xml tags. Check this out. Cool tool.

http://ndoc.sourceforge.net/

Hope it helps. Cheers.
--
Regards,
Chua Wen Ching :)
"ajikoe" wrote:
Hello,

I used Visual C# Standard Edition.
I want to comment my program using xml commentary method,
I don't know why if I use value and example tag, it is not working / showed in the html result.
for example I have Property

///<value>this is in description</value>
///<example>this is in Example</example>
public int A{
get{
return 27;
}
}

Note: it works for "remark" and "summary" tag
Can anyone help me?
Thanks
Pujo

Nov 16 '05 #4
Hello Chua Wen Ching,

I tried "param" tag is working for documenting the method/function:
if the method is function which return value.

But if it is void so there is no description for the void type.

for "example" it is not working, can you give me an example for the "example" tag, and what it looks like?

thanks
pujo

"Chua Wen Ching" wrote:
Hi ajikoe,

From my understanding, only 2 kind of xml elements that can be used into vs.net xml report generation. Try this:

Assuming:

/// <summary>
/// The main entry point for the application.
/// </summary>
/// <remarks>Just a sample app!</remarks>
[STAThread]
static void Main(string[] args)
{
}

1) Inside VS.NET, go to Tools, then select Build Comments Web Page.

2) The Build Comments Web Pages will appear. Select entire solution for any particular solution you want.

3) Use the default settings, and press Ok.

4) You will see a generated comment file.

5) Navigate the tree, solution -> project -> main (inside you can see the summary and remark).

Anyway I know until now in vs.net 2003 <remarks> and <summary> are the only one that works.

Even though you can <example> xml element in there.

Please correct me if i am wrong! Cheers.
--
Regards,
Chua Wen Ching :)
"ajikoe" wrote:
Hello,

Have you tried using value and example?
How it looks in HTML format?

I don't know How it looks like cause this is the first time I use XML documentation, I just want to know why those tag(value and example) is not working.

Sincerely Yours,
pujo
"Chua Wen Ching" wrote:
Hi ajikoe,

The most common xml doc syntax if you vs.net doc generation is

<summary>
<remarks>

But if you use ndoc, you can place your own xml tags. Check this out. Cool tool.

http://ndoc.sourceforge.net/

Hope it helps. Cheers.
--
Regards,
Chua Wen Ching :)
"ajikoe" wrote:

> Hello,
>
> I used Visual C# Standard Edition.
> I want to comment my program using xml commentary method,
> I don't know why if I use value and example tag, it is not working / showed in the html result.
> for example I have Property
>
> ///<value>this is in description</value>
> ///<example>this is in Example</example>
> public int A{
> get{
> return 27;
> }
> }
>
> Note: it works for "remark" and "summary" tag
> Can anyone help me?
> Thanks
> Pujo

Nov 16 '05 #5
Hi ajikoe,

Sorry for the late reply. I can't remember where i post this.

Okay, the value and example xml tags are used in the object browser or intellisense purpose. You will have to generate a xml file, in the project properties.

Make sure it is the same file name with the Project example:

Project1.exe
Project1.xml

Those xml tags can be seens in a object browser, if you notice it. But you cannot see value and example in the html generated page. You need to use ndoc if possible.

Good Luck! Correct me if i am wrong.
--
Regards,
Chua Wen Ching :)
"ajikoe" wrote:
Hello Chua Wen Ching,

I tried "param" tag is working for documenting the method/function:
if the method is function which return value.

But if it is void so there is no description for the void type.

for "example" it is not working, can you give me an example for the "example" tag, and what it looks like?

thanks
pujo

"Chua Wen Ching" wrote:
Hi ajikoe,

From my understanding, only 2 kind of xml elements that can be used into vs.net xml report generation. Try this:

Assuming:

/// <summary>
/// The main entry point for the application.
/// </summary>
/// <remarks>Just a sample app!</remarks>
[STAThread]
static void Main(string[] args)
{
}

1) Inside VS.NET, go to Tools, then select Build Comments Web Page.

2) The Build Comments Web Pages will appear. Select entire solution for any particular solution you want.

3) Use the default settings, and press Ok.

4) You will see a generated comment file.

5) Navigate the tree, solution -> project -> main (inside you can see the summary and remark).

Anyway I know until now in vs.net 2003 <remarks> and <summary> are the only one that works.

Even though you can <example> xml element in there.

Please correct me if i am wrong! Cheers.
--
Regards,
Chua Wen Ching :)
"ajikoe" wrote:
Hello,

Have you tried using value and example?
How it looks in HTML format?

I don't know How it looks like cause this is the first time I use XML documentation, I just want to know why those tag(value and example) is not working.

Sincerely Yours,
pujo
"Chua Wen Ching" wrote:

> Hi ajikoe,
>
> The most common xml doc syntax if you vs.net doc generation is
>
> <summary>
> <remarks>
>
> But if you use ndoc, you can place your own xml tags. Check this out. Cool tool.
>
> http://ndoc.sourceforge.net/
>
> Hope it helps. Cheers.
> --
> Regards,
> Chua Wen Ching :)
>
>
> "ajikoe" wrote:
>
> > Hello,
> >
> > I used Visual C# Standard Edition.
> > I want to comment my program using xml commentary method,
> > I don't know why if I use value and example tag, it is not working / showed in the html result.
> > for example I have Property
> >
> > ///<value>this is in description</value>
> > ///<example>this is in Example</example>
> > public int A{
> > get{
> > return 27;
> > }
> > }
> >
> > Note: it works for "remark" and "summary" tag
> > Can anyone help me?
> > Thanks
> > Pujo

Nov 16 '05 #6
Hello,
I tried to write down this example from help file:
public class MyClass
{
/// <summary>
/// The GetZero method.
/// </summary>
/// <example> This sample shows how to call the GetZero method.
/// <code>
/// class MyClass
/// {
/// public static int Main()
/// {
/// return GetZero();
/// }
/// }
/// </code>
/// </example>
public static int GetZero()
{
return 0;
}
/// text for Main
public static void Main ()
{
}
}

And I tried to use object browser to find out if I can see the example but still I can't

Pujo

"Chua Wen Ching" wrote:
Hi ajikoe,

Sorry for the late reply. I can't remember where i post this.

Okay, the value and example xml tags are used in the object browser or intellisense purpose. You will have to generate a xml file, in the project properties.

Make sure it is the same file name with the Project example:

Project1.exe
Project1.xml

Those xml tags can be seens in a object browser, if you notice it. But you cannot see value and example in the html generated page. You need to use ndoc if possible.

Good Luck! Correct me if i am wrong.
--
Regards,
Chua Wen Ching :)
"ajikoe" wrote:
Hello Chua Wen Ching,

I tried "param" tag is working for documenting the method/function:
if the method is function which return value.

But if it is void so there is no description for the void type.

for "example" it is not working, can you give me an example for the "example" tag, and what it looks like?

thanks
pujo

"Chua Wen Ching" wrote:
Hi ajikoe,

From my understanding, only 2 kind of xml elements that can be used into vs.net xml report generation. Try this:

Assuming:

/// <summary>
/// The main entry point for the application.
/// </summary>
/// <remarks>Just a sample app!</remarks>
[STAThread]
static void Main(string[] args)
{
}

1) Inside VS.NET, go to Tools, then select Build Comments Web Page.

2) The Build Comments Web Pages will appear. Select entire solution for any particular solution you want.

3) Use the default settings, and press Ok.

4) You will see a generated comment file.

5) Navigate the tree, solution -> project -> main (inside you can see the summary and remark).

Anyway I know until now in vs.net 2003 <remarks> and <summary> are the only one that works.

Even though you can <example> xml element in there.

Please correct me if i am wrong! Cheers.
--
Regards,
Chua Wen Ching :)
"ajikoe" wrote:

> Hello,
>
> Have you tried using value and example?
> How it looks in HTML format?
>
> I don't know How it looks like cause this is the first time I use XML documentation, I just want to know why those tag(value and example) is not working.
>
> Sincerely Yours,
> pujo
> "Chua Wen Ching" wrote:
>
> > Hi ajikoe,
> >
> > The most common xml doc syntax if you vs.net doc generation is
> >
> > <summary>
> > <remarks>
> >
> > But if you use ndoc, you can place your own xml tags. Check this out. Cool tool.
> >
> > http://ndoc.sourceforge.net/
> >
> > Hope it helps. Cheers.
> > --
> > Regards,
> > Chua Wen Ching :)
> >
> >
> > "ajikoe" wrote:
> >
> > > Hello,
> > >
> > > I used Visual C# Standard Edition.
> > > I want to comment my program using xml commentary method,
> > > I don't know why if I use value and example tag, it is not working / showed in the html result.
> > > for example I have Property
> > >
> > > ///<value>this is in description</value>
> > > ///<example>this is in Example</example>
> > > public int A{
> > > get{
> > > return 27;
> > > }
> > > }
> > >
> > > Note: it works for "remark" and "summary" tag
> > > Can anyone help me?
> > > Thanks
> > > Pujo

Nov 16 '05 #7
Hi Ajikoe,

Did you generate the xml file out when you build you application?

A very good guide. Please download this.

http://www.gotdotnet.com/team/csharp...rs/XMLDocs.doc

Hope it helps you :)
--
Regards,
Chua Wen Ching :)
"ajikoe" wrote:
Hello,
I tried to write down this example from help file:
public class MyClass
{
/// <summary>
/// The GetZero method.
/// </summary>
/// <example> This sample shows how to call the GetZero method.
/// <code>
/// class MyClass
/// {
/// public static int Main()
/// {
/// return GetZero();
/// }
/// }
/// </code>
/// </example>
public static int GetZero()
{
return 0;
}
/// text for Main
public static void Main ()
{
}
}

And I tried to use object browser to find out if I can see the example but still I can't

Pujo

"Chua Wen Ching" wrote:
Hi ajikoe,

Sorry for the late reply. I can't remember where i post this.

Okay, the value and example xml tags are used in the object browser or intellisense purpose. You will have to generate a xml file, in the project properties.

Make sure it is the same file name with the Project example:

Project1.exe
Project1.xml

Those xml tags can be seens in a object browser, if you notice it. But you cannot see value and example in the html generated page. You need to use ndoc if possible.

Good Luck! Correct me if i am wrong.
--
Regards,
Chua Wen Ching :)
"ajikoe" wrote:
Hello Chua Wen Ching,

I tried "param" tag is working for documenting the method/function:
if the method is function which return value.

But if it is void so there is no description for the void type.

for "example" it is not working, can you give me an example for the "example" tag, and what it looks like?

thanks
pujo

"Chua Wen Ching" wrote:

> Hi ajikoe,
>
> From my understanding, only 2 kind of xml elements that can be used into vs.net xml report generation. Try this:
>
> Assuming:
>
> /// <summary>
> /// The main entry point for the application.
> /// </summary>
> /// <remarks>Just a sample app!</remarks>
> [STAThread]
> static void Main(string[] args)
> {
> }
>
> 1) Inside VS.NET, go to Tools, then select Build Comments Web Page.
>
> 2) The Build Comments Web Pages will appear. Select entire solution for any particular solution you want.
>
> 3) Use the default settings, and press Ok.
>
> 4) You will see a generated comment file.
>
> 5) Navigate the tree, solution -> project -> main (inside you can see the summary and remark).
>
> Anyway I know until now in vs.net 2003 <remarks> and <summary> are the only one that works.
>
> Even though you can <example> xml element in there.
>
> Please correct me if i am wrong! Cheers.
> --
> Regards,
> Chua Wen Ching :)
>
>
> "ajikoe" wrote:
>
> > Hello,
> >
> > Have you tried using value and example?
> > How it looks in HTML format?
> >
> > I don't know How it looks like cause this is the first time I use XML documentation, I just want to know why those tag(value and example) is not working.
> >
> > Sincerely Yours,
> > pujo
> > "Chua Wen Ching" wrote:
> >
> > > Hi ajikoe,
> > >
> > > The most common xml doc syntax if you vs.net doc generation is
> > >
> > > <summary>
> > > <remarks>
> > >
> > > But if you use ndoc, you can place your own xml tags. Check this out. Cool tool.
> > >
> > > http://ndoc.sourceforge.net/
> > >
> > > Hope it helps. Cheers.
> > > --
> > > Regards,
> > > Chua Wen Ching :)
> > >
> > >
> > > "ajikoe" wrote:
> > >
> > > > Hello,
> > > >
> > > > I used Visual C# Standard Edition.
> > > > I want to comment my program using xml commentary method,
> > > > I don't know why if I use value and example tag, it is not working / showed in the html result.
> > > > for example I have Property
> > > >
> > > > ///<value>this is in description</value>
> > > > ///<example>this is in Example</example>
> > > > public int A{
> > > > get{
> > > > return 27;
> > > > }
> > > > }
> > > >
> > > > Note: it works for "remark" and "summary" tag
> > > > Can anyone help me?
> > > > Thanks
> > > > Pujo

Nov 16 '05 #8
Hi Chua Wen Ching,

I generated xml file when I build my application.
But Again, It given't any effect when I goes into example and value tag?

You know it is funny when I tried to update my visual c# from the help menu, it always said that :
"Visual Studio. NET 2003 setup encaunered errors while attemting to download required files. Check your web browser configuration settings and your connection hardware, and try again"
Although I can update my windows security update. I use my own laptop and connection in Graz Technical University. The internet connection is ok, and I can download anything except the visual studio.net. Is this also because standard edition?

Sincerely Yours,
Pujo
"Chua Wen Ching" wrote:
Hi Ajikoe,

Did you generate the xml file out when you build you application?

A very good guide. Please download this.

http://www.gotdotnet.com/team/csharp...rs/XMLDocs.doc

Hope it helps you :)
--
Regards,
Chua Wen Ching :)
"ajikoe" wrote:
Hello,
I tried to write down this example from help file:
public class MyClass
{
/// <summary>
/// The GetZero method.
/// </summary>
/// <example> This sample shows how to call the GetZero method.
/// <code>
/// class MyClass
/// {
/// public static int Main()
/// {
/// return GetZero();
/// }
/// }
/// </code>
/// </example>
public static int GetZero()
{
return 0;
}
/// text for Main
public static void Main ()
{
}
}

And I tried to use object browser to find out if I can see the example but still I can't

Pujo

"Chua Wen Ching" wrote:
Hi ajikoe,

Sorry for the late reply. I can't remember where i post this.

Okay, the value and example xml tags are used in the object browser or intellisense purpose. You will have to generate a xml file, in the project properties.

Make sure it is the same file name with the Project example:

Project1.exe
Project1.xml

Those xml tags can be seens in a object browser, if you notice it. But you cannot see value and example in the html generated page. You need to use ndoc if possible.

Good Luck! Correct me if i am wrong.
--
Regards,
Chua Wen Ching :)
"ajikoe" wrote:

> Hello Chua Wen Ching,
>
> I tried "param" tag is working for documenting the method/function:
> if the method is function which return value.
>
> But if it is void so there is no description for the void type.
>
> for "example" it is not working, can you give me an example for the "example" tag, and what it looks like?
>
> thanks
> pujo
>
> "Chua Wen Ching" wrote:
>
> > Hi ajikoe,
> >
> > From my understanding, only 2 kind of xml elements that can be used into vs.net xml report generation. Try this:
> >
> > Assuming:
> >
> > /// <summary>
> > /// The main entry point for the application.
> > /// </summary>
> > /// <remarks>Just a sample app!</remarks>
> > [STAThread]
> > static void Main(string[] args)
> > {
> > }
> >
> > 1) Inside VS.NET, go to Tools, then select Build Comments Web Page.
> >
> > 2) The Build Comments Web Pages will appear. Select entire solution for any particular solution you want.
> >
> > 3) Use the default settings, and press Ok.
> >
> > 4) You will see a generated comment file.
> >
> > 5) Navigate the tree, solution -> project -> main (inside you can see the summary and remark).
> >
> > Anyway I know until now in vs.net 2003 <remarks> and <summary> are the only one that works.
> >
> > Even though you can <example> xml element in there.
> >
> > Please correct me if i am wrong! Cheers.
> > --
> > Regards,
> > Chua Wen Ching :)
> >
> >
> > "ajikoe" wrote:
> >
> > > Hello,
> > >
> > > Have you tried using value and example?
> > > How it looks in HTML format?
> > >
> > > I don't know How it looks like cause this is the first time I use XML documentation, I just want to know why those tag(value and example) is not working.
> > >
> > > Sincerely Yours,
> > > pujo
> > > "Chua Wen Ching" wrote:
> > >
> > > > Hi ajikoe,
> > > >
> > > > The most common xml doc syntax if you vs.net doc generation is
> > > >
> > > > <summary>
> > > > <remarks>
> > > >
> > > > But if you use ndoc, you can place your own xml tags. Check this out. Cool tool.
> > > >
> > > > http://ndoc.sourceforge.net/
> > > >
> > > > Hope it helps. Cheers.
> > > > --
> > > > Regards,
> > > > Chua Wen Ching :)
> > > >
> > > >
> > > > "ajikoe" wrote:
> > > >
> > > > > Hello,
> > > > >
> > > > > I used Visual C# Standard Edition.
> > > > > I want to comment my program using xml commentary method,
> > > > > I don't know why if I use value and example tag, it is not working / showed in the html result.
> > > > > for example I have Property
> > > > >
> > > > > ///<value>this is in description</value>
> > > > > ///<example>this is in Example</example>
> > > > > public int A{
> > > > > get{
> > > > > return 27;
> > > > > }
> > > > > }
> > > > >
> > > > > Note: it works for "remark" and "summary" tag
> > > > > Can anyone help me?
> > > > > Thanks
> > > > > Pujo

Nov 16 '05 #9
Hi Chua,

I guess I found the problem, it's because I don't give the same name to my xml files. thanks for the xmldocument that file is very helpfull.
Yes, for the example only can be seen through object browser.

By the way I can't still update my microsoft visual c#.
I want to try ndoc, is it ok for version 1.2 or I should install version 1.3?

Sincerely Yours,
Pujo Aji

"ajikoe" wrote:
Hi Chua Wen Ching,

I generated xml file when I build my application.
But Again, It given't any effect when I goes into example and value tag?

You know it is funny when I tried to update my visual c# from the help menu, it always said that :
"Visual Studio. NET 2003 setup encaunered errors while attemting to download required files. Check your web browser configuration settings and your connection hardware, and try again"
Although I can update my windows security update. I use my own laptop and connection in Graz Technical University. The internet connection is ok, and I can download anything except the visual studio.net. Is this also because standard edition?

Sincerely Yours,
Pujo
"Chua Wen Ching" wrote:
Hi Ajikoe,

Did you generate the xml file out when you build you application?

A very good guide. Please download this.

http://www.gotdotnet.com/team/csharp...rs/XMLDocs.doc

Hope it helps you :)
--
Regards,
Chua Wen Ching :)
"ajikoe" wrote:
Hello,
I tried to write down this example from help file:
public class MyClass
{
/// <summary>
/// The GetZero method.
/// </summary>
/// <example> This sample shows how to call the GetZero method.
/// <code>
/// class MyClass
/// {
/// public static int Main()
/// {
/// return GetZero();
/// }
/// }
/// </code>
/// </example>
public static int GetZero()
{
return 0;
}
/// text for Main
public static void Main ()
{
}
}

And I tried to use object browser to find out if I can see the example but still I can't

Pujo

"Chua Wen Ching" wrote:

> Hi ajikoe,
>
> Sorry for the late reply. I can't remember where i post this.
>
> Okay, the value and example xml tags are used in the object browser or intellisense purpose. You will have to generate a xml file, in the project properties.
>
> Make sure it is the same file name with the Project example:
>
> Project1.exe
> Project1.xml
>
> Those xml tags can be seens in a object browser, if you notice it. But you cannot see value and example in the html generated page. You need to use ndoc if possible.
>
> Good Luck! Correct me if i am wrong.
> --
> Regards,
> Chua Wen Ching :)
>
>
> "ajikoe" wrote:
>
> > Hello Chua Wen Ching,
> >
> > I tried "param" tag is working for documenting the method/function:
> > if the method is function which return value.
> >
> > But if it is void so there is no description for the void type.
> >
> > for "example" it is not working, can you give me an example for the "example" tag, and what it looks like?
> >
> > thanks
> > pujo
> >
> > "Chua Wen Ching" wrote:
> >
> > > Hi ajikoe,
> > >
> > > From my understanding, only 2 kind of xml elements that can be used into vs.net xml report generation. Try this:
> > >
> > > Assuming:
> > >
> > > /// <summary>
> > > /// The main entry point for the application.
> > > /// </summary>
> > > /// <remarks>Just a sample app!</remarks>
> > > [STAThread]
> > > static void Main(string[] args)
> > > {
> > > }
> > >
> > > 1) Inside VS.NET, go to Tools, then select Build Comments Web Page.
> > >
> > > 2) The Build Comments Web Pages will appear. Select entire solution for any particular solution you want.
> > >
> > > 3) Use the default settings, and press Ok.
> > >
> > > 4) You will see a generated comment file.
> > >
> > > 5) Navigate the tree, solution -> project -> main (inside you can see the summary and remark).
> > >
> > > Anyway I know until now in vs.net 2003 <remarks> and <summary> are the only one that works.
> > >
> > > Even though you can <example> xml element in there.
> > >
> > > Please correct me if i am wrong! Cheers.
> > > --
> > > Regards,
> > > Chua Wen Ching :)
> > >
> > >
> > > "ajikoe" wrote:
> > >
> > > > Hello,
> > > >
> > > > Have you tried using value and example?
> > > > How it looks in HTML format?
> > > >
> > > > I don't know How it looks like cause this is the first time I use XML documentation, I just want to know why those tag(value and example) is not working.
> > > >
> > > > Sincerely Yours,
> > > > pujo
> > > > "Chua Wen Ching" wrote:
> > > >
> > > > > Hi ajikoe,
> > > > >
> > > > > The most common xml doc syntax if you vs.net doc generation is
> > > > >
> > > > > <summary>
> > > > > <remarks>
> > > > >
> > > > > But if you use ndoc, you can place your own xml tags. Check this out. Cool tool.
> > > > >
> > > > > http://ndoc.sourceforge.net/
> > > > >
> > > > > Hope it helps. Cheers.
> > > > > --
> > > > > Regards,
> > > > > Chua Wen Ching :)
> > > > >
> > > > >
> > > > > "ajikoe" wrote:
> > > > >
> > > > > > Hello,
> > > > > >
> > > > > > I used Visual C# Standard Edition.
> > > > > > I want to comment my program using xml commentary method,
> > > > > > I don't know why if I use value and example tag, it is not working / showed in the html result.
> > > > > > for example I have Property
> > > > > >
> > > > > > ///<value>this is in description</value>
> > > > > > ///<example>this is in Example</example>
> > > > > > public int A{
> > > > > > get{
> > > > > > return 27;
> > > > > > }
> > > > > > }
> > > > > >
> > > > > > Note: it works for "remark" and "summary" tag
> > > > > > Can anyone help me?
> > > > > > Thanks
> > > > > > Pujo

Nov 16 '05 #10
Hello Chua,

I'm not able to show the value tag (in object browser ,in popup menu or in html format), for the example tag it is working (only in object browser)

Sincerely Yours,
Pujo Aji

"ajikoe" wrote:
Hi Chua,

I guess I found the problem, it's because I don't give the same name to my xml files. thanks for the xmldocument that file is very helpfull.
Yes, for the example only can be seen through object browser.

By the way I can't still update my microsoft visual c#.
I want to try ndoc, is it ok for version 1.2 or I should install version 1.3?

Sincerely Yours,
Pujo Aji

"ajikoe" wrote:
Hi Chua Wen Ching,

I generated xml file when I build my application.
But Again, It given't any effect when I goes into example and value tag?

You know it is funny when I tried to update my visual c# from the help menu, it always said that :
"Visual Studio. NET 2003 setup encaunered errors while attemting to download required files. Check your web browser configuration settings and your connection hardware, and try again"
Although I can update my windows security update. I use my own laptop and connection in Graz Technical University. The internet connection is ok, and I can download anything except the visual studio.net. Is this also because standard edition?

Sincerely Yours,
Pujo
"Chua Wen Ching" wrote:
Hi Ajikoe,

Did you generate the xml file out when you build you application?

A very good guide. Please download this.

http://www.gotdotnet.com/team/csharp...rs/XMLDocs.doc

Hope it helps you :)
--
Regards,
Chua Wen Ching :)
"ajikoe" wrote:

> Hello,
> I tried to write down this example from help file:
> public class MyClass
> {
> /// <summary>
> /// The GetZero method.
> /// </summary>
> /// <example> This sample shows how to call the GetZero method.
> /// <code>
> /// class MyClass
> /// {
> /// public static int Main()
> /// {
> /// return GetZero();
> /// }
> /// }
> /// </code>
> /// </example>
> public static int GetZero()
> {
> return 0;
> }
> /// text for Main
> public static void Main ()
> {
> }
> }
>
> And I tried to use object browser to find out if I can see the example but still I can't
>
> Pujo
>
> "Chua Wen Ching" wrote:
>
> > Hi ajikoe,
> >
> > Sorry for the late reply. I can't remember where i post this.
> >
> > Okay, the value and example xml tags are used in the object browser or intellisense purpose. You will have to generate a xml file, in the project properties.
> >
> > Make sure it is the same file name with the Project example:
> >
> > Project1.exe
> > Project1.xml
> >
> > Those xml tags can be seens in a object browser, if you notice it. But you cannot see value and example in the html generated page. You need to use ndoc if possible.
> >
> > Good Luck! Correct me if i am wrong.
> > --
> > Regards,
> > Chua Wen Ching :)
> >
> >
> > "ajikoe" wrote:
> >
> > > Hello Chua Wen Ching,
> > >
> > > I tried "param" tag is working for documenting the method/function:
> > > if the method is function which return value.
> > >
> > > But if it is void so there is no description for the void type.
> > >
> > > for "example" it is not working, can you give me an example for the "example" tag, and what it looks like?
> > >
> > > thanks
> > > pujo
> > >
> > > "Chua Wen Ching" wrote:
> > >
> > > > Hi ajikoe,
> > > >
> > > > From my understanding, only 2 kind of xml elements that can be used into vs.net xml report generation. Try this:
> > > >
> > > > Assuming:
> > > >
> > > > /// <summary>
> > > > /// The main entry point for the application.
> > > > /// </summary>
> > > > /// <remarks>Just a sample app!</remarks>
> > > > [STAThread]
> > > > static void Main(string[] args)
> > > > {
> > > > }
> > > >
> > > > 1) Inside VS.NET, go to Tools, then select Build Comments Web Page.
> > > >
> > > > 2) The Build Comments Web Pages will appear. Select entire solution for any particular solution you want.
> > > >
> > > > 3) Use the default settings, and press Ok.
> > > >
> > > > 4) You will see a generated comment file.
> > > >
> > > > 5) Navigate the tree, solution -> project -> main (inside you can see the summary and remark).
> > > >
> > > > Anyway I know until now in vs.net 2003 <remarks> and <summary> are the only one that works.
> > > >
> > > > Even though you can <example> xml element in there.
> > > >
> > > > Please correct me if i am wrong! Cheers.
> > > > --
> > > > Regards,
> > > > Chua Wen Ching :)
> > > >
> > > >
> > > > "ajikoe" wrote:
> > > >
> > > > > Hello,
> > > > >
> > > > > Have you tried using value and example?
> > > > > How it looks in HTML format?
> > > > >
> > > > > I don't know How it looks like cause this is the first time I use XML documentation, I just want to know why those tag(value and example) is not working.
> > > > >
> > > > > Sincerely Yours,
> > > > > pujo
> > > > > "Chua Wen Ching" wrote:
> > > > >
> > > > > > Hi ajikoe,
> > > > > >
> > > > > > The most common xml doc syntax if you vs.net doc generation is
> > > > > >
> > > > > > <summary>
> > > > > > <remarks>
> > > > > >
> > > > > > But if you use ndoc, you can place your own xml tags. Check this out. Cool tool.
> > > > > >
> > > > > > http://ndoc.sourceforge.net/
> > > > > >
> > > > > > Hope it helps. Cheers.
> > > > > > --
> > > > > > Regards,
> > > > > > Chua Wen Ching :)
> > > > > >
> > > > > >
> > > > > > "ajikoe" wrote:
> > > > > >
> > > > > > > Hello,
> > > > > > >
> > > > > > > I used Visual C# Standard Edition.
> > > > > > > I want to comment my program using xml commentary method,
> > > > > > > I don't know why if I use value and example tag, it is not working / showed in the html result.
> > > > > > > for example I have Property
> > > > > > >
> > > > > > > ///<value>this is in description</value>
> > > > > > > ///<example>this is in Example</example>
> > > > > > > public int A{
> > > > > > > get{
> > > > > > > return 27;
> > > > > > > }
> > > > > > > }
> > > > > > >
> > > > > > > Note: it works for "remark" and "summary" tag
> > > > > > > Can anyone help me?
> > > > > > > Thanks
> > > > > > > Pujo

Nov 16 '05 #11
KD
Ajikoe,

Go for the 1.3 beta release or, even better, download the nightly source and
build the latest code yourself - there have been a huge number of bug fixes,
enhancements and performance improvements since 1.2 was released...

If you don't want to build the code yourself, the beta 1.3a is ok, but there
were a couple of annoying bugs that have since been fixed. There should be
another official beta release coming out within the next couple of weeks.

regards,
Kevin

"ajikoe" <aj****@discussions.microsoft.com> wrote in message
news:06**********************************@microsof t.com...
Hi Chua,

I guess I found the problem, it's because I don't give the same name to my xml files. thanks for the xmldocument that file is very helpfull. Yes, for the example only can be seen through object browser.

By the way I can't still update my microsoft visual c#.
I want to try ndoc, is it ok for version 1.2 or I should install version 1.3?
Sincerely Yours,
Pujo Aji

Nov 16 '05 #12

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Russ Perry Jr | last post by:
I'm using "ID" and "Value" in the generic sense here... Let's say one page I had a <html:select> with a collection like this: <html:options collection="items" property="key"...
3
by: Marcus | last post by:
I'm running into a situation that has me adding a value of "Unknown" to a reference table. I am being pulled between two trains of thought, and was curious to get other's input on in. I give an...
12
by: Jose Fernandez | last post by:
Hello. I'm building a web service and I get this error. NEWS.News.CoverNews(string)': not all code paths return a value This is the WebMethod public SqlDataReader CoverNews(string Sport)...
2
by: IkBenHet | last post by:
Hello, I am uploading a file using this form in ASP.NET. I have also added a simpel textfield: <form runat="server" enctype="multipart/form-data"> <input type="file" id="oFile" Name="oFile"...
12
by: Emi Lu | last post by:
Hello all, I have a question about "date" & "timestamp" types in PostgreSQL. I want to setup the default value '0000-00-00' and "0000-00-00 00:00:00" for them. However, it seems that PostgreSQL...
2
by: Bilal | last post by:
Hello, I'm stuck on this problem for quite some time and hope somebody would be able to guide me. Basically, I need to populate a large number of "template" XML files which have all...
21
by: Steven T. Hatton | last post by:
I'm trying to improve my formal understanding of C++. One significant part of that effort involves clarifying my understanding of the vocabulary used to describe the language. This is from the...
4
by: stevewy | last post by:
If I am using srcElement (or "target" for non-IE models) to return various properties of an object I have clicked on, can I access for "label for" value in any way? I'm thinking, for example, of...
5
by: Diwa | last post by:
Does the "value" type (value as in key-value pair )of "std::map" require a default ctor even if it is not used ? If I comment out Line 1 in the code attached later, i.e remove the default ctor...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.