[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [xmlblaster] Errors when testing C-API
Many Thanks. I tried it and it seems like they are
transforming < to < at some point.
Here is the predicate that I am submitting:
group/hour_time < 22 ]
and the exception that it pushes back is:
xHandlerBase.parse()] message=[#exported Error while
SAX parsing :3:-1 : org.xml
.sax.SAXParseException: The content beginning "< " is
not legal markup. Perhaps
the " " () character should be a letter.] [See
I wonder if there is something wrong in how I am
invoking the interface. Here is the code:
If it works for you then I must be doing something
wrong. Any ideas would be greatly appreciated.
--- Jan Petranek <jan at petranek.de> wrote:
> Am Freitag, 15. April 2005 15:44 schrieb Vaughn
> > You are quite right. It is not a shell problem. I
> > supplying the predicate strings from within my
> > 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.
> > Thanks,
> > Vaughn
> You are lucky, there is a solution: As in html, you
> can use character entities
> to substitute certain characters. So, you simply
> "<" by "<" and
> ">" by ">"
> This keeps the SAX-Parser from interpreting "x<4.5"
> as a broken markup. And
> XmlBlaster seems intelligent enough to expand those
> character entities,
> before evaluating the XPATH-Expression.
> (I just ran a quick test and it seemed to work)
> Have a nice weekend,
> Jan Petranek
Do you Yahoo!?
Plan great trips with Yahoo! Travel: Now over 17,000 guides!