Re: How to read an XML file in Visual C++ 6
- From: Joseph M. Newcomer <newcomer@xxxxxxxxxxxx>
- Date: Sun, 06 Dec 2009 20:20:41 -0500
See below...
On Sat, 5 Dec 2009 14:56:09 -0000, "David Webber" <dave@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
wrote:
****
"Joseph M. Newcomer" <newcomer@xxxxxxxxxxxx> wrote in message
news:mmrkh5t8124ut0glkovs5sduuo024k51kk@xxxxxxxxxx
Why would you need an open network connection to validate against a DTD?
First, the DTD could be part of the XML file itself
It could be in your resources
It could be a file on the user's machine
Personally, I'd vote for putting it in the resources.
Because the musicXML data files, which are passed over the internet, start
with things like:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE score-partwise PUBLIC "-//Recordare//DTD MusicXML 2.0
Partwise//EN"
"http://www.musicxml.org/dtds/partwise.dtd">
It is really critical that a program I use (such as yours) be usable in any venue under
any conditions. I mostly use it when I'm traveling, which means I'm at 35,000 feet over
Utah or I'm in some motel somewhere without connectivity. My world has to be completely
self-contained on my machine. I do not consider it reasonable to require Internet
connectivity for doing simple tasks. Such as opening and reading a file.
It makes no sense to put a remote URL into a file which is going to be used locally.
In fact, I question whether or not it EVER makes sense to allow my machine to go out to
connect to a URL. The server has to be able to support every request, and in any case, is
it not a violation of privacy?
joe
****
I'd be very happy to keep a local copy of the DTD in the resources of theJoseph M. Newcomer [MVP]
DLL import module, but I didn't find a way to tell it to use that instead of
the DTD prescribed in the XML file. Am I missing something obvious?
Dave
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.
- Follow-Ups:
- Re: How to read an XML file in Visual C++ 6
- From: David Webber
- Re: How to read an XML file in Visual C++ 6
- From: Giovanni Dicanio
- Re: How to read an XML file in Visual C++ 6
- References:
- How to read an XML file in Visual C++ 6
- From: marathoner
- Re: How to read an XML file in Visual C++ 6
- From: David Webber
- Re: How to read an XML file in Visual C++ 6
- From: Tom Serface
- Re: How to read an XML file in Visual C++ 6
- From: David Webber
- Re: How to read an XML file in Visual C++ 6
- From: Joseph M . Newcomer
- Re: How to read an XML file in Visual C++ 6
- From: David Webber
- How to read an XML file in Visual C++ 6
- Prev by Date: Re: How to access a Template-specific menu?
- Next by Date: CEdit numbers
- Previous by thread: Re: How to read an XML file in Visual C++ 6
- Next by thread: Re: How to read an XML file in Visual C++ 6
- Index(es):
Relevant Pages
|