Forum OpenACS Development: Response to ns_xml.so problem - Please Help!

Collapse
Posted by Yon Derek on
Re: dave's problem. I would guess that you don't have a correct version of nsxml. Please re-check.

To test for old/new version you can use the script I've posted in this thread:

proc nsxml_broken_p { } {
  set doc '<?xml version="1.0"?><me>him</me>'
  set doc_id [ns_xml parse $doc]
  set root [ns_xml doc $doc_id]
  set name [ns_xml node name $root]
  if { [string_equal_p $name "me"] } {
    return 1
  }
  return 0
}
This procedure returns 1 if you have old, broken version and 0 if it's a good version.