[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gambas-bugtracker] Bug #3013: XML Api does not work correctly
[Thread Prev] | [Thread Next]
- Subject: [Gambas-bugtracker] Bug #3013: XML Api does not work correctly
- From: <bugtracker@xxxxxxxxxxxxxx>
- Date: Sun, 30 Mar 2025 16:35:30 GMT
- To: Karl.Reinl@xxxxxxxxxx,bugtracker@xxxxxxxxxxxxxxxxxxxxxx
http://gambaswiki.org/bugtracker/edit?object=BUG.3013&from=L21haW4- Charlie REINL reported a new bug. Summary ------- XML Api does not work correctly Type : Bug Priority : Medium Gambas version : Master Product : XML components Description ----------- I have tested XmlDocument and XmlReader from gb.xml. Both functions have the problem of not recognizing incorrect XMLs with getbrokenXMLString That is the same as getGoodString, but I broke it by hand : <rule> instead of <rules> in leading tag you should normaly see an “XML processing error: Mismatching tag. Expected: </rule>.” message. XmlReader does not always recognize elements correctly. In getErrorString, an element with the attribute and its value is output as a combined string. See getGoodString what the output should look like (but the A-Value is in getErrorString invalid ) getErrorString Element:= summarystatusinvalid getGoodString Element:= summary ## summary found Attribute = status A-Value = valid I am posting a demo project. This evaluates XMLs and should read out the value of the element:= summary , the value of the attribute = status (Value = valid or invalid) System information ------------------ [System] Gambas=3.20.99 52e49432e (HEAD) OperatingSystem=Linux Distribution=Ubuntu 24.04.2 LTS (Noble Numbat) Kernel=6.8.0-56-generic Architecture=x86_64 Cores=4 Memory=5878M Language=de_DE.UTF-8 Platform=x11 Desktop=GNOME DesktopResolution=96 DesktopScale=8 WidgetTheme=yaru Font=Ubuntu,11 DarkTheme=False [Programs] dpkg=Debian »dpkg« Paketmanagement-Programm Version 1.22.6 (amd64). gcc=gcc (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 git=git version 2.43.0 msgmerge=msgmerge (GNU gettext-tools) 0.21 [Libraries] Cairo=libcairo.so.2.11800.0 Curl=libcurl.so.4.8.0 DBus=libdbus-1.so.3.32.4 GDK2=libgdk-x11-2.0.so.0.2400.33 GDK3=libgdk-3.so.0.2409.32 GStreamer=libgstreamer-1.0.so.0.2402.0 GTK+2=libgtk-x11-2.0.so.0.2400.33 GTK+3=libgtk-3.so.0.2409.32 OpenGL=libGL.so.1.7.0 Poppler=libpoppler.so.134.0.0 QT5=libQt5Core.so.5.15.13 QT6=libQt6Core.so.6.4.2 RSvg=librsvg-2.so.2.50.0 SDL=libSDL2-2.0.so.0.3000.0 SQLite3=libsqlite3.so.0.8.6 [Environment] CLUTTER_DISABLE_MIPMAPPED_TEXT=1 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus DEBUGINFOD_URLS=https://debuginfod.ubuntu.com DESKTOP_SESSION=gnome-xorg DISPLAY=:0 GB_GUI=gb.gtk3 GDMSESSION=gnome-xorg GIO_LAUNCHED_DESKTOP_FILE=<home>/.local/share/applications/gambas3.desktop GIO_LAUNCHED_DESKTOP_FILE_PID=8723 GJS_DEBUG_OUTPUT=stderr GJS_DEBUG_TOPICS=JS ERROR;JS LOG GNOME_DESKTOP_SESSION_ID=this-is-deprecated GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1 GSM_SKIP_SSH_AGENT_WORKAROUND=true GTK_MODULES=gail:atk-bridge HOME=<home> INVOCATION_ID=6eab7fd5c8eb4873b69af6aa33fc711b JOURNAL_STREAM=8:34363 LANG=de_DE.UTF-8 LANGUAGE=de_DE.UTF-8 LOGNAME=<user> MANAGERPID=2500 MEMORY_PRESSURE_WATCH=/sys/fs/cgroup/user.slice/user-1000.slice/user@1000.service/session.slice/org.gnome.Shell@x11.service/memory.pressure MEMORY_PRESSURE_WRITE=c29tZSAyMDAwMDAgMjAwMDAwMAA= PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin PWD=<home> QTWEBENGINE_DICTIONARIES_PATH=/usr/share/hunspell-bdic/ QT_ACCESSIBILITY=1 QT_IM_MODULE=ibus QT_LOGGING_RULES=*.debug=false SESSION_MANAGER=local/<hostname>:@/tmp/.ICE-unix/2803,unix/<hostname>:/tmp/.ICE-unix/2803 SHELL=/bin/bash SHLVL=0 SSH_AUTH_SOCK=/run/user/1000/keyring/ssh SYSTEMD_EXEC_PID=2836 TZ=:/etc/localtime USER=<user> USERNAME=<user> WINDOWPATH=2 XAUTHORITY=/run/user/1000/gdm/Xauthority XDG_ACTIVATION_TOKEN=gnome-shell/Gambas 3/2836-7-<hostname>_TIME13219178 XDG_CONFIG_DIRS=/etc/xdg/xdg-gnome-xorg:/etc/xdg XDG_CURRENT_DESKTOP=GNOME XDG_DATA_DIRS=/usr/share/gnome-xorg:/usr/share/gnome:<home>/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop XDG_MENU_PREFIX=gnome- XDG_RUNTIME_DIR=/run/user/1000 XDG_SESSION_CLASS=user XDG_SESSION_DESKTOP=gnome-xorg XDG_SESSION_TYPE=x11 XMODIFIERS=@im=ibus ----[ Gambas bugtracker-list is hosted by https://www.hostsharing.net ]----
[Gambas-bugtracker] Bug #3013: XML Api does not work correctly | <bugtracker@xxxxxxxxxxxxxx> |