> If a schema is located remotely and accessible through HTTP or FTP is > there a way using Xerces to copy it to a local file? I've looked at > some classes such as BinInputStream and the MemoryPool methods > serialize() and deserialize() and so far I don't get the simple way to > do this type of operation. > > Presumably you create an XMLUrl and pass it to a URLInputStream, but at > that point I'm at a loss as to what to do.
You don't need a URLInputStream instance. XMLUrl::makeNewStream will return an instance of a BinInputStream which you can use to read the bytes of the resource. For writing the local file, you can use whatever C/C++ functionality you prefer. Just remember to delete the BinInputStream instances when you're finished. Dave --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
