Click here to Skip to main content
15,890,399 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: exceeding the maximum capacity of value types Pin
Luc Pattyn31-May-10 17:57
sitebuilderLuc Pattyn31-May-10 17:57 
Questionpassing information Pin
kolisa31-May-10 0:14
kolisa31-May-10 0:14 
AnswerRe: passing information Pin
Henry Minute31-May-10 0:28
Henry Minute31-May-10 0:28 
GeneralRe: passing information Pin
kolisa31-May-10 0:44
kolisa31-May-10 0:44 
GeneralRe: passing information Pin
Henry Minute31-May-10 1:15
Henry Minute31-May-10 1:15 
GeneralRe: passing information Pin
Luc Pattyn31-May-10 2:16
sitebuilderLuc Pattyn31-May-10 2:16 
AnswerRe: passing information Pin
Luc Pattyn31-May-10 2:17
sitebuilderLuc Pattyn31-May-10 2:17 
Question.NET and XML: How can I read nested namespaces (<abc:xyz:name attr=“value”/>)? Pin
Entrase29-May-10 5:35
Entrase29-May-10 5:35 
Suppose there is an element in XML data:
<abc:xyz:name attr="value"/>


I'm trying to read it with XmlReader. The problem is that I get XmlException that says:
The ‘:’ character, hexadecimal value 0x3A, cannot be included in a name


I have already declared "abc" namespace. I have also tried adding "abc:xyz" and "xyz" namespaces. But this doesn't help at all. I could replace some text before parsing but there may be some more elegant solution. So what should I do?

Here is my code:

XmlReaderSettings settings = new XmlReaderSettings()
NameTable nt = new NameTable();
XmlNamespaceManager nsmgr = new XmlNamespaceManager(nt);
nsmgr.AddNamespace("abc", "");
nsmgr.AddNamespace("xyz", "");
XmlParserContext context = new XmlParserContext(null, nsmgr, null, XmlSpace.None);

// So this reader can't read <abc:xyz:name attr="value"/>
XmlReader reader = XmlReader.Create(path, settings, context);

AnswerRe: .NET and XML: How can I read nested namespaces ()? Pin
Kurt Evenepoel29-May-10 7:40
Kurt Evenepoel29-May-10 7:40 
QuestionReturning data with a bound listbox Pin
surfluds29-May-10 2:18
surfluds29-May-10 2:18 
AnswerRe: Returning data with a bound listbox Pin
Abhinav S29-May-10 3:53
Abhinav S29-May-10 3:53 
AnswerRe: Returning data with a bound listbox Pin
surfluds29-May-10 5:46
surfluds29-May-10 5:46 
GeneralRe: Returning data with a bound listbox Pin
Luc Pattyn29-May-10 6:04
sitebuilderLuc Pattyn29-May-10 6:04 
GeneralRe: Returning data with a bound listbox Pin
surfluds29-May-10 6:16
surfluds29-May-10 6:16 
AnswerRe: Returning data with a bound listbox Pin
surfluds29-May-10 6:14
surfluds29-May-10 6:14 
QuestionUsing SQL Reporting Services from VB.NET to render a report Pin
Martin_27-May-10 10:31
Martin_27-May-10 10:31 
AnswerRe: Using SQL Reporting Services from VB.NET to render a report Pin
Eddy Vluggen29-May-10 0:30
professionalEddy Vluggen29-May-10 0:30 
QuestionWinForms DataGridView RowDataBound Pin
fatix26-May-10 5:43
fatix26-May-10 5:43 
AnswerRe: WinForms DataGridView RowDataBound Pin
Abhinav S27-May-10 2:43
Abhinav S27-May-10 2:43 
QuestionWindow1.xaml -> Window1.xaml.cs - how do I get this hierarchially ordered Pin
Krischu26-May-10 4:59
Krischu26-May-10 4:59 
AnswerRe: Window1.xaml -> Window1.xaml.cs - how do I get this hierarchially ordered Pin
Abhinav S26-May-10 5:05
Abhinav S26-May-10 5:05 
AnswerRe: Window1.xaml -> Window1.xaml.cs - how do I get this hierarchially ordered Pin
Simon P Stevens26-May-10 5:51
Simon P Stevens26-May-10 5:51 
QuestionWhen is web.config called? Pin
Tripathi Swati26-May-10 0:16
Tripathi Swati26-May-10 0:16 
AnswerRe: When is web.config called? Pin
JHizzle26-May-10 0:23
JHizzle26-May-10 0:23 
GeneralRe: When is web.config called? Pin
Tripathi Swati26-May-10 0:34
Tripathi Swati26-May-10 0:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.