List Info

Thread: XML comments in gadget code




XML comments in gadget code
user name
2006-10-05 14:35:33
Good morning...

I've tried developing my first gadget, it so far so good, I
think I'm
ready to release it to the world.  But I wanted to some
comments before
I did, unfortunately they seemed to break the gadget?!

I start with something like this:

<?xml version="1.0" encoding="UTF-8"
?>

<!--
  These are the comments of my Google Gadget!  Go Go
Gadget!!!
-->

<Module>
  <ModulePrefs title="__UP_language__"
...

And it's brtoken - nothing displays on my homepage - not
even the
title!!!

AFAIK comments in an XML file can be outside the root
element so this
should be okay, right?

Schultzter


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Google Homepage API" group.
To post to this group, send email to Google-Homepage-APIgooglegroups.com
To unsubscribe from this group, send email to
Google-Homepage-API-unsubscribegooglegroups.com
For more options, visit this group at ht
tp://groups.google.com/group/Google-Homepage-API
-~----------~----~----~----~------~----~------~--~---

XML comments in gadget code
user name
2006-10-07 02:04:02
Hey Schultzter,

Your syntax for comments in XML documents are correct:
<!-- comments -->

However, our parsers will *not* allow you to have comments
*before*
your root element, which in this case is <Module>. 
Simply move the
comments below <Module> and you should be fine.

e.g.
<?xml version="1.0" encoding="UTF-8"
?>
<Module>
<!--
  These are the comments of my Google Gadget!  Go Go
Gadget!!!
-->
  <ModulePrefs>...</ModulePrefs>

Thanks,
Dann


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Google Homepage API" group.
To post to this group, send email to Google-Homepage-APIgooglegroups.com
To unsubscribe from this group, send email to
Google-Homepage-API-unsubscribegooglegroups.com
For more options, visit this group at ht
tp://groups.google.com/group/Google-Homepage-API
-~----------~----~----~----~------~----~------~--~---

XML comments in gadget code
user name
2006-10-10 17:16:35
Good afternoon...

Thanks for the reply, it explains things.

I tried the comments in the <Module> section and it
works now.  I've
submitted the Gadget to appear in the directory.

Thanks.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Google Homepage API" group.
To post to this group, send email to Google-Homepage-APIgooglegroups.com
To unsubscribe from this group, send email to
Google-Homepage-API-unsubscribegooglegroups.com
For more options, visit this group at ht
tp://groups.google.com/group/Google-Homepage-API
-~----------~----~----~----~------~----~------~--~---

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )