using XQuery to update XML

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
User avatar
kendall
Forum Regular
Posts: 852
Joined: Tue Jul 30, 2002 10:21 am
Location: Trinidad, West Indies
Contact:

using XQuery to update XML

Post by kendall »

Hey,

I have been researching on using XQuery as an alternative to using PHP 4's XML functions to manage xml file content.

Has anyone ever tried using it?

My question is how diverse is it in being able to capture form data to specify the data of an xml file to update...

I currently built a xml/xsl driven table that lists out an xml file but i wanna impliment some actions that will alow modification of structure in terms of order, data, insert, and delete, replace...

im seeing's xQuery's ability but its the ability to act based on user input data of some sort

Kendall
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

Imho you will soon experience that, just as with plain files, xml files require locking etc to achieve concurrency. Every time you update your xml structure you have to rewrite the whole structure into the file...

I'd probably use an SQL dbms and implement it as following: [user] <-> [sql dbms] <->
User avatar
kendall
Forum Regular
Posts: 852
Joined: Tue Jul 30, 2002 10:21 am
Location: Trinidad, West Indies
Contact:

Post by kendall »

timv,

hey whats going on? I have been tying for some time now to really exrecise the abilities of xml and using it as a smiple solutions for content management and lite data storage.

Lately in my country and my past projects alot of people are wanting more and more control over thier website in terms of content management but the content its self is usually so arbitrary and in such a small amounts that running an MySQL/ PHP management seems so strenuous in terms of the tools to use. im researching alot on using xml/xsl to try and offer alot of flexibility and an easier solution. I'm getting the hang at creating xslt to format xml content but when is the real power going to come with this ability to use xsl/ xquery to also modify xml data.

I think im going to resort back to using PHP in terms of editing xml data (but gosh i hate PHP4). But im feverishly trying to search for ways in which i can use this xquery/abiliy.

If you guys ever come across anything concerning this...i hope u guys post it up on the boards...

Later
Post Reply