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 117375
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T03:19:34+00:00 2026-05-11T03:19:34+00:00

Developing server side code i finally got my eyes X-crossed trying to write –

  • 0

Developing server side code i finally got my eyes X-crossed trying to write – and then understand, of course – forms or other html code in which text strings (attributes) within double quotes must occur in tagged string (markup) opening and closing properly; but often javascript text within apostophes must be instantiated, quite often quoting other text (within quotes, of course) or instantiating computed values that must be placed within language dependent markup

This is a complete mess and a mainroad to blindness, and madness, and a sure way to waste my time tryng to figure out why the last cell in a table is rendered before the table caption – sure, I missed an apostrophe in a string of 512 characters. After trying to reinvent the wheel crafting some API to manage the unmanageable, I have seen this possible solution: well, the damned xhtml is, in facts, XML. So why not use a XMl parser (on server) to create from scratch a document fragment, populate it adding childnodes at my will, then having the parser serialize all the fragment tree taking care of the stupid details like opening and closing tag, adding the apostrophes and all the other similar stuff? Using it only in the backoffice side should keep low workload on the server – only few people in this planet could authenticate and access the serious stuff, so object creation and release is kept acceptable.

My question is: is this in your opinion a good solution to the problem mentioned above? Maybe there are simpler solutions I am neglecting? There is some problem I did not see? Is it a sort of overkill? Ironic ‘congrats, you finally got it’ are accepted.

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. 2026-05-11T03:19:35+00:00Added an answer on May 11, 2026 at 3:19 am

    Building a DOM dynamically server-side and then dumping the resulting HTML (or XHTML) is what most serious server-side technologies do. Perhaps they don’t do it with raw XML–perhaps they have their own class structure/API that they use to do this, but that’s the basic paradigm they follow.

    As for ‘congrats, you finally got it’, I’d say you’re on the right path. You didn’t mention specific technology, but I’d guess you’ve been messing around with creating raw HTML using basic PHP or Perl. Congratulations, you’ve done what the rest of us do, eventually: wonder if there’s a better way. I would suggest that you look into some of the serious web application frameworks out there, like ASP.NET MVC, Ruby on Rails, Struts, or Twisted.

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

Sidebar

Ask A Question

Stats

  • Questions 111k
  • Answers 111k
  • 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
  • Editorial Team
    Editorial Team added an answer There is a commercial tool called TestComplete that lets you… May 11, 2026 at 9:42 pm
  • Editorial Team
    Editorial Team added an answer Why not merge the set of existing entities with those… May 11, 2026 at 9:42 pm
  • Editorial Team
    Editorial Team added an answer There's an issue with the following line: $buffer = str_replace('\n',… May 11, 2026 at 9:42 pm

Related Questions

Developing server side code i finally got my eyes X-crossed trying to write -
I've been developing traditional ASP.NET applications with server side ASP.NET controls and code behind
I'm actually developing a Web Service in Java using Axis 2. I designed my
I know this is a vague question, especially since I am not providing any
We have an enterprise application written in asp.net c# (3.5) and SQL server that

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.