… and the problem is solved!

By xorlabs

The page posted on our website has been corrected. There were actually two problems. The first was that the XML message was not well formed. Notice that each of the parameters in the message should be bracketed with tags indicating the data type. The original LINQ to XML code in C# failed to add those tags, so not surprisingly, the Linden server’s parser rejected it.

The second problem was that the XML string returned by the XElement class ToString() method neatly adds tabs and newlines so that the XML looks good when printed out. Unfortunately the Linden server’s XML parser chokes on the resulting string. Adding a couple of lines of code removing the tabs and newlines results in one long string, but makes everything work just fine.

The class as you now see it is working in a prototype C# application which is correctly transmitting XML-RPC to a scripted object and is receiving an echo of the parameter values being returned by the scripted object from SL. We will show you the LINQ to XML code which parses the return message and the completed LSL script probably during or before the weekend.

Leave a Reply