IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

converting special symbols to xml.


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Kiran Chava

New User


Joined: 07 Jul 2010
Posts: 9
Location: India

PostPosted: Wed Apr 20, 2011 1:43 pm
Reply with quote

Hi,

We are sending some data to other system in an xml format. I have a filed which is a freeform text type. I have some special symbols in that filed (e.g. &, @, $, % etc). while using generate xml, these symbols are being converted.( eg & is converted to &). But I have to send only &. Could anyone tell me how we can do that.
Back to top
View user's profile Send private message
prino

Senior Member


Joined: 07 Feb 2009
Posts: 1306
Location: Vilnius, Lithuania

PostPosted: Wed Apr 20, 2011 2:30 pm
Reply with quote

If the software at the other side is correct, it will convert the & back to &
Back to top
View user's profile Send private message
Kiran Chava

New User


Joined: 07 Jul 2010
Posts: 9
Location: India

PostPosted: Wed Apr 20, 2011 2:47 pm
Reply with quote

Not sure about the software at the other end but they are expecting only &.
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2455
Location: Hampshire, UK

PostPosted: Wed Apr 20, 2011 3:00 pm
Reply with quote

Duh! If the software at the other end is correct then all they will see at the other end is '&' because the software there will have converted it back. But you can find this out during your testing and take the necessary steps to convert the '&amp' back to '&' before sending the data.
Back to top
View user's profile Send private message
Balaji Krishnamurthy

New User


Joined: 26 Feb 2008
Posts: 20
Location: chennai

PostPosted: Thu Apr 21, 2011 1:37 pm
Reply with quote

you can parse the generated xml using cobol xml parser and convert & to '&'.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Issues Converting From ZD to Signed N... DFSORT/ICETOOL 4
No new posts JCL Dynamic System Symbols JCL & VSAM 3
No new posts Converting fixed length file to excel... IBM Tools 7
No new posts Converting ASCII values to COMP-3 (ZD... JCL & VSAM 2
No new posts Converting S9(18) value to a decimal ... DFSORT/ICETOOL 6
Search our Forums:

Back to Top