?
Solved

Help creating and reading xml tags

Posted on 2011-02-24
7
Medium Priority
?
310 Views
Last Modified: 2012-08-13
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

0
Comment
Question by:tentavarious
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 11

Expert Comment

by:srikanthreddyn143
ID: 34970761
Xml Ignore doesn't include shipping note as a tag when you you deserialize the class into xml.
0
 
LVL 11

Expert Comment

by:srikanthreddyn143
ID: 34970818
Read deserialize as serialize.

0
 
LVL 11

Accepted Solution

by:
srikanthreddyn143 earned 800 total points
ID: 34970842
See the uses in this link but the examples are in C#

http://www.dotnetjohn.com/articles.aspx?articleid=173
0
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 

Author Comment

by:tentavarious
ID: 34970844
Ok, still confused why do i need to serialize or deserialize xmls?  
0
 
LVL 11

Expert Comment

by:srikanthreddyn143
ID: 34970952
One basic use is XML can be used across multiple platforms. Above link has other uses of XML serialization.
0
 
LVL 5

Expert Comment

by:MikkelAStrojek
ID: 34982600
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
 
LVL 75

Assisted Solution

by:käµfm³d 👽
käµfm³d   👽 earned 600 total points
ID: 34988331
0

Featured Post

Monthly Recap

May was a big month for new releases from Linux Academy! Take a look at what our team built recently in our blog. You can access the newest releases from our blog.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses

800 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question