I am realy happy now. Thank you for your help. Didn't know that kind
of escapping that CDATA-Tag and didn't find it over google.de
(germany).
Saved me a lot of work. Hope my Alias Request will work that fine
too :D

Kind regards,
Tai Kahar

On 25 Mrz., 14:28, Tai Kahar <[email protected]> wrote:
> Thanks a lot, I will test it. Didn't now that before, like noone elsse
> arround :D
>
> On 25 Mrz., 10:07, Rob Russell <[email protected]> wrote:
>
>
>
> > So if I understand you, you have a structure like:
>
> > <?xml version="1.0" encoding="UTF-8"?>
> > <![CDATA[
>
> > <Module>
> > <ModulePrefs title="gadget 1" />
> > <Content type="url"
> > href="http://example.com/gadget1.xml<http://example.com/gadget.xml>"/>
> > </Module>
>
> > <Module>
> > <ModulePrefs title="gadget 2" />
> > <Content type="url"
> > href="http://example.com/gadget2.xml<http://example.com/gadget.xml>"/>
> > </Module>
>
> > ]]>
>
> > In this case trying to nest
> > <![CDATA[
> > ...
> > ]]>
> > anywhere inside will break your xml. So you have to do a little trick:
> > <?xml version="1.0" encoding="UTF-8"?>
> > <yourouterxmlstuff />
> > <![CDATA[
>
> > <Module>
> > <ModulePrefs title="gadget 1" />
> > <Content type="url"
> > href="http://example.com/gadget1.xml<http://example.com/gadget.xml>"
>
> > <![CDATA[
> > <!--
> > ALm6fM2gPoga8GuxfhLdzfOmf+cpbZfw6Wkqpfc1GKKDTJAxqiPpReB3bWn8BmpM+g5Mp3AvmN8 
> > fXdWPwk5yGTMQWQhGBLkwQJh0+3cf9cNaBuvHRdiiGCx//7kypoQtqu0XfvkeFmDsB2bkTmLQY6 
> > EQn0LPOw==
> > -->
> > ]]]]><![CDATA[>]]>
> > </Content>
> > </Module>
>
> > <Module>
> > <ModulePrefs title="gadget 2" />
> > <Content type="url"
> > href="http://example.com/gadget2.xml<http://example.com/gadget.xml>"/>
> > </Module>
>
> > ]]>
>
> > I haven't tested this but basically the line with the ]]]]><![CDATA[>]]> is
> > unwrapped as "]]" then the CDATA block ends, then another CDATA block starts
> > and the first character in it is ">", then the second block ends with ]]>.
> > This is the normal way to cope with ]]> in a CDATA block, I just looked this
> > up on wikipedia (http://en.wikipedia.org/wiki/CDATA#Uses_of_CDATA_sections)
> > but I've read it elsewhere too.
>
> > hth
> > Rob Russell
> > Google Developer Relations
>
> > On Thu, Mar 25, 2010 at 1:49 AM, Tai Kahar <[email protected]> wrote:
> > > The Problem is, my Gadget-XML is inside of a CDATA-Tag of a XML, which
> > > includes other Gadgets as well. So i can't put the CDATA Tag inside of
> > > my <Content>, cause it breaks my XML.
>
> > > If ther is no other way to solve my Problem, i have to change a lot of
> > > things. *sigh* i think I have to change em :(
>
> > > On 24 Mrz., 01:58, Rob Russell <[email protected]> wrote:
> > > > Hi,
> > > > I just successfully validated a url-type gadget like this
>
> > > > <Content type="url" href="http://example.com/gadget.xml"; >
> > > > <![CDATA[
> > > > <!--
>
> > > ALm6fM2gPoga8GuxfhLdzfOmf+cpbZfw6Wkqpfc1GKKDTJAxqiPpReB3bWn8BmpM+g5Mp3AvmN8
> > > fXdWPwk5yGTMQWQhGBLkwQJh0+3cf9cNaBuvHRdiiGCx/BNEU/7kypoQtqu0XfvkeFmDsB2bkTm
> > > LQY6EQn0LPOw==
> > > > -->
> > > > ]]>
> > > > </Content>
>
> > > > You should be able to do something like this in your case as well.
>
> > > > Rob Russell
> > > > Google Developer Relations
>
> > > > On Tue, Mar 23, 2010 at 3:01 AM, Tai Kahar <[email protected]>
> > > wrote:
> > > > > Hi,
>
> > > > > i got a problem verifying my Gadget. I can't put a CDATA Tag in my 
> > > > > url-
> > > > > type Gadget, because the Gadget XML  itself is in a CDATA Tag. A CDATA
> > > > > Tag in the gadget will break my XML where all the other Gadget's are
> > > > > included.
>
> > > > > Is there any other way to verify my Gadget, without putting the token
> > > > > inside of a CDATA Tag? (Putting it inside of <Content> doesn't work.)
>
> > > > > Else, I have to do a lot of work, just to fix that little problem...
>
> > > > > Kind regards,
> > > > > Tai Kahar
>
> > > > > --
> > > > > You received this message because you are subscribed to the Google
> > > Groups
> > > > > "iGoogle Developer Forum" group.
> > > > > To post to this group, send email to
> > > [email protected].
> > > > > To unsubscribe from this group, send email to
> > > > > [email protected]<Google-Gadgets-API%2Bunsubs
> > > > >  [email protected]><Google-Gadgets-API%2Bunsubs
> > > [email protected]>
> > > > > .
> > > > > For more options, visit this group at
> > > > >http://groups.google.com/group/Google-Gadgets-API?hl=en.
>
> > > --
> > > You received this message because you are subscribed to the Google Groups
> > > "iGoogle Developer Forum" group.
> > > To post to this group, send email to [email protected].
> > > To unsubscribe from this group, send email to
> > > [email protected]<Google-Gadgets-API%2Bunsubs
> > >  [email protected]>
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/Google-Gadgets-API?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"iGoogle Developer Forum" 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/Google-Gadgets-API?hl=en.

Reply via email to