bucanero
Developer
I've finished implementing the owners.xml stuff, but now I've a kind of a developer's dilemma... 
For XML parsing I used the libxml2 library (included with the ps3toolchain), and linking to it adds ~500Kb to the final EBOOT.BIN ... it feels a bit too much overhead for just parsing a small xml text file.
So now I'm wondering if I should try using some smaller (and lesser known) xml library to reduce that overhead or not... if my project heavily relied on XML stuff, then I'd stick with libxml2, but in this case, the owners.xml is only a small optional feature that most Apollo users won't ever use at all.
The risk with using a small /unknown library is mostly related to memory leaks or unexpected results if the user provides a bad/broken/invalid XML file. The advantage would be a small binary foot-print (a few Kbytes)
I'm still wondering which way to go with it
btw, here's an example owners.xml , based on @Berion idea:
For XML parsing I used the libxml2 library (included with the ps3toolchain), and linking to it adds ~500Kb to the final EBOOT.BIN ... it feels a bit too much overhead for just parsing a small xml text file.
So now I'm wondering if I should try using some smaller (and lesser known) xml library to reduce that overhead or not... if my project heavily relied on XML stuff, then I'd stick with libxml2, but in this case, the owners.xml is only a small optional feature that most Apollo users won't ever use at all.
The risk with using a small /unknown library is mostly related to memory leaks or unexpected results if the user provides a bad/broken/invalid XML file. The advantage would be a small binary foot-print (a few Kbytes)
I'm still wondering which way to go with it
btw, here's an example owners.xml , based on @Berion idea:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<apollo version="1.2.0">
<owner name="Test User">
<console idps="0000AAAAAA111111 1111DDDDD8888888" psid="0000AAAAAA111111 1111DDDDD8888888"/>
<user id="00000001" account_id="ffffffffffffffff"/>
</owner>
<owner name="Some User">
<console idps="0000AAAAAA111111 1111DDDDD8888888" psid="FFFFFFFFFF111111 000000DDDD888888"/>
<user id="00000008" account_id="aaaaaaaaaaaaaaaa"/>
</owner>
<owner name="PS3 User">
<console idps="0000AAAAAA111111 1111DDDDD8888888" psid="FFFFFFFFFF111111 000000DDDD888888"/>
<user id="00000002" account_id="aaaaaaaaaaaaaaaa"/>
</owner>
</apollo>
Last edited: