xml-xindice-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig Schaepe" <craig...@comcast.net>
Subject XUpdate an XML block
Date Sun, 05 Oct 2003 19:59:42 GMT
In none of the examples of XUpdate do I see any capability to simply replace
a block of XML data.  I see that I can append a block of XML data but I
cannot update a block in place.

I want to replace the entire Schedule Element Schedule[@Instance="2"] with a
new block of XML data and I do not want to change position of the element.

    <Schedule Instance="1">
        <Properties attr="xyz"/>
    <Schedule Instance="2">
        <Properties attr="abc"/>
    <Schedule Instance="3">
        <Properties attr="abc"/>

Replace with
    <Schedule Instance="2">
        <Properties attr="def"/>

I know I can change the attribute to "def", that is not the point I have
simplified the example, suffice to say that my elements are much more
complex and that I have to replace the element in place.

Is there a way to do this other than removing then adding back in at a
particular location?


View raw message