I am new to xindice and xmldb (though not new to xml) and I am wondering how
I would go about replacing nodes.  Xupdate works fine if i want to replace
the text content of a single node but how would I go about replacing an
entire node that is not a collection.  For example:
my collection looks like this:
            <site xmlns:src="http://xml.apache.org/xindice/Query"; id="1"
src:col="/db/ArtSite" src:key="1">
                <config>
                    <icon />
                    <title>New Site</title>
                </config>
                <owner>sean</owner>
                <studio>
                    <pieces />
                </studio>
                <preferences />
            </site>

and i want to change the config node to look like this:
                <config>
                    <icon>images/myicon.jpg</icon>
                    <title>My great new site</title>
                </config>

how would I do it without simply iterating through all of the nodes and
xupdating them individually?

thanks for any info.

Sean

-- 
View this message in context: 
http://www.nabble.com/Xindice---Replace-Node-tp17608708p17608708.html
Sent from the Xindice - Dev mailing list archive at Nabble.com.

Reply via email to