Or you can write a very simple parser to correct it before it is passed to xerces.
Zhaohua Meng Hotlens.com Inc. http://www.hotlens.com 350 Fifth AVE Suite 3113 New York, NY 10118 Phone: 212-465-1700 Fax: � 212-465-1710 email: [EMAIL PROTECTED] -----Original Message----- From: Tom Bradford <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Date: Wed, 23 May 2001 12:24:46 -0700 Subject: Re: Terminating with </> > James Richardson wrote: > > I've been asked to integrate some java with a c++ program that > spits out (almost) xml. The xml looks something like this > > > > <Request> > > <Service Act="Subscribe" Dest=":Naming:"> > > <ServiceAttr>SomeValue</> > > </Service> > > </Request> > > > > That is, the terminating tag can be _either_ </> or </name>. I > know that this is not true xml, but it can make for significantly > shorter messages. > > > > Is this something that I can parse out-of-the-box with xerces-j? > > If it were, I'd be very surprised and disappointed. Disk space is > cheap, and parsers are free, so it's probably far more economical to > ask > the c++ programmers to actually spit out proper XML than this > bastardization of it. It will only help them in the end. > > -- > Tom Bradford --- The dbXML Project --- http://www.dbxml.org/ > We store your XML data a hell of a lot better than /dev/null > > --------------------------------------------------------------------- > 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]
