Forum OpenACS Development: Re: Tcl/XML parser problem

Collapse
6: Re: Tcl/XML parser problem (response to 1)
Posted by Jim Lynch on
the line you'd be checking there is the first one that used tdom, i.e., set doc [dom parse $xml].

Once you're satisfied that the line worked, go to the next, add it to your test script, don't forget the line that puts it out so you can see it.

The idea is you make sure the line is producing the exact behavior you expect before going on to the next.

Other things you can print about these objects, is their object type, which as part of checking for the behavior you want, you'd check the type so you know it's handing you back an object of the type you expect.