[mapguide-users] Suggested approach to consume EnumerateResources (C#)

diordonezr diordonezr at hotmail.com
Thu Feb 6 07:12:25 PST 2020


Hi There.

What is the suggested approach to consume the resulting XML from
EnumerateResources in C# ?

So far I have succesfully retrieved the full list of resources and the
xmlDoc is ready.
Is there any way to process that XML in a friendly manner ? perhaps
serialization with XSD or MaestroAPI ?

Thanks for your comments

Diego


// Assuming $resourceService has already been initialized.
   MgResourceIdentifier mgResourceID = new
MgResourceIdentifier("Library://");
   MgByteReader mgByteReader =
resourceService.*EnumerateResources*(mgResourceID, -1, string.Empty);
   string echoBbyteReader = mgByteReader.ToString();

   XmlDocument xmlDoc = new XmlDocument();
   xmlDoc.LoadXml(echoBbyteReader);



--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html


More information about the mapguide-users mailing list