Portal SAMP
[Include] a_xml | manipulador de arquivos .xml - Versão de Impressão

+- Portal SAMP (https://portalsamp.com)
+-- Fórum: SA-MP (https://portalsamp.com/forumdisplay.php?fid=5)
+--- Fórum: Lançamentos (https://portalsamp.com/forumdisplay.php?fid=26)
+---- Fórum: Includes (https://portalsamp.com/forumdisplay.php?fid=27)
+---- Tópico: [Include] a_xml | manipulador de arquivos .xml (/showthread.php?tid=4465)



a_xml | manipulador de arquivos .xml - zHypezinXzL - 25/01/2024

REPOSITORY: https://github.com/zHypezinXzL/include-a_xml-samp/

WIKI: https://github.com/zHypezinXzL/include-a_xml-samp/wiki

DOWLOAD: https://github.com/zHypezinXzL/include-a_xml-samp/releases/tag/a_xml-v1.4.15.1-support-omp

não me aprofundarei nas explicações nesse tópico pois já tive o trabalho de explicar tudo no github, mas está é uma include que manipula arquivos .xml, esta include não foi criada com o intuito de ser um método de "salvamento", ja que seu ping é muito instável, a include foi criada como uma "brincadeira", mas é póssivel armazenar valores, pegar valores, criar "nós", ..., normalmente, caso alguem esteja disposto a otimizar fique a vontade!  Big Grin

NOTE: está include foi criada só com funções nativas do samp.


Código PHP:
native xml_create_document (document [], declaration_name [] = ""declaration [] = "");
native xml_document_exist (document []);
native xml_delete_document (document []);

native xml_rename_document (document [], new_name []);
native xml_copy_document (document [], copy []);

native xml_create_node (document [], path [], node []); 
native xml_node_exist (document [], path [], node [], booljust_path false);

native xml_node_set_value_string (document [], path [], node [], value []);
native xml_node_set_value_integer (document [], path [], node [], value);
native xml_node_set_value_floating (document [], path [], node [], Floatvalue);
native xml_node_set_value_boolean (document [], path [], node [], boolvalue);

native xml_node_get_value_string (document [], path [], node []);
native xml_node_get_value_integer (document [], path [], node []);
native xml_node_get_value_floating (document [], path [], node []);
native xml_node_get_value_boolean (document [], path [], node []);