Page 1 of 1

using XQuery to update XML

Posted: Mon Mar 27, 2006 3:44 pm
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

Posted: Tue Mar 28, 2006 12:18 am
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] <->

Posted: Tue Mar 28, 2006 7:12 am
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