<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:v =
"urn:schemas-microsoft-com:vml" xmlns:o =
"urn:schemas-microsoft-com:office:office" xmlns:w =
"urn:schemas-microsoft-com:office:word" xmlns:m =
"http://schemas.microsoft.com/office/2004/12/omml"><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16640" name=GENERATOR>
<STYLE>@font-face {
        font-family: Cambria Math;
}
@font-face {
        font-family: Calibri;
}
@page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.0in 1.0in 1.0in; }
P.MsoNormal {
        FONT-SIZE: 11pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Calibri","sans-serif"
}
LI.MsoNormal {
        FONT-SIZE: 11pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Calibri","sans-serif"
}
DIV.MsoNormal {
        FONT-SIZE: 11pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Calibri","sans-serif"
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline; mso-style-priority: 99
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline; mso-style-priority: 99
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline; mso-style-priority: 99
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline; mso-style-priority: 99
}
SPAN.EmailStyle17 {
        COLOR: windowtext; FONT-FAMILY: "Calibri","sans-serif"; mso-style-type: personal-compose
}
.MsoChpDefault {
        mso-style-type: export-only
}
DIV.Section1 {
        page: Section1
}
</STYLE>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></HEAD>
<BODY lang=EN-US vLink=purple link=blue>
<DIV dir=ltr align=left><SPAN class=125223713-22052008><FONT face=Verdana
color=#0000ff size=2>Hi Darrin,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=125223713-22052008><FONT face=Verdana
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=125223713-22052008><FONT face=Verdana
color=#0000ff size=2>Thanks for the tip. Please take a look at Kenneth's
Meastro API:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=125223713-22052008><FONT face=Verdana
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=125223713-22052008><FONT face=Verdana
color=#0000ff size=2><A
href="http://trac.osgeo.org/mapguide/browser/trunk/Tools/Maestro/MaestroAPI">http://trac.osgeo.org/mapguide/browser/trunk/Tools/Maestro/MaestroAPI</A></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=125223713-22052008><FONT face=Verdana
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=125223713-22052008><FONT face=Verdana
color=#0000ff size=2>It relies on .NET 2.0 for MG types
(de)serialization.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=125223713-22052008><FONT face=Verdana
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=125223713-22052008><FONT face=Verdana
color=#0000ff size=2>Regards,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=125223713-22052008><FONT face=Verdana
color=#0000ff size=2>Maksim Sestic</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> mapguide-users-bounces@lists.osgeo.org
[mailto:mapguide-users-bounces@lists.osgeo.org] <B>On Behalf Of </B>Darrin
Maidlow<BR><B>Sent:</B> Thursday, May 22, 2008 15:28<BR><B>To:</B>
mapguide-users@lists.osgeo.org<BR><B>Subject:</B> [mapguide-users] .NET Objects
for working with Mapguide Resources<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV class=Section1>
<P class=MsoNormal>Hi List,<o:p></o:p></P>
<P class=MsoNormal><o:p> </o:p></P>
<P class=MsoNormal>I’ve written two posts I thought I would share with you on
the topic of .NET based MG dev. The first describes a method I’ve worked
out to create relatively robust .NET based objects based on the Xml Schema
Definitions provided with the server. Please note, I currently
am only working with MGE 2009. I have not tried this code on MGOS.
If you do try them on MGOS, please let me know what results have.<o:p></o:p></P>
<P class=MsoNormal><o:p> </o:p></P>
<P class=MsoNormal>In a nutshell, one can get the resource XML from the resource
service, load it into the object with the provided .parse method, manipulate the
object (without having to use xml) e.g. add child objects, change properties
etc, and finally spit it back out to XML for saving back to the
repository. Yay no longer need to be jealous of the PHP guys and their
object factories =D<o:p></o:p></P>
<P class=MsoNormal><o:p> </o:p></P>
<P class=MsoNormal>The second is a dynamic authoring example using these
objects, manipulating the MapDefinition before the viewer has loaded
it.<o:p></o:p></P>
<P class=MsoNormal><o:p> </o:p></P>
<P class=MsoNormal>Both come with full source code, and Visual Studio 2008
projects. I hope they are helpful to the other .NET devs out there.
<o:p></o:p></P>
<P class=MsoNormal><o:p> </o:p></P>
<P class=MsoNormal><A
href="http://www.webrade.com/blogs/darrin/2008/05/16/CreatingNETObjectsForMapguideXMLSchemaDefinitionsXSDUsingLINQ.aspx">http://www.webrade.com/blogs/darrin/2008/05/16/CreatingNETObjectsForMapguideXMLSchemaDefinitionsXSDUsingLINQ.aspx</A><o:p></o:p></P>
<P class=MsoNormal><A
href="http://www.webrade.com/blogs/darrin/2008/05/21/DynamicAuthoringInMapguideEnterpriseBeforeTheViewerHasLoaded.aspx">http://www.webrade.com/blogs/darrin/2008/05/21/DynamicAuthoringInMapguideEnterpriseBeforeTheViewerHasLoaded.aspx</A><o:p></o:p></P>
<P class=MsoNormal><o:p> </o:p></P>
<P class=MsoNormal>Enjoy.<o:p></o:p></P>
<P class=MsoNormal>darrin<o:p></o:p></P>
<P class=MsoNormal><o:p> </o:p></P></DIV><BR><BR>__________ NOD32 3118
(20080521) Information __________<BR><BR>This message was checked by NOD32
antivirus system.<BR><A
href="http://www.eset.com">http://www.eset.com</A><BR></BODY></HTML>