Solved

Tab character in XML doc

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

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 Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

746 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

9 Experts available now in Live!

Get 1:1 Help Now