.net - Represent XML without xsd -


Note: I can not use XSD ... why not going.

I have a problem that represents the following XML in a class that it should be deserialized:

XML:

  & Lt; Product & gt; & Lt; Sku & gt; Oursku & lt; / Sku & gt; & Lt; Attribute name = "attrib1" & gt; Value 1 & lt; / Attribute & gt; & Lt; Attribute name = "attrib2" & gt; Value 2 & lt; / Attribute & gt; & Lt; Attribute name = "attribx" & gt; Value x and lt; / Attribute & gt; & Lt; / Products & gt;  

The problem property represents the nodes

Whatever I have done so far:

  [XmlElement (ElementName = "attribute ")] Public attribute [] Properties of the product; Public class characteristic {[XmlAttribute (attribute name = "name")] public string attribute name; Public Attribution () {}}  

I know that I'm missing something in the price shop, and probably

Is this work for you ??


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -