Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7085835
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T07:28:27+00:00 2026-05-28T07:28:27+00:00

Using 2.9.0.1 <b time={None}>Hello</b> => <b >Hello</b> i.e. there is a space after the

  • 0

Using 2.9.0.1

<b time={None}>Hello</b>

=>

<b >Hello</b>

i.e. there is a space after the b in the starting tag.
This makes no sense from an XML perspective.

Is this “feature” supposed to happen?

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T07:28:28+00:00Added an answer on May 28, 2026 at 7:28 am

    It happens because of toString implementation of scala.xml.Elem, to be more specific
    in object scala.xml.MetaInf method buildString which looks like following:

     def buildString(sb: StringBuilder): StringBuilder = {
      sb.append(' ')
      toString1(sb)
      next.buildString(sb)
     }
    

    So it’s firstly adds a white space to string representation of element, and only after that appends next attribute, so if an attribute is present as class member but doesn’t have any string representation you’ll end up with one extra space before closing bracket

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

this is my first time using StAX for parsing XML documents (still in the
I'm always surprised that even after using C# for all this time now, I
I am using Time.parse to create a Time object from a string. For some
This is my first time using joomla. I don't know if I'm using the
I do this all the time using VNC and it is very easy, but
I'm having a hard time using std::string::iterators in C++. This code compiles fine (still
First time using this technique, seems that regardless what attributes I try to assign
This is my first time using JQuery in any of my projects. I have
New to javascript/jquery and having a hard time with using this or $(this) to
I'm using the time picker control from the following link: http://fgelinas.com/code/timepicker/timepicker.html It works super

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.