Coder Social home page Coder Social logo

Comments (9)

quandyfactory avatar quandyfactory commented on August 18, 2024

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.

gdude2002 avatar gdude2002 commented on August 18, 2024

That'd be awesome of you, thanks. We're kind of stuck without this working, heh.

from dicttoxml.

quandyfactory avatar quandyfactory commented on August 18, 2024

I'll try to fix it this afternoon.

from dicttoxml.

gdude2002 avatar gdude2002 commented on August 18, 2024

<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.

gdude2002 avatar gdude2002 commented on August 18, 2024

Any luck on this, or is it simple enough that I can make a PR?

from dicttoxml.

quandyfactory avatar quandyfactory commented on August 18, 2024

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.

quandyfactory avatar quandyfactory commented on August 18, 2024

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.

gdude2002 avatar gdude2002 commented on August 18, 2024

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
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:

A test route The list of routes in a computer-readable format

Does this meet your needs?


Reply to this email directly or view it on GitHub
#24 (comment)
.

from dicttoxml.

quandyfactory avatar quandyfactory commented on August 18, 2024

Issue should be fixed in v. 1.5.6. Thanks for bringing this issue to my attention.

from dicttoxml.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.