[redland-dev] How do you add an xml namespace abbreviation using
redland APIs?
Dave Beckett
dave at dajobe.org
Sat Sep 22 15:58:55 BST 2007
Lou Sakey wrote:
> Reading a file that contains them and re-writing it with the “rdfxml”
> serialize APIs results in the xml namespace abbreviation in the written
> file being lost.
Yes. Parsing and serializing are entirely separate. If you want
information to pass between them, you will have to copy it.
Namespace information is readable from the parser objects in
newer APIs as callbacks to the namespace handler. You can
then use it on the serializer object to set new prefix/uris.
Dave
More information about the redland-dev
mailing list