[program-l] Re: Visual Basic .net: getting XMLWriter not to access the Internet

  • From: "David Lant" <david.lant1@xxxxxxxxxxxxxx>
  • To: <program-l@xxxxxxxxxxxxx>
  • Date: Sun, 15 May 2011 19:20:49 +0100

Hi Pranav,

Is it not the fact that your XML declaration includes Standalone="no"?  that
tells the XML processor, in this case the XML reader, that the DTD is
external to the document and perhaps it is therefore accessing the internet
addresses specified to locate the relevant DTD?

I'm not sure what happens if you change standalone="no" to standalone="yes"
if the DTDs aren't local to the XML document, but it might at least be worth
a try.

All the best,

David

David Lant
Applications analyst 
 
MCPD Enterprise Application Development 3.5
MCTS ASP.NET 3.5, ADO.NET 3.5, Windows Communication Foundation 3.5, Windows
Applications 3.5

-----Original Message-----
From: program-l-bounce@xxxxxxxxxxxxx [mailto:program-l-bounce@xxxxxxxxxxxxx]
On Behalf Of Pranav Lal
Sent: 15 May 2011 05:54 PM
To: program-l@xxxxxxxxxxxxx
Subject: [program-l] Re: Visual Basic .net: getting XMLWriter not to access
the Internet

Hi Ian,

There are declarations that do reference the web in the XML file. I however
do not want the reader to go to the Internet and verify them.

I did search but could not come up with the right keywords or perhaps no one
else was caught by surprise by this kind of Internet access.
Here are the first few lines of the XML file. I have closed the file for
completeness.
<?xml version="1.0" standalone="no"?>
<svg width="100%" height="100%" viewBox="0 0 512 368" version="1.1"
xmlns="http://www.w3.org/2000/svg";>
  <rect x="0" y="0" width="511" height="367"
style="fill:rgb(255,255,255);fill-opacity:1;stroke:none;" />
  <text x="255" y="32" font-family="Verdana" font-size="14"
font-weight="bold" fill="rgb(0,0,0)" text-anchor="middle"
style="baseline-shift:-25%">Sheet1 Chart 4</text>
  <text x="248" y="323" font-family="Verdana" font-size="11"
font-weight="bold" fill="rgb(0,0,0)" text-anchor="middle"
style="baseline-shift:-75%">X Axis</text>
  <g transform="translate(20,200.5) rotate(270)">
    <text x="2" y="0" font-family="Verdana" font-size="11"
font-weight="bold" fill="rgb(0,0,0)" style="baseline-shift:-75%">Y
axis</text>
  </g>
  <rect x="92" y="263" width="314" height="22"
style="fill:rgb(228,249,255);fill-opacity:1;stroke:none;" />
  <rect x="92" y="241" width="314" height="22"
style="fill:rgb(201,243,255);fill-opacity:1;stroke:none;" />  
</svg>

Pranav

** To leave the list, click on the immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=unsubscribe]
** If this link doesn't work then send a message to:
** program-l-request@xxxxxxxxxxxxx
** and in the Subject line type
** unsubscribe
** For other list commands such as vacation mode, click on the
** immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=faq]
** or send a message, to
** program-l-request@xxxxxxxxxxxxx with the Subject:- faq

** To leave the list, click on the immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=unsubscribe]
** If this link doesn't work then send a message to:
** program-l-request@xxxxxxxxxxxxx
** and in the Subject line type
** unsubscribe
** For other list commands such as vacation mode, click on the
** immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=faq]
** or send a message, to
** program-l-request@xxxxxxxxxxxxx with the Subject:- faq

Other related posts: