Comments (9)
Good catch - thanks for bringing this to my attention. I'll have to update the code so it escapes slashes in key names.
from dicttoxml.
That'd be awesome of you, thanks. We're kind of stuck without this working, heh.
from dicttoxml.
I'll try to fix it this afternoon.
from dicttoxml.
<3
On Fri, Aug 15, 2014 at 7:41 PM, Ryan McGreal [email protected]
wrote:
I'll try to fix it this afternoon.
—
Reply to this email directly or view it on GitHub
#24 (comment)
.
from dicttoxml.
Any luck on this, or is it simple enough that I can make a PR?
from dicttoxml.
Sorry, I haven't had a chance to tackle this yet. I hope to have some time later today but will try to update you either way.
from dicttoxml.
So I've had a chance to look at this and we have the following issue: XML element names can not contain special characters, even if they are escaped. The best we could do is to call the key "key" and put the name of the route in a "name" attribute. If we implement this, your XML output would look like the following:
<?xml version="1.0" encoding="UTF-8" ?>
<root>
<routes type="dict">
<key name="/test/[test variable]" type="dict">
<GET type="str">A test route</GET>
</key>
<key name="/routes" type="dict">
<GET type="str">The list of routes in a computer-readable format</GET>
</key>
</routes>
</root>
Does this meet your needs?
from dicttoxml.
That's absolutely fine (and basically what I was expecting). Would be
awesome if we could do this. :3
On Mon, Aug 18, 2014 at 9:26 PM, Ryan McGreal [email protected]
wrote:
So I've had a chance to look at this and we have the following issue: XML
A test route The list of routes in a computer-readable format
element names can not contain special characters, even if they are escaped.
The best we could do is to call the key "key" and put the name of the route
in a "name" attribute. If we implement this, your XML output would look
like the following:Does this meet your needs?
—
Reply to this email directly or view it on GitHub
#24 (comment)
.
from dicttoxml.
Issue should be fixed in v. 1.5.6. Thanks for bringing this issue to my attention.
from dicttoxml.
Related Issues (20)
- Root and header not formed HOT 1
- dicttoxml vs dict2xml HOT 1
- Converter doesnt support datetime.date HOT 1
- Facing problems with newer versions of python
- to much logging info HOT 1
- Support for CustomCode-Types?
- Importing ABC directly from collections was deprecated and will be removed in Python 3.10. Use collections.abc HOT 8
- converting python dict to xml taking longer time and sometime hanged the system HOT 6
- 'True' is not a valid value for 'boolean' HOT 2
- Option to omit the xml declaration but keep the root or custom_root HOT 3
- How do I disable encoding type? HOT 2
- Transfer ownership HOT 8
- AttributeError: 'int' object has no attribute 'isdigit' HOT 2
- how to prevent xml escaping HOT 1
- AttributeError: module 'collections' has no attribute 'Iterable' HOT 13
- python 3.9.7: `pip install dicttoxml` is installing only `installed-filed.txt` HOT 5
- collections.Iterable is deprecated HOT 2
- python 3.8: Support dropped in 1.7.5 but not mentioned in release notes or docs HOT 1
- Update readme section on debugging HOT 1
- logging issue HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dicttoxml.