[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [xmlblaster] Errors when testing C-API
You are quite right. It is not a shell problem. I am
supplying the predicate strings from within my Java
client code and, as you correctly point out < is a
problem while > is not. Any ideas as to how I may
represent the predicate in a way that may be
acceptable to the SAX parser? I tried both " and '
both of which cause problems.
--- Jan Petranek <jan at petranek.de> wrote:
> Am Donnerstag, 14. April 2005 03:05 schrieb Vaughn
> > I wonder if either of you have any comments on
> > one. I posted this one almost 2 weeks ago but
> > heard any responses:
> (I only subscribed yesterday :-)
> I assume, you did subscribe to the message using
> XPATH, i.e.
> <key querytype="XPATH">
> > I have expected results for the following
> >=21 ]
> > but for:
> > I get the following exception upon submission of
> > subscription:
> > XmlBlasterException
> > serverSideException=false
> > location=[SaxHandlerBase.parse()]
> > Error while SAX parsing :1:-1 :
> > org.xml.sax.SAXParseException: The content
> > "<2" is not legal markup. Perhaps the "2" ( )
> > character should be a letter.] [See URL
> > Any ideas or suggestions?
> As Michele, I find the < and > suspicious. Not only
> because they may be
> interpreted by the shell. The error you received
> looks more like
> - XmlBlaster tried to parse the key as an xml
> - SAX (the parser engine) choked on the "<"
> - It did not choke on the ">"
> Why? Because SAX looks for the next <xml-tag> or
> </end-tag>, that would be
> some sequence beginning with "<". So, it interprets
> x <2 as a typo for
> x <2>
> This also explains, why the ">" does not hurt: SAX
> would only care about a
> ">", if an opening "<" was there.
> So, Michele's suggestion to enclose your message in
> "double-" or
> 'single-brackets' should also help in this
> And finally, if XmlBlaster makes use of the key's
> DTD, the XPATH-expression
> could be a CDATA-Element (an unparsed Element) - but
> I do not know, if this
> would stop SAX from running into trouble.
> Good night,
> Jan Petranek
Do you Yahoo!?
Make Yahoo! your home page