/    Sign up×
Community /Pin to ProfileBookmark

XML vs Database with PHP

Hello!!!

I have a question to make!!! Is any advantage to convert the DB data in xml to show in the main page formatted with PHP???

to post a comment
PHP

6 Comments(s)

Copy linkTweet thisAlerts:
@so_is_thisNov 03.2006 — It depends. More info!
Copy linkTweet thisAlerts:
@Paulo_MonteiroauthorNov 03.2006 — Replace the above question for the next!! A relational database is a good choice to storing XML??
Copy linkTweet thisAlerts:
@so_is_thisNov 03.2006 — I don't know that I'd store fully formed XML documents in a database. That would be a waste of space. I would unload the data from its XML structure and store just the data -- in a normalized format -- into a relational database. Such relational data can certainly then be extracted and formed into an XML document, again, for transmission purposes.
Copy linkTweet thisAlerts:
@NogDogNov 03.2006 — I'll put it slightly differently:

A relational database is an excellent way to store data, making it easy and fast to retrieve, sort, and filter the data in many different ways.

XML can be a useful way to output data that you retrieve from a database in order to make that retrieved data portable and usable by any application or user agent which knows how to read and parse XML.
Copy linkTweet thisAlerts:
@Paulo_MonteiroauthorNov 03.2006 — And what you think about native XML databases?? How much cost have one of this on a server???
Copy linkTweet thisAlerts:
@so_is_thisNov 03.2006 — Keeping all of your data in an XML document for local reference purposes is like using a fork to eat soup -- certain tools are designed to perform certain functions better than other tools. A relational database is the best tool for local storage of data. XML documents are the best tool for porting that data between platforms.
×

Success!

Help @Paulo_Monteiro spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...