Jason E. Stewart wrote: >"Bjorn Hermans" <[EMAIL PROTECTED]> writes: > >>I'm trying to parse an XML document which starts with the following two >>lines: >> <?xml version='1.0'?> >> <!DOCTYPE paymentService PUBLIC "-//Bibit/DTD Bibit PaymentService >>v1//EN" >> "http://dtd.bibit.com/paymentService_v1.dtd"> >> I may be delirious, but doesn't the url need to begin with a blank in this context? i.e.
" http://dtd.bibit.com/paymentService_v1.dtd"> >> >> >>However, Xerces generates an exception about this: >> An exception occured! Type:MalformedURLException, Message:The URL used >>an unsupported >> protocol >> >>What is going wrong? The "<!DOCTYPE ..." line by all means looks like a >>valid XML line to me, and for all I can find out "http" is a valid and >>supported protocol... >>Do I need to install additional software in order for Xerces to be able >>to retrieve and external DTD? (The file can be parsed just fine if I >>store the DTD locally, so it doesn't seem to be a problem related to an >>invalid DTD or XML input file.) >> > >Hey Bjorn, > >This is one of the parts of Xerces that I'm fuzzy on. I believe that >you need to configure a NetAccessor object to work with grabbing >external entities via http. > >Did you try this with one of the Xerces-C samples (like DOMCount)? If >it works for DOMCount, but not XML::Xerces, then something is wrong on >my side. If it doesn't work for DOMCount, send a message to the >xerces-c-dev list and ask, or you can search the archives at: > > http://marc.theaimsgroup.com/?l=xerces-c-dev&r=1&w=2 > >Sorry I can't be of more help, >jas. > >--------------------------------------------------------------------- >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]
