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

invalid xml #246

Open
fabianfrz opened this issue Jun 9, 2024 · 0 comments
Open

invalid xml #246

fabianfrz opened this issue Jun 9, 2024 · 0 comments

Comments

@fabianfrz
Copy link

the xml file /var/log/xlxd.xml is invalid.

The XML needs a single root element, currently it has Version and three XLX905 elements

root@xlx905:/var/log# cat xlxd.xml
<?xml version="1.0" encoding="UTF-8"?>
<Version>2.5.3</Version>
<XLX905  linked peers>
<PEER>
        <Callsign>XLX806  </Callsign>
        <IP>188.63.22.20</IP>
        <LinkedModule>AV</LinkedModule>
        <Protocol>XLX</Protocol>
        <ConnectTime>Wednesday Wed Jun  5 21:54:20 2024</ConnectTime>
        <LastHeardTime>Wednesday Wed Jun  5 21:54:20 2024</LastHeardTime>
</PEER>
<PEER>
        <Callsign>XLX508  </Callsign>
        <IP>104.156.136.8</IP>
        <LinkedModule>DY</LinkedModule>
        <Protocol>XLX</Protocol>
        <ConnectTime>Wednesday Wed Jun  5 21:54:20 2024</ConnectTime>
        <LastHeardTime>Wednesday Wed Jun  5 21:54:20 2024</LastHeardTime>
</PEER>
<PEER>
        <Callsign>BM2322  </Callsign>
        <IP>62.171.130.35</IP>
        <LinkedModule>AEFRVXY</LinkedModule>
        <Protocol>XLX</Protocol>
        <ConnectTime>Wednesday Wed Jun  5 21:54:25 2024</ConnectTime>
        <LastHeardTime>Wednesday Wed Jun  5 21:54:25 2024</LastHeardTime>
</PEER>
<PEER>
        <Callsign>XLX801  </Callsign>
        <IP>80.108.239.88</IP>
        <LinkedModule>VY</LinkedModule>
        <Protocol>XLX</Protocol>
        <ConnectTime>Wednesday Wed Jun  5 21:54:25 2024</ConnectTime>
        <LastHeardTime>Wednesday Wed Jun  5 21:54:25 2024</LastHeardTime>
</PEER>
</XLX905  linked peers>
<XLX905  linked nodes>
<NODE>
        <Callsign>OE9XVI  B</Callsign>
        <IP>44.143.235.87</IP>
        <LinkedModule>V</LinkedModule>
        <Protocol>DCS</Protocol>
        <ConnectTime>Tuesday Tue Jun  4 21:53:18 2024</ConnectTime>
        <LastHeardTime>Saturday Sat Jun  8 18:02:40 2024</LastHeardTime>
</NODE>
<NODE>
        <Callsign>redacted C</Callsign>
        <IP>redacted</IP>
        <LinkedModule>V</LinkedModule>
        <Protocol>DCS</Protocol>
        <ConnectTime>Thursday Thu Jun  6 12:21:48 2024</ConnectTime>
        <LastHeardTime>Thursday Thu Jun  6 12:21:48 2024</LastHeardTime>
</NODE>
<NODE>
        <Callsign>redacted B</Callsign>
        <IP>redacted</IP>
        <LinkedModule>A</LinkedModule>
        <Protocol>DCS</Protocol>
        <ConnectTime>Thursday Thu Jun  6 12:34:26 2024</ConnectTime>
        <LastHeardTime>Thursday Thu Jun  6 12:34:26 2024</LastHeardTime>
</NODE>
</XLX905  linked nodes>
<XLX905  heard users>
<STATION>
        <Callsign>redacted   / DMR </Callsign>
        <Via node>XLX905  G</Via node>
        <On module>V</On module>
        <Via peer>BM2322  </Via peer>
        <LastHeardTime>Sunday Sun Jun  9 12:26:14 2024</LastHeardTime>
</STATION>
<STATION>
        <Callsign>redacted / 9700</Callsign>
        <Via node>OE9XVI  B</Via node>
        <On module>V</On module>
        <Via peer>XLX905  </Via peer>
        <LastHeardTime>Saturday Sat Jun  8 18:02:50 2024</LastHeardTime>
</STATION>
</XLX905  heard users>

I would recommend to change the structure at least like this:

<?xml version="1.0" encoding="UTF-8"?>
<reflector name="XLX905" version="2.5.3">
<peers>
...
</peers>
<nodes>
...
</nodes>
<users>
...
</users>
</reflector>

When this is changed, the PHP dashboard pages that reads that, needs to adjust that as well.

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