XML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreXML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old July 16th, 2004, 11:11 AM
flutlichtjunky flutlichtjunky is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 21 flutlichtjunky User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
How do you USE xml?

Hi

Im in need of a few gaps being filled in for me.

Im currently learning PHP but I have an eye on the future and I would like to learn XML / XSL as I can see some benefits of the standard. BUT when it not concerning creating data that can easily be exhanged between systems and creating data with descriptions.

What is the use of it? as in for a middle of the road web developer using mysql/firebird and PHP?

Ive got this nice process flow in my head of mysql db >> php extracts data and creates xml file >> xsl to transform it to XHTML >> css to style the xhtml >>> viewed in browser.

which seems like a nice flow but the quesiton is WHY the complication?

Reply With Quote
  #2  
Old July 17th, 2004, 01:27 AM
mikkri mikkri is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Posts: 67 mikkri User rank is Private First Class (20 - 50 Reputation Level)mikkri User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 h 24 m 52 sec
Reputation Power: 5
Hi,

The most advantages of such architecture are how easily you can change your template with a new one and implement a number of versions that use different templates.

That may be the case if you are ASP and need to provide different stylings for your web-system for different clients.
__________________
Java, DB, XML Consultant
www.mikkri.com

Reply With Quote
  #3  
Old July 19th, 2004, 10:16 AM
Teflon's Avatar
Teflon Teflon is offline
Teflon The Black
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Location: Woodbridge VA
Posts: 246 Teflon User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 28 m 14 sec
Reputation Power: 5
Send a message via AIM to Teflon
one of the driving forces behind the complication is an attempt to make it simpiler

Seperation of jobs. The database stores your info, php parses it out into xml. then the xml is parsed against the xsl to form xhtml and finally the css is thrown in the mix and it looks purty

You have those seperated all your data from your information and from the method that turns that data into information.

You can also take your data out at the various stages and do different things, say your clients use both computers and cellphones to view your information, you cant use the same css for them can you?

Thats where the power is IMHO.

seperating out tasks and data.

hope that helps ya, there are many articles all about the merits of this approach all around the internet.
-Teflon
__________________
Teflon - The Black <desc>Mark This Up</desc>

Reply With Quote
  #4  
Old July 19th, 2004, 12:03 PM
flutlichtjunky flutlichtjunky is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 21 flutlichtjunky User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks to both of you. Its all clear now

HAve been doing ALOT of reading and i am very much into the idea of XML.

As it happens im currently learning php (ive given myself 6 months to be an intermediate user) and i think that xml would be a good technology to learn along side to give me a good choice of projects to learn from.

This may be the wrong forum, but what xml parsers are available for php? Ive read about sablotron, but i user xampp so i never had to compile php or get my hands dirty with apache.

Reply With Quote
  #5  
Old July 19th, 2004, 12:47 PM
Teflon's Avatar
Teflon Teflon is offline
Teflon The Black
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Location: Woodbridge VA
Posts: 246 Teflon User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 28 m 14 sec
Reputation Power: 5
Send a message via AIM to Teflon
i use sablotron.

If you want help setting it up i may be able to help you.
It should not be that difficult.

Basically you uncomment a line in your php.ini file and make sure that a .dll file is in your php/extensions/ folder

http://us3.php.net/xslt

look under installation

Another option is to not use "any" parser. the clients browser should be able to parse the xml and the xsl by simply bringing up the .xml, provided all the links are in place.
-Teflon

Reply With Quote
  #6  
Old July 19th, 2004, 11:20 PM
a.koepke's Avatar
a.koepke a.koepke is offline
Second highest poster :p
Dev Shed God 5th Plane (7000 - 7499 posts)
 
Join Date: Jul 2001
Posts: 7,323 a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 8 h 13 m 55 sec
Reputation Power: 27
If you are using XML and XSLT you should have a look at PHP 5. It uses a new XML library and is a lot better than Sablot.

Sending the XML and XSLT to the browser is not something I like doing on the internet since it makes it unavailable to legacy browsers. I prefer to do the transforms server side and then pass the HTML. If you have an intranet or controlled environment then you may consider client side transformations.
__________________
- Andreas Koepke

Koepke Photography


Reply With Quote
  #7  
Old July 19th, 2004, 11:53 PM
quickrss quickrss is offline
Banned
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 3 quickrss User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Smile

You can use URL to put rss on your website. Just cut and paste the rss or xml feed url there and you put javascript to show feed on your site.

Reply With Quote
  #8  
Old July 20th, 2004, 12:11 AM
a.koepke's Avatar
a.koepke a.koepke is offline
Second highest poster :p
Dev Shed God 5th Plane (7000 - 7499 posts)
 
Join Date: Jul 2001
Posts: 7,323 a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 8 h 13 m 55 sec
Reputation Power: 27
Quote:
Originally Posted by quickrss
You can use www.quickrssfeeds.com to put rss on your website. Just cut and paste the rss or xml feed url there and you put javascript to show feed on your site.

How about not spamming the forums with your site. All your posts so far have been spamming your site.

How about making a valid contribution before you get banned.

Reply With Quote
  #9  
Old July 20th, 2004, 08:22 AM
Teflon's Avatar
Teflon Teflon is offline
Teflon The Black
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Location: Woodbridge VA
Posts: 246 Teflon User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 28 m 14 sec
Reputation Power: 5
Send a message via AIM to Teflon
Damn those legacy browsers!!!
Legacy browsers are definetly something to think about though.
And also remember that your clients processing power may not be as good as your development machine, so those transforms could take some time.

ps.
Finally my clients are moving to a better browser than netscape 4.78, in september....

How is the php 5 tranformer?

I havent gotten a chance to play with it as I just got people to install 4.3.7, which is what Ive been using.

I need some good reasons to tell them they need to upgrade so I can use some of the php5 features.

sorry for taggin onto a post.

-Teflon

Reply With Quote
  #10  
Old July 20th, 2004, 11:22 AM
a.koepke's Avatar
a.koepke a.koepke is offline
Second highest poster :p
Dev Shed God 5th Plane (7000 - 7499 posts)
 
Join Date: Jul 2001
Posts: 7,323 a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 8 h 13 m 55 sec
Reputation Power: 27
PHP5 uses libxml (http://www.xmlsoft.org/) which is a lot better than Sablot.

Best resource for PHP5 is www.Zend.com/php5

http://zend.com/manual/migration5.functions.php
http://zend.com/manual/migration5.oop.php

Those two links are good to show differences.

Reply With Quote
  #11  
Old July 27th, 2004, 04:33 PM
Malinali Malinali is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Location: Buenos Aires, Argentina
Posts: 74 Malinali User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
I use XML by using XML Tamino Server, an XML database. It's a great tool for a Content Management System; you can store whatever you want there and then show it in whichever way you want it.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreXML Programming > How do you USE xml?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support |