Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Creating a large ENTITY container???

From: "Chris Lovett" <chris@------.--->
To: NULL
Date: 12/31/2005 3:20:00 PM
This is a multi-part message in MIME format.

------=_NextPart_000_0054_01C60E1D.9C1FD490
Content-Type: text/plain;
	charset="Utf-8"
Content-Transfer-Encoding: quoted-printable

I took your sample and made it valid by replacing all single quotes in =
your HTML with double quotes, then you can wrap the whole thing in =
single quotes:

<?xml version=3D"1.0"?>
<!DOCTYPE Emails [
<!ELEMENT Emails (Email+)>
<!ELEMENT Email (RecipientName,RecipientEmail,FromEmail,MessageBody)+>
<!ELEMENT RecipientName (#PCDATA)>
<!ELEMENT RecipientEmail (#PCDATA)>
<!ELEMENT FromEmail (#PCDATA)>
<!ELEMENT MessageBody (#PCDATA)>
<!ENTITY MessageBodyContent '<![CDATA[
<table cellpadding=3D0 cellspacing=3D0 border=3D0 align=3Dcenter =
width=3D592=20
style=3D"width:592px;background:#FFFFFF;border-top:1px solid=20
#333366;border-left:1px solid #333366;border-bottom:1px solid=20
#333366;border-right:1px solid #333366;margin-top:0px;padding-top:0px;">
<tbody>
<tr><td><img src=3D"http://localhost/mywebsite/images/spacer.gif" =
width=3D"15"=20
height=3D"10" alt=3D"" /></td></tr>
<tr><td align=3Dcenter><a href=3D"http://localhost/mywebsite"><img=20
src=3D"http://localhost/mywebsite/images/mywebsite_logo_sm.gif" =
alt=3D"mywebsite=20
Logo" border=3D0></a></td></tr>
<tr><td><img src=3D"http://localhost/mywebsite/images/spacer.gif" =
width=3D"10"=20
height=3D"10" alt=3D"" /></td></tr>
<tr><td align=3D"center"><font class=3D"headerRED">mywebsite Newsletter =
for=20
the Week of 12/24/2005</font></td></tr>
<tr><td><img src=3D"http://localhost/mywebsite/images/spacer.gif" =
width=3D"10"=20
height=3D"10" alt=3D"" /></td></tr>
<tr><td align=3D"center"><a=20
href=3D"http://localhost/mywebsite">http://localhost/mywebsite</a></td></=
tr>
<tr><td><img src=3D"http://localhost/mywebsite/images/spacer.gif" =
width=3D"10"=20
height=3D"10" alt=3D"" /></td></tr>
<tr>
<td valign=3D"top">=20
(..... more html here .....)
</td>
</tr>
<tr><td><img src=3D"http://localhost/mywebsite/images/spacer.gif" =
width=3D"30"=20
height=3D"35" alt=3D"" border=3D0/></td></tr>
<tr>
<td>
<p align=3Dcenter><i>Items listed here do not necessarily imply=20
endorsement by the mywebsite.</i></p>
<p align=3Dcenter>To submit an event, action alert, announcement, or=20
article for the mywebsite newsletter, send an email to <a=20
href=3D"mailto:webmaster@m...?subject=3DItem for=20
Newsletter">webmaster@m...</a>.</p>
<p align=3Dcenter>To update or remove your account,<br>go to <a=20
href=3D"http://localhost/mywebsite/subscriber_login.asp">http://localhost=
/mywebsite/subscriber_login.asp</a><br>and=20
log in with your email address and password.</p>
<p align=3Dcenter>Copyright =C2=A92005 mywebsite<br><br><a =
href=3D""><img=20
src=3D"http://localhost/mywebsite/images/InterMedia_logo.gif" =
alt=3D"Powered by=20
InterMedia Solutions" border=3D0></a></p>
</td>
</tr>
</tbody>
</table>
<p> </p>
]]>'>
]>
<Emails>
<Email>
<RecipientName>Ed Burns</RecipientName>
<RecipientEmail>eburns@m...</RecipientEmail>
<FromEmail>webmaster@m...</FromEmail>
<MessageBody>&MessageBodyContent;</MessageBody>
</Email>
<Email>
<RecipientName>Carol Cox</RecipientName>
<RecipientEmail>cgcox@m...</RecipientEmail>
<FromEmail>webmaster@m...</FromEmail>
<MessageBody>&MessageBodyContent;</MessageBody>
</Email>
</Emails>



"adude28" <adude28@y...> wrote in message =
news:7CD27D47-40DC-44D6-8836-720E57BBF1DA@m......
>I tried the following.
>=20
> a) I tried converting all single quotes to double quotes and I got the =

> following error:
>=20
> "Parameter entities cannot be used inside markup declarations in an =
internal=20
> subset."
>=20
>     i) Then I converted all "<" to "<" and all ">" to ">"
>        I still got the following error: "Parameter entities cannot be =
used=20
> inside markup declarations in an internal subset."
>=20
> b) I tried converting all my double quotes in my HTML to single quotes =
and I=20
> got the following error:
>=20
> "Parameter entities cannot be used inside markup declarations in an =
internal=20
> subset."
>=20
>     i) Then I converted all "<" to "<" and all ">" to ">"
>         I still got the following error: "Parameter entities cannot be =
used=20
> inside markup declarations in an internal subset."
>=20
> c) I used the SYSTEM keyword and everything worked fine. But, I don't =
know=20
> how to post BOTH files to the ASP page to do the processing. So, that =
option=20
> is pretty much out for me.
>=20
> Am I missing something about options A & B?
>=20
> Thanks,
> Ed
>=20
>=20
>=20
>
------=_NextPart_000_0054_01C60E1D.9C1FD490
Content-Type: text/html;
	charset="Utf-8"
Content-Transfer-Encoding: quoted-printable

=EF=BB=BF<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Dutf-8">
<META content=3D"MSHTML 6.00.2900.2802" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2>I took your sample and made it valid by =
replacing=20
all single quotes in your HTML with double quotes, then you can wrap the =
whole=20
thing in single quotes:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT><FONT color=3D#0000ff size=3D2>
<P>&lt;?</FONT><FONT color=3D#800000 size=3D2>xml</FONT><FONT =
color=3D#0000ff size=3D2>=20
</FONT><FONT color=3D#ff0000 size=3D2>version</FONT><FONT =
color=3D#0000ff=20
size=3D2>=3D</FONT><FONT size=3D2>"</FONT><FONT color=3D#0000ff =
size=3D2>1.0</FONT><FONT=20
size=3D2>"</FONT><FONT color=3D#0000ff =
size=3D2>?&gt;<BR>&lt;!</FONT><FONT=20
color=3D#800000 size=3D2>DOCTYPE</FONT><FONT color=3D#0000ff size=3D2> =
</FONT><FONT=20
color=3D#ff0000 size=3D2>Emails</FONT><FONT color=3D#0000ff size=3D2>=20
[<BR>&lt;!</FONT><FONT color=3D#800000 size=3D2>ELEMENT</FONT><FONT =
color=3D#0000ff=20
size=3D2> </FONT><FONT color=3D#ff0000 size=3D2>Emails</FONT><FONT =
color=3D#0000ff=20
size=3D2> </FONT><FONT size=3D2>(</FONT><FONT color=3D#ff0000 =
size=3D2>Email</FONT><FONT=20
size=3D2>+)</FONT><FONT color=3D#0000ff =
size=3D2>&gt;<BR>&lt;!</FONT><FONT=20
color=3D#800000 size=3D2>ELEMENT</FONT><FONT color=3D#0000ff size=3D2> =
</FONT><FONT=20
color=3D#ff0000 size=3D2>Email</FONT><FONT color=3D#0000ff size=3D2> =
</FONT><FONT=20
size=3D2>(</FONT><FONT color=3D#ff0000 =
size=3D2>RecipientName</FONT><FONT=20
size=3D2>,</FONT><FONT color=3D#ff0000 =
size=3D2>RecipientEmail</FONT><FONT=20
size=3D2>,</FONT><FONT color=3D#ff0000 size=3D2>FromEmail</FONT><FONT=20
size=3D2>,</FONT><FONT color=3D#ff0000 size=3D2>MessageBody</FONT><FONT=20
size=3D2>)+</FONT><FONT color=3D#0000ff =
size=3D2>&gt;<BR>&lt;!</FONT><FONT=20
color=3D#800000 size=3D2>ELEMENT</FONT><FONT color=3D#0000ff size=3D2> =
</FONT><FONT=20
color=3D#ff0000 size=3D2>RecipientName</FONT><FONT color=3D#0000ff =
size=3D2>=20
</FONT><FONT size=3D2>(</FONT><FONT color=3D#0000ff =
size=3D2>#PCDATA</FONT><FONT=20
size=3D2>)</FONT><FONT color=3D#0000ff =
size=3D2>&gt;<BR>&lt;!</FONT><FONT=20
color=3D#800000 size=3D2>ELEMENT</FONT><FONT color=3D#0000ff size=3D2> =
</FONT><FONT=20
color=3D#ff0000 size=3D2>RecipientEmail</FONT><FONT color=3D#0000ff =
size=3D2>=20
</FONT><FONT size=3D2>(</FONT><FONT color=3D#0000ff =
size=3D2>#PCDATA</FONT><FONT=20
size=3D2>)</FONT><FONT color=3D#0000ff =
size=3D2>&gt;<BR>&lt;!</FONT><FONT=20
color=3D#800000 size=3D2>ELEMENT</FONT><FONT color=3D#0000ff size=3D2> =
</FONT><FONT=20
color=3D#ff0000 size=3D2>FromEmail</FONT><FONT color=3D#0000ff size=3D2> =
</FONT><FONT=20
size=3D2>(</FONT><FONT color=3D#0000ff size=3D2>#PCDATA</FONT><FONT=20
size=3D2>)</FONT><FONT color=3D#0000ff =
size=3D2>&gt;<BR>&lt;!</FONT><FONT=20
color=3D#800000 size=3D2>ELEMENT</FONT><FONT color=3D#0000ff size=3D2> =
</FONT><FONT=20
color=3D#ff0000 size=3D2>MessageBody</FONT><FONT color=3D#0000ff =
size=3D2> </FONT><FONT=20
size=3D2>(</FONT><FONT color=3D#0000ff size=3D2>#PCDATA</FONT><FONT=20
size=3D2>)</FONT><FONT color=3D#0000ff =
size=3D2>&gt;<BR>&lt;!</FONT><FONT=20
color=3D#800000 size=3D2>ENTITY</FONT><FONT color=3D#0000ff size=3D2> =
</FONT><FONT=20
color=3D#ff0000 size=3D2>MessageBodyContent</FONT><FONT color=3D#0000ff =
size=3D2>=20
</FONT><FONT size=3D2>'</FONT><FONT color=3D#0000ff =
size=3D2>&lt;![CDATA[<BR>&lt;table=20
cellpadding=3D0 cellspacing=3D0 border=3D0 align=3Dcenter width=3D592=20
<BR>style=3D"width:592px;background:#FFFFFF;border-top:1px solid=20
<BR>#333366;border-left:1px solid #333366;border-bottom:1px solid=20
<BR>#333366;border-right:1px solid=20
#333366;margin-top:0px;padding-top:0px;"&gt;<BR>&lt;tbody&gt;<BR>&lt;tr&g=
t;&lt;td&gt;&lt;img=20
src=3D"http://localhost/mywebsite/images/spacer.gif" width=3D"15" =
<BR>height=3D"10"=20
alt=3D"" /&gt;&lt;/td&gt;&lt;/tr&gt;<BR>&lt;tr&gt;&lt;td =
align=3Dcenter&gt;&lt;a=20
href=3D"http://localhost/mywebsite"&gt;&lt;img=20
<BR>src=3D"http://localhost/mywebsite/images/mywebsite_logo_sm.gif" =
alt=3D"mywebsite=20
<BR>Logo"=20
border=3D0&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;<BR>&lt;tr&gt;&lt;td&gt;&lt=
;img=20
src=3D"http://localhost/mywebsite/images/spacer.gif" width=3D"10" =
<BR>height=3D"10"=20
alt=3D"" /&gt;&lt;/td&gt;&lt;/tr&gt;<BR>&lt;tr&gt;&lt;td=20
align=3D"center"&gt;&lt;font class=3D"headerRED"&gt;mywebsite Newsletter =
for <BR>the=20
Week of=20
12/24/2005&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;<BR>&lt;tr&gt;&lt;td&gt;&lt;=
img=20
src=3D"http://localhost/mywebsite/images/spacer.gif" width=3D"10" =
<BR></FONT><FONT=20
color=3D#0000ff size=3D2>height=3D"10" alt=3D""=20
/&gt;&lt;/td&gt;&lt;/tr&gt;<BR>&lt;tr&gt;&lt;td =
align=3D"center"&gt;&lt;a=20
<BR>href=3D"http://localhost/mywebsite"&gt;http://localhost/mywebsite&lt;=
/a&gt;&lt;/td&gt;&lt;/tr&gt;<BR>&lt;tr&gt;&lt;td&gt;&lt;img=20
src=3D"http://localhost/mywebsite/images/spacer.gif" width=3D"10" =
<BR>height=3D"10"=20
alt=3D"" /&gt;&lt;/td&gt;&lt;/tr&gt;<BR>&lt;tr&gt;<BR>&lt;td =
valign=3D"top"&gt;=20
<BR>(..... more html here=20
.....)<BR>&lt;/td&gt;<BR>&lt;/tr&gt;<BR>&lt;tr&gt;&lt;td&gt;&lt;img=20
src=3D"http://localhost/mywebsite/images/spacer.gif" width=3D"30" =
<BR>height=3D"35"=20
alt=3D"" =
border=3D0/&gt;&lt;/td&gt;&lt;/tr&gt;<BR>&lt;tr&gt;<BR>&lt;td&gt;<BR>&lt;=
p=20
align=3Dcenter&gt;&lt;i&gt;Items listed here do not necessarily imply=20
<BR>endorsement by the mywebsite.&lt;/i&gt;&lt;/p&gt;<BR>&lt;p=20
align=3Dcenter&gt;To submit an event, action alert, announcement, or =
<BR>article=20
for the mywebsite newsletter, send an email to &lt;a=20
<BR>href=3D"mailto:webmaster@m...?subject=3DItem for=20
<BR>Newsletter"&gt;webmaster@m...&lt;/a&gt;.&lt;/p&gt;<BR>&lt;p =

align=3Dcenter&gt;To update or remove your account,&lt;br&gt;go to &lt;a =

<BR>href=3D"http://localhost/mywebsite/subscriber_login.asp"&gt;http://lo=
calhost/mywebsite/subscriber_login.asp&lt;/a&gt;&lt;br&gt;and=20
<BR>log in with your email address and password.&lt;/p&gt;<BR>&lt;p=20
align=3Dcenter&gt;Copyright =C2=A92005 =
mywebsite&lt;br&gt;&lt;br&gt;&lt;a=20
href=3D""&gt;&lt;img=20
<BR>src=3D"http://localhost/mywebsite/images/InterMedia_logo.gif" =
alt=3D"Powered by=20
<BR>InterMedia Solutions"=20
border=3D0&gt;&lt;/a&gt;&lt;/p&gt;<BR>&lt;/td&gt;<BR>&lt;/tr&gt;<BR>&lt;/=
tbody&gt;<BR>&lt;/table&gt;<BR></FONT><FONT=20
color=3D#0000ff size=3D2>&lt;p&gt; &lt;/p&gt;<BR>]]&gt;</FONT><FONT=20
size=3D2>'</FONT><FONT color=3D#0000ff size=3D2>&gt;<BR></FONT><FONT =
color=3D#0000ff=20
size=3D2>]&gt;<BR>&lt;</FONT><FONT color=3D#800000 =
size=3D2>Emails</FONT><FONT=20
color=3D#0000ff size=3D2>&gt;<BR>&lt;</FONT><FONT color=3D#800000=20
size=3D2>Email</FONT><FONT color=3D#0000ff =
size=3D2>&gt;<BR>&lt;</FONT><FONT=20
color=3D#800000 size=3D2>RecipientName</FONT><FONT color=3D#0000ff=20
size=3D2>&gt;</FONT><FONT size=3D2>Ed Burns</FONT><FONT color=3D#0000ff=20
size=3D2>&lt;/</FONT><FONT color=3D#800000 =
size=3D2>RecipientName</FONT><FONT=20
color=3D#0000ff size=3D2>&gt;<BR>&lt;</FONT><FONT color=3D#800000=20
size=3D2>RecipientEmail</FONT><FONT color=3D#0000ff =
size=3D2>&gt;</FONT><FONT=20
size=3D2>eburns@m...</FONT><FONT color=3D#0000ff =
size=3D2>&lt;/</FONT><FONT=20
color=3D#800000 size=3D2>RecipientEmail</FONT><FONT color=3D#0000ff=20
size=3D2>&gt;<BR></FONT><FONT color=3D#0000ff size=3D2>&lt;</FONT><FONT =
color=3D#800000=20
size=3D2>FromEmail</FONT><FONT color=3D#0000ff size=3D2>&gt;</FONT><FONT =

size=3D2>webmaster@m...</FONT><FONT color=3D#0000ff=20
size=3D2>&lt;/</FONT><FONT color=3D#800000 =
size=3D2>FromEmail</FONT><FONT=20
color=3D#0000ff size=3D2>&gt;<BR>&lt;</FONT><FONT color=3D#800000=20
size=3D2>MessageBody</FONT><FONT color=3D#0000ff =
size=3D2>&gt;</FONT><FONT=20
color=3D#ff0000 size=3D2>&amp;MessageBodyContent;</FONT><FONT =
color=3D#0000ff=20
size=3D2>&lt;/</FONT><FONT color=3D#800000 =
size=3D2>MessageBody</FONT><FONT=20
color=3D#0000ff size=3D2>&gt;<BR>&lt;/</FONT><FONT color=3D#800000=20
size=3D2>Email</FONT><FONT color=3D#0000ff =
size=3D2>&gt;<BR>&lt;</FONT><FONT=20
color=3D#800000 size=3D2>Email</FONT><FONT color=3D#0000ff=20
size=3D2>&gt;<BR>&lt;</FONT><FONT color=3D#800000 =
size=3D2>RecipientName</FONT><FONT=20
color=3D#0000ff size=3D2>&gt;</FONT><FONT size=3D2>Carol Cox</FONT><FONT =
color=3D#0000ff=20
size=3D2>&lt;/</FONT><FONT color=3D#800000 =
size=3D2>RecipientName</FONT><FONT=20
color=3D#0000ff size=3D2>&gt;<BR>&lt;</FONT><FONT color=3D#800000=20
size=3D2>RecipientEmail</FONT><FONT color=3D#0000ff =
size=3D2>&gt;</FONT><FONT=20
size=3D2>cgcox@m...</FONT><FONT color=3D#0000ff =
size=3D2>&lt;/</FONT><FONT=20
color=3D#800000 size=3D2>RecipientEmail</FONT><FONT color=3D#0000ff=20
size=3D2>&gt;<BR>&lt;</FONT><FONT color=3D#800000 =
size=3D2>FromEmail</FONT><FONT=20
color=3D#0000ff size=3D2>&gt;</FONT><FONT =
size=3D2>webmaster@m...</FONT><FONT=20
color=3D#0000ff size=3D2>&lt;/</FONT><FONT color=3D#800000=20
size=3D2>FromEmail</FONT><FONT color=3D#0000ff =
size=3D2>&gt;<BR>&lt;</FONT><FONT=20
color=3D#800000 size=3D2>MessageBody</FONT><FONT color=3D#0000ff=20
size=3D2>&gt;</FONT><FONT color=3D#ff0000=20
size=3D2>&amp;MessageBodyContent;</FONT><FONT color=3D#0000ff=20
size=3D2>&lt;/</FONT><FONT color=3D#800000 =
size=3D2>MessageBody</FONT><FONT=20
color=3D#0000ff size=3D2>&gt;<BR>&lt;/</FONT><FONT color=3D#800000=20
size=3D2>Email</FONT><FONT color=3D#0000ff =
size=3D2>&gt;<BR>&lt;/</FONT><FONT=20
color=3D#800000 size=3D2>Emails</FONT><FONT color=3D#0000ff=20
size=3D2>&gt;</P></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>"adude28" &lt;</FONT><A=20
href=3D"mailto:adude28@y..."><FONT face=3DArial=20
size=3D2>adude28@y...</FONT></A><FONT face=3DArial size=3D2>&gt; =
wrote in message=20
</FONT><A =
href=3D"news:7CD27D47-40DC-44D6-8836-720E57BBF1DA@m..."><FONT=20
face=3DArial=20
size=3D2>news:7CD27D47-40DC-44D6-8836-720E57BBF1DA@m...</FONT></=
A><FONT=20
face=3DArial size=3D2>...</FONT></DIV><FONT face=3DArial size=3D2>&gt;I =
tried the=20
following.<BR>&gt; <BR>&gt; a) I tried converting all single quotes to =
double=20
quotes and I got the <BR>&gt; following error:<BR>&gt; <BR>&gt; =
"Parameter=20
entities cannot be used inside markup declarations in an internal =
<BR>&gt;=20
subset."<BR>&gt; <BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; i) Then I converted =
all "&lt;"=20
to "&lt;" and all "&gt;" to=20
"&gt;"<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I still got the =

following error: "Parameter entities cannot be used <BR>&gt; inside =
markup=20
declarations in an internal subset."<BR>&gt; <BR>&gt; b) I tried =
converting all=20
my double quotes in my HTML to single quotes and I <BR>&gt; got the =
following=20
error:<BR>&gt; <BR>&gt; "Parameter entities cannot be used inside markup =

declarations in an internal <BR>&gt; subset."<BR>&gt;=20
<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; i) Then I converted all "&lt;" to =
"&lt;" and=20
all "&gt;" to =
"&gt;"<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I=20
still got the following error: "Parameter entities cannot be used =
<BR>&gt;=20
inside markup declarations in an internal subset."<BR>&gt; <BR>&gt; c) I =
used=20
the SYSTEM keyword and everything worked fine. But, I don't know =
<BR>&gt; how to=20
post BOTH files to the ASP page to do the processing. So, that option =
<BR>&gt;=20
is pretty much out for me.<BR>&gt; <BR>&gt; Am I missing something about =
options=20
A &amp; B?<BR>&gt; <BR>&gt; Thanks,<BR>&gt; Ed<BR>&gt; <BR>&gt; <BR>&gt; =

<BR>&gt;</FONT></BODY></HTML>

------=_NextPart_000_0054_01C60E1D.9C1FD490--



transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent