-
Notifications
You must be signed in to change notification settings - Fork 6
to_xml() always adds root <data> ... </data> #5
Comments
Good point, I really like the idea of making the root name configurable as in your Allowing for no root element at all would be less clean to implement, mainly because that isn't valid XML. Could you let us know the use case for this? If it's important to have we can certainly give it some thought. Thanks for the idea! |
My use case is pretty simple:
I convert this document to JSON using node-xmljson.
If root element could be configurable, I could convert entries inside of entry JSON object to XML with specifying root element as "entry". But this workaround is less than optimal. |
Got it, |
Hello, Thanks |
Hello, Interested in this too.Please let us know if you plan to add them. Thanks |
Hello, Thanks. |
For versatility, it would be great to have an option of not adding
<data></data>
by default.Maybe it should be an option, where if "" is specified, no
<data></data>
is created, if "root" is specified,<root></root>
will be created.The text was updated successfully, but these errors were encountered: