ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » XSL Transformation +correct xml hdr + StringIndexOutOfBounds

Post new topic  Reply to topic
 XSL Transformation +correct xml hdr + StringIndexOutOfBounds « View previous topic :: View next topic » 
Author Message
Hawk
PostPosted: Wed Apr 27, 2005 3:01 am    Post subject: XSL Transformation +correct xml hdr + StringIndexOutOfBounds Reply with quote

Newbie

Joined: 30 Mar 2005
Posts: 4

The header in the xml message is
<?xml version='1.0' encoding='UTF-8>

An XMLTansformation gives a StringIndexOutOfBoundsException

If I replace the single quotes with double quotes it works fine.

However I do not have control over my incoming messages.

Is there a way to solve this?

Andre van Wijk
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Wed Apr 27, 2005 3:32 am    Post subject: Re: XSL Transformation +correct xml hdr + StringIndexOutOfBo Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Hawk wrote:
If I replace the single quotes with double quotes it works fine.

However I do not have control over my incoming messages.


Single quotes around attribute names don't appear to me to be legal XML.

You could receive the message as blob, change all ' to "" and then parse it as XML and send it to the transformation node.

Or you could tell the sender that they aren't sending valid XML and they need to fix that.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
EddieA
PostPosted: Wed Apr 27, 2005 7:41 am    Post subject: Reply with quote

Jedi

Joined: 28 Jun 2001
Posts: 2453
Location: Los Angeles

Quote:
<?xml version='1.0' encoding='UTF-8>

Was that a typo, because you're also missing the closing quote on UTF-8.

Cheers,
_________________
Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0
Back to top
View user's profile Send private message
Hawk
PostPosted: Thu Apr 28, 2005 12:00 am    Post subject: Reply with quote

Newbie

Joined: 30 Mar 2005
Posts: 4

My header is correct . With single quotes.
I mispelles here ...

W3C says <?xml version='1.0' encoding='UTF-8'?> ... correct now
is valid xml ....
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » XSL Transformation +correct xml hdr + StringIndexOutOfBounds
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.