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:
Dell PowerEdge Servers
  #1  
Old July 24th, 2000, 08:12 AM
trahma trahma is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2000
Posts: 33 trahma User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
Send a message via ICQ to trahma
I've been a web developer over the past 4 years now, before I only did small perl cgi scripts and a little javascript, but in the past year I've been getting more into php and mysql development. I keep hearing about XML, but can never seem to find a description of XML that makes complete sense. Could someone give me a small example of a way XML benefits a web site. Seeing a devshed tutorial explaining this would probably enlighten several people.

As an example maybe, I'm currently writing a newscript in php/mysql which is based off of a perl script I've used for a while called Newspro. Would using XML in this project benefit me? If so how? The basic setup of my script is posting news, users can comment on news, and there can be multiple categories to submit news to.

Thanks for any help in advance

-Justin King
School District of Superior Web Coordinator www.superior.k12.wi.us

Reply With Quote
  #2  
Old July 31st, 2000, 11:59 AM
yduvoid yduvoid is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2000
Posts: 51 yduvoid User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
XML is very much like html except you make your own tags. You have to create a dtd file which will tell the tags of how they function. For example, you cannot use the <table> tags without the <tr> and <td> tag. So basically in the dtd documents you set up the tags so that they must contain a specific information in order for the tags to work. The best thing about XML is that they give you full flexibility, better readibilty and it is easier to work with large sites.

You can make a question and answer combo tags by naming it <qacombo> and it must contain the following two tags: <question> and <answers> otherwise they won't work. Basically you can use cascading style sheets to style the details in the tags (much easier to style for large sites). In the dtd document you set up the <qacombo> tags by the following:

<!ELEMENT qacombo (question|answers)>
<!ELEMENT question (#PCDATA)>
<!ELEMENT answers (#PCDATA)>

So, if you are interested in learning more about XML or better yet, XHTML then I suggest you to get a good book about them, and read it, then you will easily become a master of it.

Reply With Quote
  #3  
Old August 10th, 2000, 11:17 AM
softgazobee softgazobee is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2000
Location: Reading, Berkshire, UK
Posts: 2 softgazobee User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
For those of you who are struggling with am appreciation of what xml can do for you, go to www.w3schools.com/xml Do this and the tutorial on xsl and it will all become clear. It did for me. You may also want to visit Microsoft's site on MSXML. This has loads more info. I have been using xml for a week after starting a new job and I can already see the benefits of using it.

[This message has been edited by softgazobee (edited August 10, 2000).]

Reply With Quote
  #4  
Old May 16th, 2001, 10:14 AM
jkirkwood jkirkwood is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2001
Location: Toronto, Canada
Posts: 2 jkirkwood User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Arrow

Someone mentioned that XML's only use is exchange of hierarchical data between web systems. There's no need to use XML in a closed web site.

Not true. Microsoft (is that a bad word here?) has a great example of leveraging XML and XSL on an integrated web site => URL .

We have a MySQL database to track our notebook/desktop inventory. One view shows h/w and and config for one PC, latest network / VPN connection info, and the names of all apps installed on the system all on one screen. Some say 'why not hard code the view in HTML?' I had to think of a reason why XML and XSL would be useful in this case (besides their own personal development investment in XML!).

Here it is: maybe we'll soon have support staff running around the office with a wireless PDA. They bring up the record for the workstation they are servicing, but the view expects 1024 x 768. If they use XSL, they can format the view to the smaller display, but the data fetch remains the same. Also, an executive might want a different view that a support technician. Separate the data from the formating! Make your site architecture object-oriented!

My $0.02 worth.

J

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreXML Programming > Questions about XML in general.


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!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

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





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway