> > Don't assume a BOM *wouldn't* be in a string, it could well be and its > > perfectly legal to do so. You should be able to deal with it either way. > > I've never encountered any use of a BOM in a BSTR. Would you ever expect > one in a java.lang.String?
Its not illegal to have them, so you should be prepared to to deal with it. The most common case where it might occur is when someone reads in a file into a string and feeds it back into the parser. It might never happen in a Java string, but could easily enough happen in C++ if they read in data into a string. I've seen some hard-coded XML strings in Cpp files which had the BOM in it. -------------------------- Dean Roddey The Charmed Quark Controller Charmed Quark Software [EMAIL PROTECTED] http://www.charmedquark.com "If it don't have a control port, don't buy it!" ----- Original Message ----- From: "Curt Arnold" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, October 25, 2001 1:29 AM Subject: Re: Xerces-C 1.5.2 status update ...] > > Don't assume a BOM *wouldn't* be in a string, it could well be and its > > perfectly legal to do so. You should be able to deal with it either way. > > I've never encountered any use of a BOM in a BSTR. Would you ever expect > one in a java.lang.String? > > As it has been, the method would always fail. Now it might fail in a very > artificial case. I don't see a justification to keep the patch out. Though > a perfect patch could cover the artificial case. > > There is a problem (maybe it is just Win XP) where relative URI's are not > being resolved. Also, I have code that will eliminate the dependency on > WININET and URLMON when parsing local files. Way too late tonight, working > on the W3C/NIST DOM stuff, maybe tomorrow. > > > --------------------------------------------------------------------- > 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]