473,473 Members | 1,692 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

XML Commenting problem.

Hi All,

I'm trying to create XML commenting for my code using XML commenting
feature
for the first time. I'm using VS.NET 2003 and C#.
I'v tried the following way.

Step 1: set the file name for xml file in
"Project Properties | Configuration Properties | Build |
XML Documentation File"
Step 2: tools | Build Comment Web pagers..

my code for commenting..
namespace Test
{
/// <summary>
/// Summary description for TEST
/// </summary>
class Test
{
///<remarks>
///TESTING COMMENTS
///</remarks>
///

[STAThread]
static void Main(string[] args)
{

}
}
}

but only a blank XML file is being created..

Kindly let me know where I went worng and also suggest me the best way to
incorporate "help" for the C# projects.
Nov 16 '05 #1
3 1317
I don't know why only a blank XML file is being created, but I
generally keep the <remarks> section together with the <summary>, like
this:

/// <summary>
/// ...
/// </summary>
/// <remarks>
/// ...
/// </remarks>
public class ...

Nonetheless, the XML shouldn't be empty....

Nov 16 '05 #2
Hi,

I, kind of, figured out why the xml is empty.

I'm using Windows XP SP2 and my security settings were set to
"High". So, I'm assuming that this is blocking XML content.
This assumption might be wrong, as I have no clue how XML works.

Once, I changed my security settings to "Medium", internet explorer is
displaying the content.

I'm also learning to use NDoc..
I'm facing a strange problem, at least for me.
I could not find the XML file. I'm able to generate XML comment web page
though.

How can we generate XML file from C# code comments so that we can use
the XML file in NDoc..

Kindly let me know.

Cheers,

Naveen.

"Bruce Wood" wrote:
I don't know why only a blank XML file is being created, but I
generally keep the <remarks> section together with the <summary>, like
this:

/// <summary>
/// ...
/// </summary>
/// <remarks>
/// ...
/// </remarks>
public class ...

Nonetheless, the XML shouldn't be empty....

Nov 16 '05 #3
I tried that and even at high setting I can view the documentation
created from my project.

Are you viewing the .xml file across a network share by any chance?

Naveen Mukkelli wrote:
Hi,

I, kind of, figured out why the xml is empty.

I'm using Windows XP SP2 and my security settings were set to
"High". So, I'm assuming that this is blocking XML content.
This assumption might be wrong, as I have no clue how XML works.

Once, I changed my security settings to "Medium", internet explorer is
displaying the content.

I'm also learning to use NDoc..
I'm facing a strange problem, at least for me.
I could not find the XML file. I'm able to generate XML comment web page
though.

How can we generate XML file from C# code comments so that we can use
the XML file in NDoc..

Kindly let me know.

Cheers,

Naveen.

"Bruce Wood" wrote:

I don't know why only a blank XML file is being created, but I
generally keep the <remarks> section together with the <summary>, like
this:

/// <summary>
/// ...
/// </summary>
/// <remarks>
/// ...
/// </remarks>
public class ...

Nonetheless, the XML shouldn't be empty....

Nov 16 '05 #4

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

Similar topics

19
by: qazmlp | last post by:
I hope comp.lang.c will not find the following question as a complete off-topic. I would like to remove ie.comment out the 'cout' statements during compilation(actually preprocessing) time. ...
46
by: Profetas | last post by:
Hi, I know that this is off topic. but I didn't know where to post. Do you comment your source code while coding or after coding. for example: you write a procedure and after it is...
4
by: Ron McNulty | last post by:
Often when testing an app, I want to temporarily comment out sections of the App.config file. Is there any way to do this? Regards Ron
4
by: C# Learner | last post by:
Consider: public void PublicMethod() { DoSomething(); DoSomethingElse(); } void DoSomething() { if (!TryParse(data)) { throw new FooException();
18
by: Marian F. | last post by:
The 12 years old genius function to count english words in a sentence: ' This is my function to count english words in your string ' s is the string with your words to be counted ' Returns an...
8
by: lallous | last post by:
Hello I've been programming for a number of years, however my commenting style is always different. Sometimes I use something like: /************************ * method .... * comments......
2
by: RYoung | last post by:
Can someone point me to a reference concerning source code commenting with VB 2005, ala C# commenting? I googled and found alot of links to add-ins and commercial products, but I can't find any...
1
by: Wijaya Edward | last post by:
Hi all, I have the following code: import sys import re ham_count = 0 spam_count = 0
100
by: Angel Tsankov | last post by:
Can someone recommend a good source of C/C++ coding style. Specifically, I am interested in commenting style and in particular how to indent comments and the commented code, rather than when to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.