logo       
Google Custom Search

Related Msgs: audio.musicbrai...    enbd.general/20...    ietf.idr/2002-0...    java.ant-contri...    gnu.make.genera...    qplus.devel/200...    video.freevo.cv...    os.netbsd.ports...    yellowdog.gener...    xfree86.cvs/200...    search.nutch.us...    freedesktop.xse...    programming.swi...    capabilities.ge...    telephony.pbx.a...    mail.sylpheed.c...    db.firebase.por...    boot-loaders.u-...    recreation.radi...    netbsd.bugs/200...    web.zope.plone....    user-groups.lin...   

RE: Special Chars in Attributes: msg#00057

Subject: RE: Special Chars in Attributes
Dear Georgios,

> <card id="c1" title="Yahoo! Espa&#241;a">
> </card>
> 
> This &#241; is the spanish 'n' character with the '~' on top 
> of it and 
> completely valid to escape according to the standards. 
> Xerces-J as soon 
> as it reaches this statement goes like this:
> 
> org.xml.sax.SAXParseException: Element type "card" must be 
> followed by 
> either attribute specifications, ">" or "/>".

I tried your example XML fragment with our application which runs on top
of Xerces 2.6.2, and it parsed fine for me, and yes the fragment does
look wellformed. Are you sure this is really the fragment that fails.
And if so, are you sure that removing &#241; removes the problem? And if
so, are you sure there is no process beforehand that processes the input
above into somethin that is no longer wellformed. E.g. is there nothing
in you application that adds or removes quotes, because that is one way
to get the error you are gettting.

Kind regards,

--Sander.



Try Searching:
servers, voip, java, networking, microsoft ...
<Prev in Thread] Current Thread [Next in Thread>