Hello, I have a problem when I want to output the XML of a node with its namespace. In the following example dom createDocumentNS "myNamespace" Test doc $doc...
... That's not a mistake, that's a good idea. In other words: No, you are right to believe that asXML should at least be able to output the node with its...
Rolf Ade
rolf@...
Feb 6, 2008 11:11 pm
1786
... I have found a way to insert the namespace of the node on which asXML is called like this proc asXmlNs {node} { set name [$node localName] set ns [$node...
... Yes, it isn't that simple. I had temporarily adding all XML namespace declaration in scope of $node in mind, then asXML, then remove. Adding all XML...
Rolf Ade
rolf@...
Feb 7, 2008 5:47 pm
1788
... Thank you, Yes that seems to work. But I would like to know what exactly you mean by magic and no-nos. Is it the namespace axis in the selectNodes...
... The bit magic is the namespace axis, yes (but is may be too much said). The no-no is, to use DOM 1 methods (setAttribute, removeAttribute, hasAttribute)...
Rolf Ade
rolf@...
Feb 8, 2008 6:36 pm
1797
java question and answer at http://javaanswers1.blogspot.com/...
I'm using tDOM to parse HTML. (I need the XPath query capability, so htmlparse is not sufficient for my needs.) The following form causes an unexpected problem...
With email text wrapping it is a little hard to see what is happening, but the input attributes need to be quoted. If you run xmllint --debug on the input,...
Kevin Partin
Kevin.Partin@...
Feb 28, 2008 3:53 pm
1804
... You've already successfully reported the bug. Reporting problems here on the list is perfect. I confirm the bug for 0.8.2. It seems to work well with...
Rolf Ade
rolf@...
Feb 28, 2008 4:05 pm
1805
... If "anything" means coloring a line to mark it as "somehow" wrong, then yes. Once I fully quoted the HTML attributes: <input TYPE="CHECKBOX"...
... I have ActiveState 8.4.14 for Windows. My lib directory contains tdom0.8.1. If I retrieve the cvs head, will I need to build it for Windows before I can...
Your <input> line should be <input TYPE="CHECKBOX" name="msrf_disp_res_nodc" VALUE="1" checked="CHECKED"/> Note the '/>' to end the input tag. The the </td>...
Kevin Partin
Kevin.Partin@...
Feb 28, 2008 4:52 pm
1808
... ActiveState distributes recent cvs snapshots for various packages, including tdom. As far as I see, they have a tdom 0.8.3 in the their teapot repository. ...
Rolf Ade
rolf@...
Feb 28, 2008 5:09 pm
1809
... Except I'm using tdom to parse HTML, since it has that option, and that is what I need. As I recall the "/>" is for XML....
As near as I can tell from the documentation, if I want the names and values of all the attributes of a node in a list together, I need to do the following: ...
... I'd written it with 2 lines lesser, but otherwise yes. DOM methods. An alternative to that could be $node selectNodes @* with returns a list of att...
Rolf Ade
rolf@...
Mar 6, 2008 11:03 pm
1814
I'm sorry - I missed to send out a note in time, that tdom cvs anon access is up again (it is since a while). rolf...
Rolf Ade
rolf@...
Mar 6, 2008 11:11 pm
1815
... But all that is needed is to strip one level of list-ness (right?): join [$node selectNodes @*] In Tcl 8.5 the above should be interpretable as a valid...
... I am not familiar with XPath, so this never would have occurred to me. It's not an example listed in the tDOM documentation, so I never would have found it...
Hi, I am new to tDOM. So please send me some example with which I can get an idea on tDOM. Thanks in advance! __________________________ Thanks & regards, Anil...
Hi, Generally we use "set node [$root selectNodes /Command_Line_Interface_Reference/commands/name/text()]" to get the text data from the node "name". But I...
... I understand, that you want to do something. And that you're unhappy with the way, you do this something now. But I don't really understand what you're...
Rolf Ade
rolf@...
Apr 29, 2008 12:50 pm
1840
I missed the original post and haven't used tDOM for a while, but maybe the OP is looking for something like: proc...