AboutAlexander Radev Expertise I can aswer XML realted questions regarding basics, what XML can be useful for, server-side XML usage scenarios, XPath query language, XSLT transformations, DTDs and XSD.
Experience I have been working with XML technologies since 1999.
Expert: Alexander Radev Date: 4/12/2006 Subject: questions about xml
Question you seem to be an expert on xml, I want to be the one stop shop for everything relating to web design, coding, programming, promotion, and hosting.
I want to do it all, I have mastered XHTML, CSS< and studying a bunch of programming languages and others like javascript, php, sql.
I am wanting to learn almost every language I Will ever have need for, I have a list of some questions I have about xml, if you can't answer them all that's cool, but even if you find 1 or 2 of the questions as ones you can easily answer, or answer, then I will greatly appreciate it and it will help me move foward.
1.I run off w3 schools everythign I do I make compliant, I use Xhtml, style with css, and make it all error free, doctypes and everything. I want to know what Xml is, what it does, what it is for. If i create a website in Xhtml, style it in external css, use javascript for some things, and use my main server side scripting as php. then where can xml come in, what's the purpose. It says it isn't a replacement for, but moreof an addition, helpful with xhtml. What can I Do to use xml, in my websites, along with what I have mentioned, and if I do, what is it going to do for me, that I couldn't accomplish without it. The way I see it Xhtml, creates the website, Css styles everything, javascript can do some stuff like make the images preload, rollovers, mouse over commands, and the like, drop down menus and more. Php is hte power house that handles all the form situations, and deals with security and pretty much all the basic stuff I can think of, so what is xml going to do for me when I use it, I am also studying sql but that will take me awhile to get the hang of.
Answer Consider AJAX: If you want your webapplication users to be able to refresh just a small segment of your screen (e.g. (a)validate current input ON THE SERVER - scenarios like SSN, ZIP code etc validation; (b)load some database results while typing ... you name it - just google for AJAX examples). Now, you do this via the XMLHttpRequest / ActiveXObject("Microsoft.XMLHTTP"), so you should pass the data form your server in XML (e.g. call a php script that does the logic and returns ANY! xml you want, not necessarily xhtml).
Remember: XML is DATA REPRESENTATION FORMAT and xhtml is one type of data that xml can represent. You are free to use the data in any way you want - just like a database :)