Infrastructure Map Server Forum
Welcome to Autodesk’s Infrastructure Map Server Forums. Share your knowledge, ask questions, and explore popular Infrastructure Map Server topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Parsing XML passed via URL in C#?

0 REPLIES 0
Reply
Message 1 of 1
Anonymous
215 Views, 0 Replies

Parsing XML passed via URL in C#?

Ok, I am using Mapguide Open Source 1.1 (soon to replace with enterprise when it arrives in the mail) but I am having an interesting problem with the XML passed over the URL in what I would guess is the equivalent of the reports in 6.5 (passes the selection as an XML)

The problem is that the XML does not decode properly from the URL as far as I can tell, here is a sample:
%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%0A%3CFeatureSet%3E%0A%3CLayer%20id%3D%221e7fd680-0000-1000-8000-000347c984a0%22%3E%0A%3CClass%20id%3D%22Schema1%3ACycles%22%3E%0A%3CID%3EAwAAAA%3D%3D%3C%2FID%3E%0A%3C%2FClass%3E%0A%3C%2FLayer%3E%0A%3C%2FFeatureSet%3E%0A

I have tried decoding it with System.Uri.UnescapeDataString() and
System.Web.HttpUtility.UrlDecode()
but they spit out: AwAAAA==
which looks rather, umm, interesting.

Anyone know the proper way to get the XML string out of there? Inserting that into the XML parser just errors out and refuses to read even the top level node...
0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report