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 August 11th, 2004, 12:02 AM
dashley6789 dashley6789 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 2 dashley6789 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Representing Documents In XML

I was just wondering what people consider as the best way to represent a simple document in XML. Does each paragraph get it's own tag? What i'm trying to do is read in text but maintain the paragraphs so that it will look right when I print it out. I saw some people placing <br/> within the XML but this seems like a bad practice.

Reply With Quote
  #2  
Old August 12th, 2004, 07:08 AM
lechie lechie is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 2 lechie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Quote:
Originally Posted by dashley6789
I was just wondering what people consider as the best way to represent a simple document in XML. Does each paragraph get it's own tag? What i'm trying to do is read in text but maintain the paragraphs so that it will look right when I print it out. I saw some people placing <br/> within the XML but this seems like a bad practice.


XML is a good format for specifying the structure of your data, unlike HTML which specifies how your data should look. It is a good idea to structure your xml document in a manner that suits it's content. For example, if it was a book you may have root <book> tag followed by an <author> tag, and so on.

So you may be wondering, how do I make it look a little more interesting? Well, the good thing about XML is that it is very simple to convert into other formats. In fact, there is an XML language called XSL (sometimes called XSLT), which you can use to do this. It is very common to find an XML file being converted into HTML using an XSL document. Have a google around and see what you can find.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreXML Programming > Representing Documents In 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


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





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