473,322 Members | 1,232 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,322 software developers and data experts.

A name was started with an invalid character.??

When I try to select one of the following enums, I see "A name was started
with an invalid character." in the tooltip (Intellisence) and under the
Summary heading (object browser). Other enums seem to behave normally. I
even removed the <remarks/> comment with no change in behavior.

When I build I see the following warning for each enum value:
warning CS1570: XML comment on
'CreditorMigration.SourceAndDestination.PayerToUs' has badly formed XML -- 'A
name was started with an invalid character.

What gives? Should I just ignore it?

**tabs removed**
********************************************
/// <summary>
/// The possible Fee Sources and Destinations
/// </summary>
public enum SourceAndDestination
{
/// <summary>
/// Fee collected by Us directly from the Payer
/// </summary>
/// <remarks>WHEN (cpd.CustPaysFee = 1 AND cft.FeeData <> '0')</remarks>
PayerToUs,
/// <summary>
/// Fee collected by Us and rebated back to Biller
/// </summary><remarks>WHEN (cft.MktFeeData <> '0')</remarks>
UsToBiller,
/// <summary>
/// Fee collected by Us from the Biller
/// </summary><remarks>WHEN (ISNULL(cpd.CustPaysFee, 0) = 0 AND
cft.MktFeeData <> '0')</remarks>
BillerToUs
}

********************************************
Nov 17 '05 #1
4 4989
Nevermind... problem solved. The <> within the <remarks> section was
confusing VS. I did remove them but I didn't actually save the file.

How does one embedd brackets within comments?

"kevin" wrote:
When I try to select one of the following enums, I see "A name was started
with an invalid character." in the tooltip (Intellisence) and under the
Summary heading (object browser). Other enums seem to behave normally. I
even removed the <remarks/> comment with no change in behavior.

When I build I see the following warning for each enum value:
warning CS1570: XML comment on
'CreditorMigration.SourceAndDestination.PayerToUs' has badly formed XML -- 'A
name was started with an invalid character.

What gives? Should I just ignore it?

**tabs removed**
********************************************
/// <summary>
/// The possible Fee Sources and Destinations
/// </summary>
public enum SourceAndDestination
{
/// <summary>
/// Fee collected by Us directly from the Payer
/// </summary>
/// <remarks>WHEN (cpd.CustPaysFee = 1 AND cft.FeeData <> '0')</remarks>
PayerToUs,
/// <summary>
/// Fee collected by Us and rebated back to Biller
/// </summary><remarks>WHEN (cft.MktFeeData <> '0')</remarks>
UsToBiller,
/// <summary>
/// Fee collected by Us from the Biller
/// </summary><remarks>WHEN (ISNULL(cpd.CustPaysFee, 0) = 0 AND
cft.MktFeeData <> '0')</remarks>
BillerToUs
}

********************************************

Nov 17 '05 #2
It might be your <> (not equal to) opperator in the remarks, though you
said it works fine elsewhere...

Not quite sure why it would barf like that, at least not right off-hand.

Nov 17 '05 #3
You can replace that with the entity reference, ampersand + lt,
amersand + gt

See MSDN's XML Documents [MS XML] character and entity reference page.

Nov 17 '05 #4
kevin <ke***@discussions.microsoft.com> wrote:
When I try to select one of the following enums, I see "A name was started
with an invalid character." in the tooltip (Intellisence) and under the
Summary heading (object browser). Other enums seem to behave normally. I
even removed the <remarks/> comment with no change in behavior.

When I build I see the following warning for each enum value:
warning CS1570: XML comment on
'CreditorMigration.SourceAndDestination.PayerToUs' has badly formed XML -- 'A
name was started with an invalid character.

What gives? Should I just ignore it?


No - use &lt;&gt; instead of <> - currently it thinks you've got a tag
with no name.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 17 '05 #5

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

Similar topics

6
by: lkrubner | last post by:
I'm hoping I understand this bit correctly: >>>>>>>>>>>>>>>>>>> http://www.jibbering.com/faq/faq_notes/form_access.html When writing HTML that conforms to a DTD that allows FORM elements to...
7
by: CharlesEF | last post by:
Hi All, I have run into another problem that is eating my lunch. Should be simple but I am having one heck of a time. Please look at this SELECT statement: SELECT FROM States WHERE ] =...
3
by: Anders Jansson | last post by:
Hi all. I have 2 problems when I try to open and convert an ASP.NET VS 2003 web-applikation in VS 2005. In VS 2003 I have no problems at all! First: One subfolder with will not be converted!...
3
by: Middletree | last post by:
Teaching myself ASP.NET, using Microsoft Press book called ASP.NET 2.0 by George Shepherd. Ch. 2, it says to type the following code: <%@ Page Language="C#" %> <html>
5
by: emma_middlebrook | last post by:
Hi I've found the rules that cover what is a valid attribute name here: http://www.w3.org/TR/2006/REC-xml-20060816/ 2.3 Common Syntactic Constructs Is there anything already in the dotnet...
4
by: Arpan | last post by:
I am working on Win2K Pro. Due to some problems in IIS5.0, I had to uninstall & re-install IIS. After re-installing IIS, when I try to run any ASPX page (all my ASPX pages reside in...
1
mahet
by: mahet | last post by:
Anders Jansson was a guest here, and he was having problem: When I try to build the web, this error is displayed: ---> Error 5 Unable to convert input xml file content to a DataSet. Invalid...
1
by: banagani | last post by:
Hi All, I am facing an issue in the XmlTextWriter class in the dotnet 2.0. This is the sample code Actual XML is like this <Name>&#x8A73;&#x7D30;&#x4ED5;&#x69D8;&#x306B;</Name>
3
by: =?Utf-8?B?Vmlub2Q=?= | last post by:
Hi All, I am facing an issue in the XmlTextWriter class in the dotnet 2.0. This is the sample code Actual XML is like this <Name>詳細仕様に</Name>
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shllpp 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.