Help creating and reading xml tags

Hello experts, this is loaded question.  I have created xml files and read from them in the past, but the new xml's i am creating plus reading from are becoming more complicated.  They are larger using attributes with larger tree structures.  My first question is why would i need to serialize an xml file?  My second is can someone make sense of this code below?  I found some code that looks like it is creating a shippingnote element but I am not sure what the extra attributes above the code are doing.  If i can add properties to create xml elements that would help a lot.  Basically i need a good tutorial on creating and reading xmls for visual studio 2008.

<XmlIgnore> _   'what does this do?
'*********************** ShippingNote element ***********************
		<XmlElement(ElementName:="ShippingNote",IsNullable:=false,Form:=XmlSchemaForm.Qualified,DataType:="string"), _
		EditorBrowsable(EditorBrowsableState.Advanced)> _
		Public __ShippingNote As String
		
		<XmlIgnore> _
		Public Property ShippingNote As String
			Get
				ShippingNote = __ShippingNote
			End Get
			Set(Value As String)
				__ShippingNote = Value
			End Set
		End Property

Open in new window

tentavariousAsked:
Who is Participating?
 
srikanthreddyn143Connect With a Mentor Commented:
See the uses in this link but the examples are in C#

http://www.dotnetjohn.com/articles.aspx?articleid=173
0
 
srikanthreddyn143Commented:
Xml Ignore doesn't include shipping note as a tag when you you deserialize the class into xml.
0
 
srikanthreddyn143Commented:
Read deserialize as serialize.

0
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

 
tentavariousAuthor Commented:
Ok, still confused why do i need to serialize or deserialize xmls?  
0
 
srikanthreddyn143Commented:
One basic use is XML can be used across multiple platforms. Above link has other uses of XML serialization.
0
 
MikkelAStrojekCommented:
The XmlIgnore tells the XmlSerializer to ignore the property when de/serializing.
XmlSerializer can be used turning object graphs to and from xml.

I your case the ShippingNote property/variable on the class in mind, will not be serialized. That is it won't be in the xml.

0
 
käµfm³d 👽Connect With a Mentor Commented:
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.