comp.text.xml
[Top] [All Lists]

First character a space in tag?

Subject: First character a space in tag?
From: Gabe
Date: Fri, 18 Jul 2008 12:18:41 -0700 PDT
Newsgroups: comp.text.xml

What I want to do is to have a space as the first character in a tag:

<name>.John Smith</name>
and I want it to print as:
.John Smith

where "." = a space.

I need to do this because the software I am using requires the
following code for a multi-select drop down list.

<name>John Smith;Tom Jones;Harry James</name>

When the user does a multiselect, it looks like this:

John Smith;Tom Jones;Harry James

The user wants a space after each ";" so that it looks like this when
she does a multi-select:

John Smith; Tom Jones; Harry James

In order to get the first entry to line up with the subsequent
entries, I need to put a space before the first entry.

Is there any way in which to do this with XML?

Thanks ahead of time,

Gabe

<Prev in Thread] Current Thread [Next in Thread>
Privacy Policy