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

  • Home
  • SEARCH
  • 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 122933
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T04:12:25+00:00 2026-05-11T04:12:25+00:00

Is there any reason why XML such as this : <person> <firstname>Joe</firstname> <lastname>Plumber</lastname> </person>

  • 0

Is there any reason why XML such as this :

<person>         <firstname>Joe</firstname>         <lastname>Plumber</lastname> </person> 

couldn’t be compressed like this for client/server transfer.

<person>         <firstname>Joe</>         <lastname>Plumber</> </> 

It would be smaller – and slightly faster to parse.

Assuming that there are no edge conditions meaning this wouldn’t work – are there any libraries to do such a thing?

This is a hard thing to google it turns out :

Your search – </> – did not match any documents.

Suggestions:

Try different keywords.

Edit: Seems to be confusion in what I’m asking. I am talkin about my own form of compression. I am fully aware that as it stands this is NOT XML. The server and client would have to be ‘in on the scheme’. It would be especially helpful for schemas that have very long element names, becuase the bandwidth taken up by those element names would be halved.

  • 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. 2026-05-11T04:12:25+00:00Added an answer on May 11, 2026 at 4:12 am

    That’s not valid XML. Closing tags must be named. It’s potentially error prone otherwise and frankly I think it’d be less readable your way.

    In reference to your clarification about this being a nonstandard violation of the XML standard to save a few bytes, it is an incredibly bad idea for several reasons:

    1. It’s nonstandard and possibly will have to be supported far in the future;
    2. Standards exist for a reason. Standards and conventions have a lot of power and having ‘custom XML’ ranks up there with Ivory Tower graphic designers who force programmers to write a custom button replacement because the standard one can’t do whatever weird, wonderful and confusing behaviour was dreamt up;
    3. Gzip compression is easy and far more effective and won’t break standards. If you see a gzip octet stream, there’s no mistaking it for XML. The real problem with the shorthand scheme you’ve got is that it still has at the top so some poor unsuspecting parser may make the mistake of thinking its valid and bomb out with a different, misleading error;
    4. Information theory: compression works by removing redundancy of information. If you do that by hand, it makes gzip compression no more effective because the same amount of information is represetned;
    5. There is a significant overhead on converting documents to and from this scheme. It can’t be done with a standard XML parser so you’d have to effectively write your own XML parser and outputter that understands this scheme (actually conversion to this format can be done with a parser; getting it back is more difficult), which is a lot of work (and a lot of bugs).
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 69k
  • Answers 69k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer If you create a DataTemplate in a resource dictionary and… May 11, 2026 at 12:45 pm
  • added an answer The standard routing is set up to use id as… May 11, 2026 at 12:45 pm
  • added an answer It appears that the fix for my issue is to… May 11, 2026 at 12:45 pm

Related Questions

Is there any reason why I should pick JSON over XML, or vice-versa if
Is there any reason why JQuery would not work when used in an ASPX
I'm trying to do this, and failing. Is there any reason why it wouldn't
I know it is customary, but why? Are there real technical reasons why any
Off the top of my head, I don't see any reason why you couldn't
I helped a friend out by doing a little web work for him. Part
EDIT: As of Java 8, static methods are now allowed in interfaces. Here's the

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.