Forum OpenACS Development: Re: ns_xml namespaces and encoding support

Collapse
Posted by Simon Carstensen on
Looks like tDOM will be the solution to our problem:

"[The parsefile command] reads the XML data directly out of the file with the filename filename and parses that data. This is done with low level file operations. The XML data must be in ISO-8859-1, UTF-8 or UTF-16 encoding. If applicable, this is the fastest way, to parse XML data."

And it looks like it supports namespaces as well. Perfect. Thanks!

Collapse
Posted by Håkan Ståby on
I couldn't wait, so I fixed tDOM support. :) I had to modify the postgres tables to use timestamptz instead of timestamp to get it to work. (Maybe there is another way?)

Where do I send the patch if anyone is interested? I guess it would be useful if someone (Simon?) reviewed the code before adding it, since I only have little experience coding for openACS. Maybe there need to be upgrade scripts added as well?

I have tested it with postgresql 7.3.2 and to parse two sites that use ISO-8859-1 characters.

Cheers,
Håkan