OK, I figured out how to do most of it:
copy $c := doc("zaokeng.kml")
modify (
  for $d in $c//*:Point
  return insert node (
  <extrude>1</extrude>,
  <altitudeMode>relativeToGround</altitudeMode>
                )  before $d/*:coordinates
)
return $c

As far as inserting things into the text of a node,
well as you can see in
http://www.mail-archive.com/basex-talk%40mailman.uni-konstanz.de/msg02434.html
if I let basex's doc() get its hands on it my significant whitespace
gets zapped anyway...
_______________________________________________
[email protected]
http://x-query.com/mailman/listinfo/talk

Reply via email to