GithubHelp home page GithubHelp logo

XML Output is broken about duplo HOT 3 CLOSED

dlidstrom avatar dlidstrom commented on August 30, 2024
XML Output is broken

from duplo.

Comments (3)

dlidstrom avatar dlidstrom commented on August 30, 2024

I am not sure the xml can be considered broken. Do you have an actual issue where the xml can’t be used as-is? Can you provide a screenshot perhaps?
I believe the xml is well-formed, see w3.org specification. Also, I don’t think I can specify utf-8, as there is no specific handling of text encoding. I could perhaps add the xml version though, if this helps resolve your issue.
Thanks for using Duplo and providing feedback!

from duplo.

ArsMasiuk avatar ArsMasiuk commented on August 30, 2024

Well, I mean the following issue: the xml output currently looks like:

  ...
   <set LineCount="21">
        <block SourceFile="..." StartLineNumber="267"/>
        <block SourceFile="..." StartLineNumber="222"/>
        <lines xml:space="preserve">
            <line Text="..."/>
               ...
            <line Text="..."/>
        </lines>
    </set>
   ...
</duplo>

So there is closing tag </duplo> at the very end, but there is no corresponding opening tag <duplo> at the beginning of the document. Therefore this xml cannot be read by some xml parsers.
The tag <?xml ... ?> would be also nice-to-have as it could be important for some of them.

from duplo.

dlidstrom avatar dlidstrom commented on August 30, 2024

You are right! As you already have the fix, can you provide a PR? Without the encoding part:

<?xml version="1.0"?>
<duplo>

from duplo.

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.