Click here to Skip to main content
16,012,223 members
Home / Discussions / XML / XSL
   

XML / XSL

 
GeneralRe: XML & ASP.NET - automate daily updates Pin
shahar rr r18-May-05 4:59
shahar rr r18-May-05 4:59 
Generalcreate xsd scheme Pin
Anonymous16-May-05 22:40
Anonymous16-May-05 22:40 
GeneralRe: create xsd scheme Pin
niansah17-May-05 2:11
niansah17-May-05 2:11 
GeneralRe: create xsd scheme Pin
Brian Van Beek23-May-05 8:57
Brian Van Beek23-May-05 8:57 
GeneralRe: create xsd scheme Pin
eggie524-May-05 18:00
eggie524-May-05 18:00 
GeneralInserting node element between nodes Pin
ksanju100016-May-05 21:39
ksanju100016-May-05 21:39 
GeneralRe: Inserting node element between nodes Pin
DavidNohejl17-May-05 8:32
DavidNohejl17-May-05 8:32 
Generalcomplex XML Serialization Pin
jhsun414-May-05 8:42
jhsun414-May-05 8:42 
Hi all,

I need to serialize and deserialize complex elements that have attributes, and get their values as well.

An example xml snippet:

<root version="1.0" rating="1">
<tempsettings>
<setting name="blah1" istemp="False">99
<setting name="blah2" istemp="True">100



<root> contains a <tempsettings> which has an ArrayList of
<setting> that is converted to a typed array when accessed via a property.

The problem I'm running into is along with access to <setting>'s
attributes I need the values contained in them as well. (eg. 99, 100).
I've been fuddling around for days and can't come up with how to do this.
I can't use the xsd generator to generate my c# class as my xml root
is stuck to being "root" and contains additional attributes.
Is there a way I can achieve what I need using .NET XML
serialization? Confused | :confused:

I sincerely appreciate any feedback.
GeneralRe: complex XML Serialization Pin
DavidNohejl14-May-05 9:06
DavidNohejl14-May-05 9:06 
GeneralRe: complex XML Serialization Pin
jhsun414-May-05 9:23
jhsun414-May-05 9:23 
GeneralRe: complex XML Serialization Pin
jhsun414-May-05 9:28
jhsun414-May-05 9:28 
GeneralRe: complex XML Serialization Pin
DavidNohejl14-May-05 9:31
DavidNohejl14-May-05 9:31 
GeneralRe: complex XML Serialization Pin
jhsun414-May-05 9:32
jhsun414-May-05 9:32 
GeneralRe: complex XML Serialization Pin
DavidNohejl14-May-05 9:50
DavidNohejl14-May-05 9:50 
GeneralRetriving Attributes Value from XML file Pin
ksanju100012-May-05 19:20
ksanju100012-May-05 19:20 
GeneralRe: Retriving Attributes Value from XML file Pin
Anonymous13-May-05 0:04
Anonymous13-May-05 0:04 
GeneralRe: Retriving Attributes Value from XML file Pin
Anonymous13-May-05 0:26
Anonymous13-May-05 0:26 
GeneralRe: Retriving Attributes Value from XML file Pin
Anonymous13-May-05 1:00
Anonymous13-May-05 1:00 
GeneralRe: Retriving Attributes Value from XML file Pin
Anonymous13-May-05 1:02
Anonymous13-May-05 1:02 
QuestionWhat I need to do.... Pin
Tridith12-May-05 7:54
Tridith12-May-05 7:54 
GeneralConverting flat records into hierarchial records. Pin
Maharishi Bhatia10-May-05 3:21
Maharishi Bhatia10-May-05 3:21 
GeneralXML Pin
Member 19080777-May-05 21:38
Member 19080777-May-05 21:38 
GeneralRe: XML Pin
DavidNohejl8-May-05 0:47
DavidNohejl8-May-05 0:47 
GeneralFor-each loops Pin
Dwayner795-May-05 8:38
Dwayner795-May-05 8:38 
GeneralRe: For-each loops Pin
hp10811-May-05 3:26
hp10811-May-05 3:26 

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.