Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

unprintable characters and xml

Status
Not open for further replies.

municipal

Programmer
Jan 1, 2001
62
IL
I need to write records that later will be used in XML,
but i found that xml canot show tha file, if there is a byte that contain unprintable character.
is there any way to solve it? or do i have to create records that contains only printable characters?
and how to ask in cobol at printable characters?
TIA.

 
municipal,

It is not clear from your description the origin of the 'byte' that contains an unprintable character. Could you explain the process, perhaps with a simple example? Also, could you provide the platform/COBOL vendor information (answers for mainframe vs UNIX might be different)?

Also, although you don't seem to be going to XML directly (instead writing records that will later be rendered into XML), be aware that XML is a 'character' rather than 'byte' oriented language. But this may not matter depending on your immediate problem...

Tom Morrison
 
A characters passed to HTML should be in the range Space (20h) through "~" (7Eh). HTML doesn't recognize anything else, except for the CR/LF at the end of a line, which it ignores.
 
Hmmm...

We were discussing XML...

Tom Morrison
 
Hi k5tm,
the platform is M.F.
the program create a file in xml format contvention and later it is downloaded to pc .
later in pc I try from the EXPLORER to view it.
TIA.
Municipal
 
I suggest you overcome this problem by using a CDATA tag for XML.

See your XML documentation for details.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top