Search the web
Sign In
New User? Sign Up
xmlpull-user
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
XmlPullParserException: entity reference name can not contain chara   Message List  
Reply | Forward Message #292 of 308 |
Re: [xmlpull-user] XmlPullParserException: entity reference name can not contain character =

pledreau wrote:
> Hello, in my xsl file I have
> <xsl:stylesheet version="1.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
> <xsl:output method="xml" version="1.0"/>
> ...
> <xmlpost>
> <xsl:value-of select="$donnee" disable-output-
> escaping="yes"/>
> </xmlpost>
> ...
>
> in my java code :
> ...
> transformer.transform(new DOMSource((Document)arbre), new
> StreamResult(stream));
> ...
>
> When I run this program I obtain :
> org.xmlpull.v1.XmlPullParserException: entity reference name can not
> contain character =' (position: TEXT seen ...<xmlpost>Ap
> pl=WEBACC&Ident=... @21:28)
>
> That happens on the following string :
> /cgi-bin/emxml?Appl=WEBACC&Ident=00000000&Secret=00
>
> I'm using disable-output-escaping="yes" to obtain in my output stream
> <xmlpost>/cgi-bin/emxml?
> Appl=WEBACC&Ident=00000000&Secret=00</xmlpost>
>
> instead of
>
> <xmlpost>/cgi-bin/emxml?
> Appl=WEBACC&Amp;Ident=00000000&Amp;Secret=00</xmlpost>
>
> The running jre is 1.2
>
> How can I solve this problem ?
>
"&Ident" is interpeted as name of entity - this is not allowed in XML
and must be escaped use &amp; (not &Amp;) and all should work fine.

best,

alek
> thanks in advance
>
> PLedreau
>
>
>
>
> Yahoo! Groups Links
>
>
>
>


--
The best way to predict the future is to invent it - Alan Kay




Mon Apr 2, 2007 6:10 pm

as10m
Offline Offline
Send Email Send Email

Forward
Message #292 of 308 |
Expand Messages Author Sort by Date

Hello, in my xsl file I have <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="xml" version="1.0"/> ... ...
pledreau
Offline Send Email
Apr 2, 2007
6:00 pm

... "&Ident" is interpeted as name of entity - this is not allowed in XML and must be escaped use &amp; (not &Amp;) and all should work fine. best, alek ... --...
Aleksander Slominski
as10m
Offline Send Email
Apr 2, 2007
6:18 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help