[Expat-discuss] XML_ParserCreateNS

Peter Van der Beken peterv at propagandism.org
Thu Dec 16 23:15:51 CET 2004


Karl Waclawek wrote:
> I am inclined to change the code to simply use whatever
> namespace separator is supplied, even if it is '\0'.
> 
> Can you think of any use case for having the separator omitted?
> Fred, if you read this - do you remember why this feature
> was provided?

I don't see how '\0' can ever be useful as a separator, since Expat can 
send 1, 2 or 3 pieces (namespace URI, name, prefix) and the string is 
null-terminated. There's no way to find out if one should read beyond 
the '\0', since it can be the terminator of the string or the separator.

> So, I suggest two steps:
> - modify namespace separator code as above and adjust comments/docs

Not sure about this one, see above.

> - remove the sentence above from the comments/docs

Sounds good.

Thanks,

Peter


More information about the Expat-discuss mailing list