It looks like echo "<p id='Xml'>$selectionXml</p>"; is adding the xml as string to your html tag, not as an object. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Highlight-Object-Code-Problem-tp5489016p5501735.html Sent from the MapGuide Users mailing list archive at Nabble.com.