Re: SXML - Library in Aubit4gl

Maximilian Seidel <[email protected]>
Newsgroups gmane.comp.lang.4gl.aubit.general
Message-ID <[email protected]>
I fixed this by myself. In the 4gl-Wrapper of sxml was a bug.

Regards Max

Am 21.05.2012 10:25, schrieb Maximilian Seidel:
> 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?
>
>

------------------------------------------------------------------------------
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/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.