thanks, oh if only it did work.. :)

i'm not familliar with system id, but i assume its
http://www.pcia.com/wireres/protocol/dtd/wctpV1-0.dtd, i'll append the xml
i'm trying to parse to see for yourselves...

the error message i get:

Fatal Error at file "XMLtest", line 2, column 89
   Message: An exception occured! Type:RuntimeException, Message:Could not
open DTD file './http://www.pcia.com/wireres/protocol/dtd/wctpV1-0.dtd'

and the xml:

<?xml version="1.0"?>
<!DOCTYPE wctp-Operation SYSTEM
"http://www.pcia.com/wireres/protocol/dtd/wctpV1-0.dtd";>
<wctp-Operation
wctpVersion="WCTP-DTD-1.0"
>
            <wctp-SubmitRequest>
                <wctp-SubmitHeader
                    submitTimestamp="2001-03-27T10:20:49"
                >
                    <wctp-Originator
                        senderID="1193693"
                    />
                    <wctp-MessageControl
                        messageID="455178516-1738425345"
                        transactionID="0"
                    />
                    <wctp-Recipient
                        recipientID="142.166.52.66:8080/servlet/WCTPtest"
                    />
                </wctp-SubmitHeader>
                <wctp-Payload>
                    <wctp-Alphanumeric>
F=TT&amp;S=.TTPG.N&amp;T=D&amp;VR=1.0
                    </wctp-Alphanumeric>
                </wctp-Payload>
            </wctp-SubmitRequest>
</wctp-Operation>

and if you really want to see, my derived net accessor, 'MYNetAccessor'
i'm not sure i set it up correctly

#include <util/XMLException.hpp>
#include <util/XMLNetAccessor.hpp>

class FENSNetAccessor : public XMLNetAccessor
{
public:
 // implement it for our enviroment
    BinInputStream* makeNew
    (
        const   XMLCh* const            urlSource
        ,       XML4CExcepts::Codes&    failReason
    );
};

BinInputStream * FENSNetAccessor::makeNew(
   const   XMLCh* const urlSource,
   XML4CExcepts::Codes&    failReason )
{
 BinInputStream* temp;
 return temp;
}

again, thanks a lot
-dave

From: "Dean Roddey" <[EMAIL PROTECTED]>
>
> That should work. What kind of system id are you giving on the primary XML
> entity and the DTD one?
>
> --------------------------
> Dean Roddey
> The CIDLib C++ Frameworks
> Charmed Quark Software
> [EMAIL PROTECTED]
> http://www.charmedquark.com
>
> "Why put off until tomorrow what you can
> put off until the day after tomorrow?"
>
> ----- Original Message -----
> From: "dave yuill" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, May 04, 2001 4:55 PM
> Subject: how to use XMLNetAccessor?
>
>
> > greetings.
> >
> > this may be a common question, but i apologize, the archives seem to be
> > down...
> >
> > i was wondering if there were any examples of using the XMLNetAccessor
> > interface to make http connections, for receiving dtd files. i have
> created
> > a class derived from the net accessor class, linked and included it, and
> > after initializing the xml platform, called;
> >
> > XMLPlatformUtils::fgNetAccessor = new MYNetAccessor();
> >
> > however i am still getting a fatal error, unable to locate the dtd in
the
> > local directory, of course.
> >
> > my deep gratitudes to anyone who might be able to point me in any sort
of
> > direction.
> >
> > cheers,
> > -dave
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to