[xquery-talk] XQuery Update vs. Perl

jidanni at jidanni.org jidanni at jidanni.org
Thu Apr 4 20:12:40 PST 2013


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...


More information about the talk mailing list