You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way to specify a default namespace, to be output in the JSON representation without a namespace prefix? If I do not call CodeMirrorSchemaInfoSerializer.SetPrefix(string, string), then my output has all elements prefixed with cmns0:. If I specify the empty string as a prefix, I still have the preceeding :. In my current usage, I would like the output to have no namespace prefixes (since my root XML element will have a default xmlns attribute).
Hi there - thanks for providing this library!
Is there a way to specify a default namespace, to be output in the JSON representation without a namespace prefix? If I do not call
CodeMirrorSchemaInfoSerializer.SetPrefix(string, string)
, then my output has all elements prefixed withcmns0:
. If I specify the empty string as a prefix, I still have the preceeding:
. In my current usage, I would like the output to have no namespace prefixes (since my root XML element will have a defaultxmlns
attribute).If there is no way to do this at present, I think this could be achieved by modifying
ToElementName(SimpleXmlElementRef)
to:I.e. if a supplied prefix is null or empty, do not specify a prefix on the output. Is this something you could consider adding?
Thanks,
Andrew
The text was updated successfully, but these errors were encountered: