Solved

Tab character in XML doc

Posted on 2000-04-06
4
728 Views
Last Modified: 2008-03-10
I have been trying to store a tab character in an XML doc, and I have been using 	 to represent the tab character (this is the value according to webmonkey.com).  However, when I use IE to open the xml document, the value does not appear in the document, and when I load the xml document with Microsoft's latest DOM, VB does not recognize the tab character, instead calling it a zero-length string.  Help!  WHat representation or transformation do I have to do to show the dom that there is a tab character there?
0
Comment
Question by:NickH
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 4

Expert Comment

by:mhervais
ID: 2691837
listening
0
 
LVL 12

Expert Comment

by:rwilson032697
ID: 2696898
The MS XML parser does not return #9, #10 or #13 chars (perhaps among others) as node values to the parsing application. It does store them however, so if the document is saved it will be preserved.

Cheers,

Raymond.


0
 
LVL 12

Accepted Solution

by:
rwilson032697 earned 200 total points
ID: 2887098
Hmm.. <Lock>
0
 
LVL 44

Expert Comment

by:bruintje
ID: 3394193
a bit late but if this is done in your xml doc

&#9; is showing up in the text/html not in the browser which treats the whitespace as non-existent

if you really want to see the char in the output then you could try to insert a <![CDATA[&#x09]]> where you wan the tabchar to appear, but i guess this is not what you want

there's a way with the use of a xsl sheet to put in a tab in the resulting html but that's a bit more work on your side, don't know how much you're into xsl tranformations......

but if you would like to go this way use
<xsl:text>&#9;</xsl:text>
where you want the tab in your output...

:O)Bruintje
0

Featured Post

Enroll in July's Course of the Month

July's Course of the Month is now available! Enroll to learn HTML5 and prepare for certification. It's free for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses
Course of the Month11 days, 15 hours left to enroll

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question