• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Insert space in xml

 
Ranch Hand
Posts: 367
Eclipse IDE Opera Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

I need to insert spaces in an xml file.

I used   ( didn't work meaning I was wroking on xml ) basically there is a tool in a suite of Novell so wanted to make sure.

Then I used somewhere in my doc and it printed &nbs p; (ignore space ).
So I thought of inserting spaces instead of &nbs p but it didn't insert any space.

I also tried out & # 160 ;" "& # x 160;" (ignore spaces) as per Google but no use.

Please advise.
 
Marshal
Posts: 28193
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Um, you load the XML document into your text editor, position the cursor appropriately, and press the space bar as many times as you need to.

Or would you like to explain why you think you are having a problem?
 
pramod talekar
Ranch Hand
Posts: 367
Eclipse IDE Opera Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey Paul,

Really don't know why it's happening.

Could you tell me how you insert spaces in a xml document.

May be then I can figure out a possible way. I rarely work on these issues. I have heard about some kind of attribute called process which when kept to false does something. Need to Google it once.

 
Bartender
Posts: 4568
9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
As Paul said - to put spaces in an XML document, you just put spaces in the document. It's a text file. There's nothing magic about it. Which is why I suspect you're really trying to ask something else.

At a guess, you're trying to put spaces in the result of some process acting on the XML file. But without knowing what that process is we can't help you. Can you explain further?
 
Paul Clapham
Marshal
Posts: 28193
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I expect this is one of those situations where:

(1) There is some kind of a problem somewhere.

(2) The poster has already decided that this problem occurred because of a lack of spaces in an XML document.

So instead of asking us about the problem, we get a question about spaces in an XML document which is quite likely not relevant to the actual problem. Is that you, Pramod? Did you do that?
 
pramod talekar
Ranch Hand
Posts: 367
Eclipse IDE Opera Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Paul & Matthew,

I'm not sure if I'm working on html or xml because the editor shows HTML but when I export the file it shows xml tags in it.

Perhaps, I should check with Novell to see what can be done.
 
Paul Clapham
Marshal
Posts: 28193
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes, anything which interprets text as HTML will follow the HTML rules for text. One of these rules is to reduce a sequence of spaces to a single space when displaying it.

But yeah, if you want to edit XML then you should be using either a smart XML editor or a dumb text editor. Don't use an HTML editor.
 
pramod talekar
Ranch Hand
Posts: 367
Eclipse IDE Opera Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey Paul,

I got the solution few minutes before.
There was a tool in Novell's IDM which provided text formatting just like MS Word.

I'll try your advice on it. It did

reduce a sequence of spaces to a single space when displaying it.

as you said.

Thanks for your time on this issue.
Happy weekend.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic