New Here-XML-Error parsing module spec?

New Here-XML-Error parsing module spec?

Post by Dillon Doyl » Sun, 21 May 2006 07:51:19



So What I am tryint to do is create a realy simple xml widget for my
new blog. I want to put html into the cdata, but it returns and error:

Error parsing module spec:
There should not be CDATA here

Here is what I am trying to use:

<?xml version="1.0" encoding="UTF-8" ?>
<Module>
  <ModulePrefs title="dillonsBLOG2.0 MP3 Player"
        title_url="http://dillondoyle.googlepages.com/index.html"
        height="300"
        author="Dillon Doyle"

        author_location="St. Louis Park, MN"
        screenshot="http://dillondoyle.googlepages.com/gadget.png"
        thumbnail="http://dillondoyle.googlepages.com/gadgetthumb.png"/>
        locale lang="en" country="us" />
  <content type="html">
    <![CDATA[

<style type="text/css">
.ws6 {font-size: 8px;}
.ws7 {font-size: 9.3px;}
.ws8 {font-size: 11px;}
.ws9 {font-size: 12px;}
.ws10 {font-size: 13px;}
.ws11 {font-size: 15px;}
.ws12 {font-size: 16px;}
.ws14 {font-size: 19px;}
.ws16 {font-size: 21px;}
.ws18 {font-size: 24px;}
.ws20 {font-size: 27px;}
.ws22 {font-size: 29px;}
.ws24 {font-size: 32px;}
.ws26 {font-size: 35px;}
.ws28 {font-size: 37px;}
.ws36 {font-size: 48px;}
.ws48 {font-size: 64px;}
.ws72 {font-size: 96px;}
.wpmd {font-size: 13px;font-family: 'Arial';font-style:
normal;font-weight: normal;text-decoration: none;}
</style>

<style type="text/css">
a.style1:link{color:#008000;text-decoration: none;}
a.style1:visited{color:#008000;text-decoration: none;}
a.style1:active{color:#C0C0C0;}
a.style1:hover{color:#FFCC00;text-decoration: underline;}
a.links:link{color:#008000;text-decoration: none;}
a.links:visited{color:#000000;text-decoration: none;}
a.links:active{color:#FFFF00;}
a.links:hover{color:#008080;text-decoration: underline;}
</style>

</head>

<body>

<div id="image1" style="position:absolute; overflow:hidden; left:0px;
top:279px; width:28px; height:21px; z-index:1"><img
src="http://dillondoyle.googlepages.com/dcc_b_03.gif" border=0 width=28
height=21></div>

<div id="image2" style="position:absolute; overflow:hidden; left:365px;
top:279px; width:10px; height:21px; z-index:2"><img
src="http://dillondoyle.googlepages.com/dcc_b_05.gif" border=0 width=10
height=21></div>

<div id="shape1" style="position:absolute; overflow:hidden; left:28px;
top:279px; width:337px; height:23px; z-index:3;
background-image:url(http://dillondoyle.googlepages.com/shape824304484.gif)"></div>

<div id="shape2" style="position:absolute; overflow:hidden; left:0px;
top:0px; width:375px; height:300px; z-index:0;
background-color:#C7c7c7">&nbsp;</div>

<div id="text2" style="position:absolute; overflow:hidden; left:94px;
top:187px; width:268px; height:66px; z-index:4">
<div class="wpmd">
<div align=center>There will eventually be more music, but this is what
I have been listening to now!</div>
</div>
</div>

<div id="iFrame1" style="position:absolute; left:95px; top:4px;
z-index:5">
<iframe name="iFrame1" width=270 height=180
src="http://dillondoyle.googlepages.com/humpdebump.html" scrolling="no"
frameborder="0"></iframe>
</div>

<div id="text3" style="position:absolute; overflow:hidden; left:0px;
top:3px; width:150px; height:90px; z-index:6">
<div class="wpmd">
<div><font class="ws12"><B><a
href="http://dillondoyle.googlepages.com/index.html" title="Home"
target="_home" class="links">Home</a></B></font></div>
<div><font class="ws12"><B><a
href="http://dillondoyle.googlepages.com/photos.html" title="Photos"
target="_photos" class="links">Photos</a></B></font></div>
<div><font class="ws12"><B><a
href="http://ibhistory07.itsmyland.com/dillon/blog/" title="Blog"
target="_blog" class="links">Blog</a></B></font></div>
</div>
</div>

<div id="text4" style="position:absolute; overflow:hidden; left:232px;
top:281px; width:177px; height:18px; z-index:7">
<div class="wpmd">
<div>Copy Right Dillon Doyle</div>
</div>
</div>

<div id="image3" style="position:absolute; overflow:hidden; left:114px;
top:280px; width:104px; height:17px; z-index:8"><a
href="http://fusion.google.com/add?gadgeturl=http://dillondoyle.googlepages..."
title="Add To Google Personalized Homepaage"><img
src="add-to-google-plus.gif" border=0 width=104 height=17></a></div>

</body>
</html>

        ]]>
  </content>
</Module>
</xml>

 
 
 

New Here-XML-Error parsing module spec?

Post by Dillon Doyl » Sun, 21 May 2006 07:52:42


So What I am tryint to do is create a realy simple xml widget for my
new blog. I want to put html into the cdata, but it returns and error:

Error parsing module spec:
There should not be CDATA here

Here is what I am trying to use:

<?xml version="1.0" encoding="UTF-8" ?>
<Module>
  <ModulePrefs title="dillonsBLOG2.0 MP3 Player"
        title_url="http://dillondoyle.googlepages.com/index.html"
        height="300"
        author="Dillon Doyle"

        author_location="St. Louis Park, MN"
        screenshot="http://dillondoyle.googlepages.com/gadget.png"
        thumbnail="http://dillondoyle.googlepages.com/gadgetthumb.png"/>
        locale lang="en" country="us" />
  <content type="html">
    <![CDATA[

<style type="text/css">
.ws6 {font-size: 8px;}
.ws7 {font-size: 9.3px;}
.ws8 {font-size: 11px;}
.ws9 {font-size: 12px;}
.ws10 {font-size: 13px;}
.ws11 {font-size: 15px;}
.ws12 {font-size: 16px;}
.ws14 {font-size: 19px;}
.ws16 {font-size: 21px;}
.ws18 {font-size: 24px;}
.ws20 {font-size: 27px;}
.ws22 {font-size: 29px;}
.ws24 {font-size: 32px;}
.ws26 {font-size: 35px;}
.ws28 {font-size: 37px;}
.ws36 {font-size: 48px;}
.ws48 {font-size: 64px;}
.ws72 {font-size: 96px;}
.wpmd {font-size: 13px;font-family: 'Arial';font-style:
normal;font-weight: normal;text-decoration: none;}
</style>

<style type="text/css">
a.style1:link{color:#008000;text-decoration: none;}
a.style1:visited{color:#008000;text-decoration: none;}
a.style1:active{color:#C0C0C0;}
a.style1:hover{color:#FFCC00;text-decoration: underline;}
a.links:link{color:#008000;text-decoration: none;}
a.links:visited{color:#000000;text-decoration: none;}
a.links:active{color:#FFFF00;}
a.links:hover{color:#008080;text-decoration: underline;}
</style>

</head>

<body>

<div id="image1" style="position:absolute; overflow:hidden; left:0px;
top:279px; width:28px; height:21px; z-index:1"><img
src="http://dillondoyle.googlepages.com/dcc_b_03.gif" border=0 width=28
height=21></div>

<div id="image2" style="position:absolute; overflow:hidden; left:365px;
top:279px; width:10px; height:21px; z-index:2"><img
src="http://dillondoyle.googlepages.com/dcc_b_05.gif" border=0 width=10
height=21></div>

<div id="shape1" style="position:absolute; overflow:hidden; left:28px;
top:279px; width:337px; height:23px; z-index:3;
background-image:url(http://dillondoyle.googlepages.com/shape824304484.gif)"></div>

<div id="shape2" style="position:absolute; overflow:hidden; left:0px;
top:0px; width:375px; height:300px; z-index:0;
background-color:#C7c7c7">&nbsp;</div>

<div id="text2" style="position:absolute; overflow:hidden; left:94px;
top:187px; width:268px; height:66px; z-index:4">
<div class="wpmd">
<div align=center>There will eventually be more music, but this is what
I have been listening to now!</div>
</div>
</div>

<div id="iFrame1" style="position:absolute; left:95px; top:4px;
z-index:5">
<iframe name="iFrame1" width=270 height=180
src="http://dillondoyle.googlepages.com/humpdebump.html" scrolling="no"
frameborder="0"></iframe>
</div>

<div id="text3" style="position:absolute; overflow:hidden; left:0px;
top:3px; width:150px; height:90px; z-index:6">
<div class="wpmd">
<div><font class="ws12"><B><a
href="http://dillondoyle.googlepages.com/index.html" title="Home"
target="_home" class="links">Home</a></B></font></div>
<div><font class="ws12"><B><a
href="http://dillondoyle.googlepages.com/photos.html" title="Photos"
target="_photos" class="links">Photos</a></B></font></div>
<div><font class="ws12"><B><a
href="http://ibhistory07.itsmyland.com/dillon/blog/" title="Blog"
target="_blog" class="links">Blog</a></B></font></div>
</div>
</div>

<div id="text4" style="position:absolute; overflow:hidden; left:232px;
top:281px; width:177px; height:18px; z-index:7">
<div class="wpmd">
<div>Copy Right Dillon Doyle</div>
</div>
</div>

<div id="image3" style="position:absolute; overflow:hidden; left:114px;
top:280px; width:104px; height:17px; z-index:8"><a
href="http://fusion.google.com/add?gadgeturl=http://dillondoyle.googlepages..."
title="Add To Google Personalized Homepaage"><img
src="add-to-google-plus.gif" border=0 width=104 height=17></a></div>

</body>
</html>

        ]]>
  </content>
</Module>
</xml>

 
 
 

1. c# specs and ide do not match parsing of XML comments

check it out.  The c# spec says one thing and the ide
delivers less as far as intellisense of XML comments .  If
it is not fixed at least post a doc somewhere so develoers
can figure out documentiong code. JAva is much better
about this.  Worst part is C# is up to par, the ide and
intellisense is not.  

good going guys.  embarass C# developers from the
beginning.
On the other hand threading is awsome so I guess that
should count as a 500 point bonus for MS.

2. PIX dynamic VPN question

3. Xml Parsing Error sending valid Xml to stored procedure from ADO.Net / C#

4. ?

5. System.Xml.XmlTextReader.ParseRoot() error when reading xml file from treenode TreeNodeSrc

6. Where does FP2000 record errors

7. New XML parsing solution for C#

8. strange DNS problem

9. Parse Error, no assembly associated with Xml key ?

10. XML parsing error: Selecting an item from a HTML drop-down list

11. XMl Parsing Error - Please help

12. XML Data Parsing error

13. XML parse error: Invalid at the top level of the document