Due to lack of interest in my destop projects (PlainHTML, ShutDownerXP, and newly, WE editor), i decided to shut down all activity regarding desktop projects, this time for good.
In the meantime, i've found my code editor of choice, in the great Eclipse editor, so this is another reason not to develop "yet another web editor". Many third-party components used in my projects are too much buggy, to continue development, some of them outdated, and i don't have time to fix them all. It's a waste of my time, and it will lead to nothing. I'm committing my time to PHP development from this time forward.
The BWS project will be cut down to a minimum, and the forum section will be shut down. I will archive the site, and remove pretty much everything not related to PHP development and web design.
I am introducing a new feature: Logging in with GMail account credentials.
I believe, this will be a good idea, since it won't require to register on the BWS site.
I began to upload some new kind of stuff, widening the content scope of this site. When new information is too valuable to be collected by different content bots, i will put them behind authentication.
User accounts created for the forum are member accounts, thus enabling for you to see these internal articles.
There is a new template available on BWS: Silver Plating
This is a new template for larger sites, portals, community sites, galleries, etc.
Old web templates were dropped, because they are out-of-date did not comply with today's standards, and many more reasons.
Those templates will not be available anymore.
Some times (when working with Ajax requests or serving data for other sites) we need to generate XML output.
Sending the well formed XML code only will not be interpreted as XML or will be very hard to parse. For external applications and Ajax will be available as simple text.
In order to serve it as XML we need to set the MIME type as such.
The proper MIME type is text/xml.
For the format to be available and the client application (browser, Javascript functions, external web pages) to be able to interpret our output as XML, we will have to change the content type in the response header:
Just remember one thing: Always change response header information BEFORE sending any output (echo, print and anything else which has the ability to generate any kind of output).
After we set the content type, we will need to assemble the XML which will be later parsed by the client application.
The first element of the response must be an XML declaration:
Without this, the content of the XML response will not be parsed, or even worst, the XML parser will throw an error.
After that, we will create the XML structure, wich will hold the data.
There are many ways to create XML output such as follows:
Filling up XML with data and XML processing will be the subject of another article.