Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

txml.simplify fails on a valid XML #52

Open
adams-family opened this issue Apr 3, 2024 · 0 comments
Open

txml.simplify fails on a valid XML #52

adams-family opened this issue Apr 3, 2024 · 0 comments

Comments

@adams-family
Copy link

First of all, love the speed of this parser! Very good.

Unfortunately, parse returns a complex object, which is incompatible with xml2js, so I wanted to use simplify, but it fails on valid XML files, like the one attached.

Any chance to fix this?

txml.simplify(`
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<getschedulesforgenchannellist>
    <schedules channelid="369">
        <account>0</account>
        <schedule>
            <category>Vígjáték</category>
            <starttime>2024-04-01T23:10:00.000Z</starttime>
            <starttimelong>1712013000000</starttimelong>
            <title>A szentfazék</title>
            <duration>115</duration>
            <agelimit>12</agelimit>
            <programid>1640249</programid>
            <setrec>NA</setrec>
            <iptvchannelid>369</iptvchannelid>
            <sanomachannelid>252</sanomachannelid>
        </schedule>
        <schedule>
            <category>Sorozatok</category>
            <starttime>2024-04-02T01:05:00.000Z</starttime>
            <starttimelong>1712019900000</starttimelong>
            <title>CSI: A helyszínelők</title>
            <duration>45</duration>
            <agelimit>16</agelimit>
            <programid>3153729</programid>
            <episodeid>9. évad 17. epizód, Nincs kiút</episodeid>
            <setrec>NA</setrec>
            <iptvchannelid>369</iptvchannelid>
            <sanomachannelid>252</sanomachannelid>
        </schedule>
        <schedule>
            <category>Valóságshow</category>
            <starttime>2024-04-02T01:50:00.000Z</starttime>
            <starttimelong>1712022600000</starttimelong>
            <title>Az álommeló</title>
            <duration>60</duration>
            <agelimit>12</agelimit>
            <programid>3150177</programid>
            <episodeid>2. évad 6. epizód</episodeid>
            <setrec>NA</setrec>
            <iptvchannelid>369</iptvchannelid>
            <sanomachannelid>252</sanomachannelid>
        </schedule>
    </schedules>
</getschedulesforgenchannellist>`)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant