Solved

Tab character in XML doc

Posted on 2000-04-06
4
723 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
  • 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

932 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now