Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Switching from HTML to XML

Featured Replies

I will leave the reasoning behind this question for another day. (I am still not sure if XML is the future, but after reading the currect HTML5 spec I truelly hope it is as I would much rather design in XHTML2 than in HTML5!) But let's not discuss that, I would like to try to make some sites in XML. I am just not sure about some things I hope you can help me with.

 

The most prominent difference is the use of the .xml extension and to serve the document as application/xml (right?)

 

1) will all browsers understand this?

2) can I still use javascript the same way? (or in other words: is the DOM the same?)

3) Can I use php the same?

4) Will it work with content management systems?

 

Thnx.

Hi!

 

I personally have no idea, but see you all lonely there. http://webdesign.about.com/od/xml/XML.htm has loads about using xml....might help? There are also lots of converters when you google html to xml which might help?

 

I hope someone answers you with more info.

 

All the best :)

I will leave the reasoning behind this question for another day. (I am still not sure if XML is the future, but after reading the currect HTML5 spec I truelly hope it is as I would much rather design in XHTML2 than in HTML5!) But let's not discuss that, I would like to try to make some sites in XML. I am just not sure about some things I hope you can help me with.

 

The most prominent difference is the use of the .xml extension and to serve the document as application/xml (right?)

 

1) will all browsers understand this?

2) can I still use javascript the same way? (or in other words: is the DOM the same?)

3) Can I use php the same?

4) Will it work with content management systems?

 

Thnx.

 

Okay the first thing we need to consider is that XML and XHTML are two different things.

 

XML is not a replacement for HTML. It was designed as means of transporting and storing data. (w3schools)

 

XHTML is a stricter and cleaner version of HTML, or if you will, the new version of HTML. (w3schools)

 

Now XHTML and XML can be used together. XML carries the data while XHTML displays the data.

 

The advantages of XML is that it is essentially a text document, thus it can be read by any platform.

 

Should you change to XHTML? Well probably. It is not much different from HTML but it is the future so you may as well.

 

Here is some more reading from w3schools.

Just to (possibly) confuse you even more, have a read of this Mozilla article, in particular the section headed "XHTML is XML, not HTML".

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.