snippets

Check-in [10138ce489]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:tdom nodecmd xmlns examples
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 10138ce489a1113ed63149bea95dbc973e96c832c5c4c47d111eb406bf2dcaf8
User & Date: alex 2019-11-13 11:21:51
Context
2019-11-21
19:58
tdom-xpath-1 check-in: 8c7d141406 user: alex tags: trunk
2019-11-13
11:21
tdom nodecmd xmlns examples check-in: 10138ce489 user: alex tags: trunk
2019-06-27
14:55
tdom xpath search example 1 check-in: 3435a354be user: alex tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

dde/dde_col0_pipe.tcl became executable.

Added tdom/tdom-nodecmd-xmlns-1.tcl.































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package require tdom

dom createDocumentNS http://aaa a:foo doc
dom createNodeCmd textNode t
dom createNodeCmd -namespace http://bbb elementNode b:foo
dom createNodeCmd -namespace http://ccc elementNode c:foo

[$doc documentElement] appendFromScript {
   b:foo { t {Text 1} }
   b:foo {
     c:foo { t {Text 2} }
   }
}

puts [$doc asXML -indent 2]

Added tdom/tdom-nodecmd-xmlns-2.tcl.







































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package require tdom

dom createDocumentNS http://aaa a:foo doc
dom createNodeCmd textNode t
dom createNodeCmd -namespace http://bbb elementNode b:foo
dom createNodeCmd -namespace http://ccc elementNode c:foo

$doc documentElement root
$root setAttributeNS "" xmlns:b http://bbb
$root setAttributeNS "" xmlns:c http://ccc

[$doc documentElement] appendFromScript {
   b:foo { t {Text 1}}
   b:foo {
     c:foo { t {Text 2} }
   }
}

puts [$doc asXML -indent 2]