Click here to Skip to main content
15,921,577 members
Home / Discussions / C#
   

C#

 
GeneralRe: frog puzzle Pin
Paul Conrad21-Jul-06 9:29
professionalPaul Conrad21-Jul-06 9:29 
GeneralRe: frog puzzle Pin
Dustin Metzgar21-Jul-06 11:06
Dustin Metzgar21-Jul-06 11:06 
AnswerRe: frog puzzle Pin
Paul Conrad21-Jul-06 9:31
professionalPaul Conrad21-Jul-06 9:31 
AnswerRe: frog puzzle Pin
Professor Sharada Ulhas21-Jul-06 11:09
Professor Sharada Ulhas21-Jul-06 11:09 
GeneralRe: frog puzzle Pin
Paul Conrad21-Jul-06 11:17
professionalPaul Conrad21-Jul-06 11:17 
GeneralRe: frog puzzle Pin
Judah Gabriel Himango21-Jul-06 12:00
sponsorJudah Gabriel Himango21-Jul-06 12:00 
QuestionDynamic Page Creation? Pin
OMalleyW21-Jul-06 8:20
OMalleyW21-Jul-06 8:20 
AnswerRe: Dynamic Page Creation? Pin
Not Active21-Jul-06 8:55
mentorNot Active21-Jul-06 8:55 
GeneralRe: Dynamic Page Creation? Pin
OMalleyW21-Jul-06 14:03
OMalleyW21-Jul-06 14:03 
QuestionCopying UserControl Variables Pin
TheBlindWatchmaker21-Jul-06 7:22
TheBlindWatchmaker21-Jul-06 7:22 
AnswerRe: Copying UserControl Variables Pin
atuldeore21-Jul-06 9:11
atuldeore21-Jul-06 9:11 
GeneralRe: Copying UserControl Variables Pin
TheBlindWatchmaker21-Jul-06 10:19
TheBlindWatchmaker21-Jul-06 10:19 
QuestionEmail sending in Win Application Pin
alimohammed21-Jul-06 5:30
alimohammed21-Jul-06 5:30 
GeneralRe: Email sending in Win Application Pin
atuldeore21-Jul-06 5:49
atuldeore21-Jul-06 5:49 
GeneralRe: Email sending in Win Application Pin
alimohammed21-Jul-06 5:55
alimohammed21-Jul-06 5:55 
GeneralRe: Email sending in Win Application Pin
atuldeore21-Jul-06 6:01
atuldeore21-Jul-06 6:01 
AnswerRe: Email sending in Win Application Pin
Judah Gabriel Himango21-Jul-06 6:00
sponsorJudah Gabriel Himango21-Jul-06 6:00 
GeneralRe: Email sending in Win Application Pin
alimohammed21-Jul-06 6:06
alimohammed21-Jul-06 6:06 
QuestionDataset.LoadXml() Pin
moon_stick21-Jul-06 5:06
moon_stick21-Jul-06 5:06 
I'm having trouble reading data into a strongly typed dataset from an XmlReader where the data is held as attributes rather than elements. I retrieve two document types and have an XSD for each. One is a standard results document and the other is an error one, formatted as:

results:

<?xml version="1.0" encoding="ISO-8859-1" ?>
<result id="123" generated="3456789" account_id="1">
<field1>FIELD1DATA</field1>
<field2>FIELD2DATA</field2>
<field3 />
</result>

error:

<?xml version="1.0" encoding="ISO-8859-1" ?>
<result error="001" severity="1" message="Record not in database" />

I'm able to populate my dataset from the 'results' XML doc without any problems (and can read the attributes as well) but the 'error' XML doc doesn't populate any rows into the dataset, even though the XSD defines the attributes as data fields:

<?xml version="1.0" encoding="utf-16"?>
<xs:schema xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:b="http://schemas.microsoft.com/BizTalk/2003" id="ResultError" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="result">
<xs:complexType>
<xs:attribute name="error" type="xs:string" />
<xs:attribute name="severity" type="xs:string" />
<xs:attribute name="message" type="xs:string" />
</xs:complexType>
</xs:element>
<xs:element msdata:IsDataSet="true" msdata:UseCurrentLocale="true" name="ResultError">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element ref="result" />
</xs:choice>
</xs:complexType>
</xs:element>
</xs:schema>

Can anyone shed any light on this? The worst case I can figure is that the ReadXml() function reads the InnerXml property rather than the OuterXml one and therefore discards the attributes but I can't believe that this is actually right...

Thanks in advance

D
QuestionImplementing disabled text in a UserControl ? [modified] Pin
LongRange.Shooter21-Jul-06 4:36
LongRange.Shooter21-Jul-06 4:36 
AnswerRe: Implementing disabled text in a UserControl ? Pin
atuldeore21-Jul-06 5:32
atuldeore21-Jul-06 5:32 
Questionlistbox sort by dates with dd.mm.yyyy format Pin
fracalifa21-Jul-06 4:17
fracalifa21-Jul-06 4:17 
AnswerRe: listbox sort by dates with dd.mm.yyyy format Pin
Andrew Rissing21-Jul-06 4:33
Andrew Rissing21-Jul-06 4:33 
AnswerRe: listbox sort by dates with dd.mm.yyyy format [modified] Pin
LongRange.Shooter21-Jul-06 4:39
LongRange.Shooter21-Jul-06 4:39 
GeneralRe: listbox sort by dates with dd.mm.yyyy format Pin
fracalifa21-Jul-06 5:19
fracalifa21-Jul-06 5:19 

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.