Hii to All
>
I was implementing Activitiy template by going through the link:
http://code.google.com/apis/opensocial/docs/0.7/reference/opensocial.Activity.html
i implemented 2 xml file named as ActivityTemplate.xml and messages.xml.
ActivityTemplate.xml :-
-----------------------------------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<Module>
<ModulePrefs title="ListenToThis">
<Locale messages="http://localhost/GOSDemoAppPHP/messages.xml"/>
<Require feature="opensocial-0.7"/>
</ModulePrefs>
<Content type="html">
<![CDATA[
<script>
gadgets.util.registerOnLoadHandler();
</script>
<script>
var owner = "anand";
var viewer = "aki";
var activity = opensocial.newActivity('LISTEN_TO_THIS_SONG',
{Song: 'Do That There - (Young Einstein hoo-hoo mix)',
Artist: 'Lyrics Born', Subject: viewer, Owner: owner});
</script>
]]>
</Content>
</Module>
-------------------------------------------------------------------------------------------------------------------
messages.xml :
-------------------------------------------------------------------------------------------------------------------
<messagebundle>
<msg name="LISTEN_TO_THIS_SONG">
${Subject.DisplayName} told ${Owner.DisplayName} to listen
to ${Song} by ${Artist}
</msg>
</messagebundle>
-------------------------------------------------------------------------------------------------------------------
when i ran that gadget on shindig , its gave ERROR message like :
Error :
-------------------------------------------------------------------------------------------------------------------
Warning: simplexml_load_string() [function.simplexml-load-string]: Entity:
line 1: parser error : Space required after the Public Identifier in
C:\wamp\www\shindig\php\src\gadgets\MessageBundleParser.php on line 33
Warning: simplexml_load_string() [function.simplexml-load-string]: <!DOCTYPE
HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> in
C:\wamp\www\shindig\php\src\gadgets\MessageBundleParser.php on line 33
Warning: simplexml_load_string() [function.simplexml-load-string]: ^ in
C:\wamp\www\shindig\php\src\gadgets\MessageBundleParser.php on line 33
Warning: simplexml_load_string() [function.simplexml-load-string]: Entity:
line 1: parser error : SystemLiteral " or ' expected in
C:\wamp\www\shindig\php\src\gadgets\MessageBundleParser.php on line 33
Warning: simplexml_load_string() [function.simplexml-load-string]: <!DOCTYPE
HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> in
C:\wamp\www\shindig\php\src\gadgets\MessageBundleParser.php on line 33
Warning: simplexml_load_string() [function.simplexml-load-string]: ^ in
C:\wamp\www\shindig\php\src\gadgets\MessageBundleParser.php on line 33
Warning: simplexml_load_string() [function.simplexml-load-string]: Entity:
line 1: parser error : SYSTEM or PUBLIC, the URI is missing in
C:\wamp\www\shindig\php\src\gadgets\MessageBundleParser.php on line 33
Warning: simplexml_load_string() [function.simplexml-load-string]: <!DOCTYPE
HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> in
C:\wamp\www\shindig\php\src\gadgets\MessageBundleParser.php on line 33
Warning: simplexml_load_string() [function.simplexml-load-string]: ^ in
C:\wamp\www\shindig\php\src\gadgets\MessageBundleParser.php on line 33
-------------------------------------------------------------------------------------------------------------------
all the ERROR are coming because of simplexml_load_string() .
i am not getting completely why this error is coming ,,,,
i am using PHP 5.2.3 with all required extension also.
any one can help me on this particular issue
thx to all
cheers
anand
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Implementing OpenSocial Containers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/opensocial-container?hl=en
-~----------~----~----~----~------~----~------~--~---