Connecting Tech Pros Worldwide Help | Site Map

Retrieve the schema of a class

  #1  
Old November 12th, 2005, 03:03 AM
HJ Rodirguez
Guest
 
Posts: n/a
Hello all,

I was wondering is their a method in dotnet whereby I can automatically
retrive the schema of a class which I am serializing (with XmlSerializer).

Assume I have the following class

Public Class Test

Public Sub New()
MyBase.New()
End Sub

_testID as int32
_testName as String

<XmlAttributeAttribute()> Public Property TestID() As int32
Get
Return _testID
End Get
Set(ByVal Value As int32)
_testID= value
End Set
End Property

<XmlAttributeAttribute()> Public Property TestName() As String
Get
Return _testName
End Get
Set(ByVal Value As String)
_testName= value
End Set
End Property

End Class

I can serialize this class into XML using the XmlSerializer class. My
question is how can get the schema which of the class?


Thanks
HJ Rodriguez
Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
Get valid values for an element from its schema GU answers 1 May 13th, 2006 12:15 AM
Dataset Schema from XSD MR answers 3 November 17th, 2005 07:25 AM
Remoting Class From Seperate DLL Richard Bell answers 8 November 16th, 2005 04:49 AM
Retrieve the schema of a class HJ Rodriguez answers 0 November 12th, 2005 03:03 AM