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

Yahoo! Groups Tips

Did you know...
Want to share photos of your group with the world? Add a group photo to Flickr.

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 #291 of 308 |
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 ?

thanks in advance

PLedreau




Mon Apr 2, 2007 4:21 pm

pledreau
Offline Offline
Send Email Send Email

Forward
Message #291 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