This four step guide will give you the foundation you always wanted. Learning the basics in handling stocks. This guide will help anyone, interested in getting...
Can anyone tell me how to get tDOM to include the XML declaration when the 'domDoc asXML' method is used? Kevin -- Kevin Partin (281) 286-8959 ...
Kevin Partin
Kevin.Partin@...
May 11, 2006 6:58 pm
1310
... tDOM doesn't omit the XML declaration at all. The reason is the encoding declaration. The XML declaration is not mandatory. If it is missing, then that...
rolf@...
May 11, 2006 7:38 pm
1311
I should have thought of that. Thanks. Kevin ... -- Kevin Partin (281) 286-8959 mailto:Kevin.Partin@......
Kevin Partin
Kevin.Partin@...
May 11, 2006 11:40 pm
1313
set xml { <html xmlns="http://www.w3.org/1999/xhtml"> <head/> </html> } set doc [dom parse $xml] $doc selectNodes -namespaces { html...
... [I suspect, you know the most time more convenient doc selectNodesNamespaces method and you use the selectNodes option -namespaces just for demonstration?]...
rolf@...
May 13, 2006 4:52 pm
1315
Select a namespaced element: $doc selectNodes -namespaces { "" http://www.w3.org/1999/xhtml } // head Select a non-namespaced element: $doc selectNodes head ...
... No, it isn't that simple. The problem is of course multi steps xpath exprs with non-prefixed element names, some of them meaning not namespaced elements...
rolf@...
May 14, 2006 2:27 pm
1317
If I write: set ns { "" http://www.w3.org/1999/xhtml } $doc selectNodes -namespaces $ns //head or, as you prefer: $doc selectNodesNamespaces $ns I am...
... You don't have a void prefix (that would be, as already written :head, and that is not a legal namespaced XML name), you have a not prefixed element name. ...
rolf@...
May 14, 2006 4:20 pm
1323
I'm not sure I'm doing it right, anyway, but here goes: I want to build tDOM with Visual Studio (same tool as the rest of our product, et al) on Windows 2003. ...
Following up on my own build issues: Well, I've worked around this one, modified the makefile to use tclstub84, and got the compilation working all around (the...
... It's not clear to me, what you're doing wrong (or what may be broken in the nmake build stuff). If I build for windows (and do not cross-compile), I use...
rolf@...
May 27, 2006 5:35 pm
1326
... Looks like you're using an older source tree. You probably don't have to care. tdomhtml is a pure tcl package on top of tDOM; if you don't use it, you...
rolf@...
May 27, 2006 5:51 pm
1327
... The thing is, my source package is the 0.8.0 source tgz file from the site. I suspect it's up to date :) It's not CVS, by any means, but I would assume it...
... tDOM 0.8.0 is almost two years ago. There probably was a bug in the VC++/nmake build stuff, but thats fixed in CVS. You could use 0.8.0, as shiped, that...
rolf@...
May 28, 2006 11:10 pm
1330
Hello, I'm trying to use the 'tnc' extension to validate an XML file. The problem appears when i try to load the required package: % tdom invalid command name...
... Obviously, tnc isn't installed (at least, not correctly) on your system, because of the 'can't find package tnc' error for [package require tnc]. You need...
In fact, you can use 'dom' or 'tdom', but they are not the same thing. I copied and pasted this to show that i load the package properly. I guess the problem...
Hello, When using asXML on a DOM tree containing comments, newlines and indentation between the comments get lost. For example, the following: <!-- comment 1...
If you need it formatted, you could use 'xmllint --format', but I'm on a Linux system. Kevin ... -- Kevin Partin (281) 286-8959 ...
Kevin Partin
Kevin.Partin@...
Jul 11, 2006 1:39 pm
1338
... Well, the default behavior of [dom parse ...] is, to strip 'white space only' text. Here, tDOMs roots in 'data-oriented' XML shows. Parsing with...
rolf@...
Jul 12, 2006 5:59 pm
1339
Just got my BS and i wasnt even required to turn up! Just called these people 801 697-0461, filled out a few forms and a bit of paperwork and was accredited...
alexis-sabry986@...
Jul 18, 2006 3:41 pm
1340
It doesn't seem to work, I can use *,?,[ab], but I don't seem to be able to do {asdf,qwerty,foobar} and have it match. Is this just not supported, or is this a...
... The getElementsByTagName* methods use tcl glob style, that is: the same rules as [string match ..]. The comma (,) isn't a special char for the tcl glob...
rolf@...
Jul 21, 2006 3:47 am
1342
Ahh I see, I was looking at the TCL glob command which does support that syntax. I'll just have to do it manually then. Thanks! ~Jake B...
I am not sure if this is special to my system (Linux on a ppc64 architecture): % info patchlevel 8.4.12 % package require tdom 0.8.1 % dom parse -simple {<a...
... No, this is not special to your system; your example let tdom crash also on my linux/pentium system. This is undoubted bad. I'll look into, to catch the...
rolf@...
Aug 9, 2006 2:43 pm
1345
Hi All, I am using tDOM to parse an XML string and getting an attribute named 'status' (alongwith some other information). I do not have control over the XML...