SXML - Library in Aubit4gl
Maximilian Seidel <[email protected]>
| Newsgroups | gmane.comp.lang.4gl.aubit.general |
|---|---|
| Message-ID | <[email protected]> |
Hi,
i am currently testing the sxml-library in the
$AUBITDIR/lib/extra_libs/sxml. I get everytime a bad-syntax error with
any xml-file when i use readfile().
Have someone experience with the library on aubit4gl? Or is there a
alternative to use XML native on Aubit4gl?
version.xml:
<VENTAS>
<XML_VERSION>1.0</XML_VERSION>
<A4GL_VERSION>1.2_29</A4GL_VERSION>
<A4GL_RELEASE_DATE>16.05.2012</A4GL_RELEASE_DATE>
<PACKAGE_DATE>18.05.2012</PACKAGE_DATE>
<PACKAGE_CHECKSUM>aab3123fa3bc9876c63211</PACKAGE_CHECKSUM>
<DB_AENDERUNG>6026</DB_AENDERUNG>
</VENTAS>
main.4gl:
MAIN
DEFINE l_o_xml INTEGER
DEFINE l_filename CHAR(200)
LET l_filename = "version.xml"
LET l_o_xml = A4GL_sxml::sxml_readfile(l_filename CLIPPED)
IF l_o_xml = 0
THEN DISPLAY "ERROR ON READFILE"
DISPLAY A4GL_sxml::sxml_errstr(A4GL_sxml::sxml_get_errno())
EXIT PROGRAM 1
END IF
DISPLAY A4GL_sxml::sxml_get_xml_as_text("Head", l_o_xml)
END MAIN
Any ideas?
--
Mit freundlichen Grüßen
Maximilian Seidel
VENTAS AG
Mexikoring 29
22297 Hamburg
Germany
Fon +49-40-32 33 34-0
Fax +49-40-32 33 34-38
[email protected]
www.ventas.de
VENTAS AG
Firmensitz: Mexikoring 29, 22297 Hamburg, Deutschland
Registergericht: Hamburg, HRB 80297
Ust.IdNr.: DE118686712
Vorstandsvorsitzender: Dipl.Ing. Alain Siverly
Aufsichtsratsvorsitzender: Dipl.Ing. Lothar Witt
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/