Click here to Skip to main content
15,887,338 members
Home / Discussions / C#
   

C#

 
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 
QuestionVisual Studio crashes [modified] Pin
SJ_Phoenix21-Jul-06 4:01
SJ_Phoenix21-Jul-06 4:01 
AnswerRe: Visual Studio crashes Pin
Mike Dimmick21-Jul-06 4:05
Mike Dimmick21-Jul-06 4:05 
QuestionTableAdapter and it's commands Pin
zaboboa21-Jul-06 3:58
zaboboa21-Jul-06 3:58 
AnswerRe: TableAdapter and it's commands Pin
Not Active21-Jul-06 4:14
mentorNot Active21-Jul-06 4:14 
GeneralRe: TableAdapter and it's commands Pin
zaboboa21-Jul-06 4:25
zaboboa21-Jul-06 4:25 
Questioninvalidate() in winforms Pin
serimcc21-Jul-06 3:33
serimcc21-Jul-06 3:33 
AnswerRe: invalidate() in winforms Pin
Robert Rohde21-Jul-06 3:54
Robert Rohde21-Jul-06 3:54 
GeneralRe: invalidate() in winforms Pin
serimcc21-Jul-06 4:07
serimcc21-Jul-06 4:07 
GeneralRe: invalidate() in winforms Pin
LongRange.Shooter21-Jul-06 4:24
LongRange.Shooter21-Jul-06 4:24 
GeneralRe: invalidate() in winforms Pin
Josh Smith21-Jul-06 4:09
Josh Smith21-Jul-06 4:09 
GeneralRe: invalidate() in winforms Pin
Judah Gabriel Himango21-Jul-06 6:02
sponsorJudah Gabriel Himango21-Jul-06 6:02 

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.