Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Re: Creating a large ENTITY container??? [Thread Next] Re: Creating a large ENTITY container???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> </DIV> <DIV><FONT face=3DArial size=3D2></FONT><FONT color=3D#0000ff size=3D2> <P><?</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>?><BR><!</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><!</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>><BR><!</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>><BR><!</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>><BR><!</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>><BR><!</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>><BR><!</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>><BR><!</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><![CDATA[<BR><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;"><BR><tbody><BR><tr&g= t;<td><img=20 src=3D"http://localhost/mywebsite/images/spacer.gif" width=3D"15" = <BR>height=3D"10"=20 alt=3D"" /></td></tr><BR><tr><td = align=3Dcenter><a=20 href=3D"http://localhost/mywebsite"><img=20 <BR>src=3D"http://localhost/mywebsite/images/mywebsite_logo_sm.gif" = alt=3D"mywebsite=20 <BR>Logo"=20 border=3D0></a></td></tr><BR><tr><td><= ;img=20 src=3D"http://localhost/mywebsite/images/spacer.gif" width=3D"10" = <BR>height=3D"10"=20 alt=3D"" /></td></tr><BR><tr><td=20 align=3D"center"><font class=3D"headerRED">mywebsite Newsletter = for <BR>the=20 Week of=20 12/24/2005</font></td></tr><BR><tr><td><= 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 /></td></tr><BR><tr><td = align=3D"center"><a=20 <BR>href=3D"http://localhost/mywebsite">http://localhost/mywebsite<= /a></td></tr><BR><tr><td><img=20 src=3D"http://localhost/mywebsite/images/spacer.gif" width=3D"10" = <BR>height=3D"10"=20 alt=3D"" /></td></tr><BR><tr><BR><td = valign=3D"top">=20 <BR>(..... more html here=20 .....)<BR></td><BR></tr><BR><tr><td><img=20 src=3D"http://localhost/mywebsite/images/spacer.gif" width=3D"30" = <BR>height=3D"35"=20 alt=3D"" = border=3D0/></td></tr><BR><tr><BR><td><BR><= p=20 align=3Dcenter><i>Items listed here do not necessarily imply=20 <BR>endorsement by the mywebsite.</i></p><BR><p=20 align=3Dcenter>To submit an event, action alert, announcement, or = <BR>article=20 for the mywebsite newsletter, send an email to <a=20 <BR>href=3D"mailto:webmaster@m...?subject=3DItem for=20 <BR>Newsletter">webmaster@m...</a>.</p><BR><p = align=3Dcenter>To update or remove your account,<br>go to <a = <BR>href=3D"http://localhost/mywebsite/subscriber_login.asp">http://lo= calhost/mywebsite/subscriber_login.asp</a><br>and=20 <BR>log in with your email address and password.</p><BR><p=20 align=3Dcenter>Copyright =C2=A92005 = mywebsite<br><br><a=20 href=3D""><img=20 <BR>src=3D"http://localhost/mywebsite/images/InterMedia_logo.gif" = alt=3D"Powered by=20 <BR>InterMedia Solutions"=20 border=3D0></a></p><BR></td><BR></tr><BR></= tbody><BR></table><BR></FONT><FONT=20 color=3D#0000ff size=3D2><p> </p><BR>]]></FONT><FONT=20 size=3D2>'</FONT><FONT color=3D#0000ff size=3D2>><BR></FONT><FONT = color=3D#0000ff=20 size=3D2>]><BR><</FONT><FONT color=3D#800000 = size=3D2>Emails</FONT><FONT=20 color=3D#0000ff size=3D2>><BR><</FONT><FONT color=3D#800000=20 size=3D2>Email</FONT><FONT color=3D#0000ff = size=3D2>><BR><</FONT><FONT=20 color=3D#800000 size=3D2>RecipientName</FONT><FONT color=3D#0000ff=20 size=3D2>></FONT><FONT size=3D2>Ed Burns</FONT><FONT color=3D#0000ff=20 size=3D2></</FONT><FONT color=3D#800000 = size=3D2>RecipientName</FONT><FONT=20 color=3D#0000ff size=3D2>><BR><</FONT><FONT color=3D#800000=20 size=3D2>RecipientEmail</FONT><FONT color=3D#0000ff = size=3D2>></FONT><FONT=20 size=3D2>eburns@m...</FONT><FONT color=3D#0000ff = size=3D2></</FONT><FONT=20 color=3D#800000 size=3D2>RecipientEmail</FONT><FONT color=3D#0000ff=20 size=3D2>><BR></FONT><FONT color=3D#0000ff size=3D2><</FONT><FONT = color=3D#800000=20 size=3D2>FromEmail</FONT><FONT color=3D#0000ff size=3D2>></FONT><FONT = size=3D2>webmaster@m...</FONT><FONT color=3D#0000ff=20 size=3D2></</FONT><FONT color=3D#800000 = size=3D2>FromEmail</FONT><FONT=20 color=3D#0000ff size=3D2>><BR><</FONT><FONT color=3D#800000=20 size=3D2>MessageBody</FONT><FONT color=3D#0000ff = size=3D2>></FONT><FONT=20 color=3D#ff0000 size=3D2>&MessageBodyContent;</FONT><FONT = color=3D#0000ff=20 size=3D2></</FONT><FONT color=3D#800000 = size=3D2>MessageBody</FONT><FONT=20 color=3D#0000ff size=3D2>><BR></</FONT><FONT color=3D#800000=20 size=3D2>Email</FONT><FONT color=3D#0000ff = size=3D2>><BR><</FONT><FONT=20 color=3D#800000 size=3D2>Email</FONT><FONT color=3D#0000ff=20 size=3D2>><BR><</FONT><FONT color=3D#800000 = size=3D2>RecipientName</FONT><FONT=20 color=3D#0000ff size=3D2>></FONT><FONT size=3D2>Carol Cox</FONT><FONT = color=3D#0000ff=20 size=3D2></</FONT><FONT color=3D#800000 = size=3D2>RecipientName</FONT><FONT=20 color=3D#0000ff size=3D2>><BR><</FONT><FONT color=3D#800000=20 size=3D2>RecipientEmail</FONT><FONT color=3D#0000ff = size=3D2>></FONT><FONT=20 size=3D2>cgcox@m...</FONT><FONT color=3D#0000ff = size=3D2></</FONT><FONT=20 color=3D#800000 size=3D2>RecipientEmail</FONT><FONT color=3D#0000ff=20 size=3D2>><BR><</FONT><FONT color=3D#800000 = size=3D2>FromEmail</FONT><FONT=20 color=3D#0000ff size=3D2>></FONT><FONT = size=3D2>webmaster@m...</FONT><FONT=20 color=3D#0000ff size=3D2></</FONT><FONT color=3D#800000=20 size=3D2>FromEmail</FONT><FONT color=3D#0000ff = size=3D2>><BR><</FONT><FONT=20 color=3D#800000 size=3D2>MessageBody</FONT><FONT color=3D#0000ff=20 size=3D2>></FONT><FONT color=3D#ff0000=20 size=3D2>&MessageBodyContent;</FONT><FONT color=3D#0000ff=20 size=3D2></</FONT><FONT color=3D#800000 = size=3D2>MessageBody</FONT><FONT=20 color=3D#0000ff size=3D2>><BR></</FONT><FONT color=3D#800000=20 size=3D2>Email</FONT><FONT color=3D#0000ff = size=3D2>><BR></</FONT><FONT=20 color=3D#800000 size=3D2>Emails</FONT><FONT color=3D#0000ff=20 size=3D2>></P></FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>"adude28" <</FONT><A=20 href=3D"mailto:adude28@y..."><FONT face=3DArial=20 size=3D2>adude28@y...</FONT></A><FONT face=3DArial size=3D2>> = 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>>I = tried the=20 following.<BR>> <BR>> a) I tried converting all single quotes to = double=20 quotes and I got the <BR>> following error:<BR>> <BR>> = "Parameter=20 entities cannot be used inside markup declarations in an internal = <BR>>=20 subset."<BR>> <BR>> i) Then I converted = all "<"=20 to "<" and all ">" to=20 ">"<BR>> I still got the = following error: "Parameter entities cannot be used <BR>> inside = markup=20 declarations in an internal subset."<BR>> <BR>> b) I tried = converting all=20 my double quotes in my HTML to single quotes and I <BR>> got the = following=20 error:<BR>> <BR>> "Parameter entities cannot be used inside markup = declarations in an internal <BR>> subset."<BR>>=20 <BR>> i) Then I converted all "<" to = "<" and=20 all ">" to = ">"<BR>> I=20 still got the following error: "Parameter entities cannot be used = <BR>>=20 inside markup declarations in an internal subset."<BR>> <BR>> c) I = used=20 the SYSTEM keyword and everything worked fine. But, I don't know = <BR>> how to=20 post BOTH files to the ASP page to do the processing. So, that option = <BR>>=20 is pretty much out for me.<BR>> <BR>> Am I missing something about = options=20 A & B?<BR>> <BR>> Thanks,<BR>> Ed<BR>> <BR>> <BR>> = <BR>></FONT></BODY></HTML> ------=_NextPart_000_0054_01C60E1D.9C1FD490-- | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
