Project

Profile

Help

Bug #2258

closed

QName.ToString() returns incorrect lexical form

Added by Max Toro almost 10 years ago. Updated almost 9 years ago.

Status:
Closed
Priority:
Normal
Category:
.NET API
Sprint/Milestone:
Start date:
2014-12-14
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
9.6
Fix Committed on Branch:
9.6
Fixed in Maintenance Release:
Platforms:

Description

If you run:

var qname = QName.XS_INTEGER;

Console.WriteLine(qname.Uri);
Console.WriteLine(qname.Prefix);
Console.WriteLine(qname.LocalName);
Console.WriteLine(qname.ToString());

you get:

http://www.w3.org/2001/XMLSchema
xs
integer
xs:http://www.w3.org/2001/XMLSchema

ToString incorrectly uses the namespace uri instead of the local name.

Please register to edit this issue

Also available in: Atom PDF