Solved

Tab character in XML doc

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
my activex application give System Error.  Code: 5.  Access is denied 16 120
Run video youtube webbrowse 10 61
LAN or WAN ? 11 90
update joined tables 2 45
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

813 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

16 Experts available now in Live!

Get 1:1 Help Now