flat assembler
Message board for the users of flat assembler.

Index > Main > FASM and XML?

Author
Thread Post new topic Reply to topic
s3



Joined: 18 Jul 2006
Posts: 4
s3 18 Jul 2006, 17:40
Hi Fasmers,

I´m not find any information about XML processing with FASM, it´s possible?
Post 18 Jul 2006, 17:40
View user's profile Send private message Reply with quote
0x4e71



Joined: 25 Feb 2004
Posts: 50
0x4e71 18 Jul 2006, 19:13
Well, it depends a bit on what you are looking for.

Obviously XML is just structured text so nothing prevents you from reading XML files and writing a parser in Fasm.

If you are looking for an off-the-shelf parser: you could link with libxml2, or use Micro$oft's XML parser (though maybe you have to go via ActiveX there, may not be a pleasant expereince to do that in Fasm)

0x4e71
Post 18 Jul 2006, 19:13
View user's profile Send private message Reply with quote
Reverend



Joined: 24 Aug 2004
Posts: 408
Location: Poland
Reverend 19 Jul 2006, 19:02
Of course it's possible. What is XML? It's just a text which is formatted in some special way, which we all know. Just write a code to understand that special formatting Smile
Post 19 Jul 2006, 19:02
View user's profile Send private message Visit poster's website Reply with quote
s3



Joined: 18 Jul 2006
Posts: 4
s3 21 Jul 2006, 19:33
thanx for your idea 0x4e71!
it´s very interessant, using windows recurses ( object DOM MSXML2 for example)!

... and Reverend, i´m not coding a complex parser (XPath similar), but it´s possible too, thanx for your idea.
Post 21 Jul 2006, 19:33
View user's profile Send private message Reply with quote
Aquila



Joined: 21 Jun 2003
Posts: 16
Location: Russia, Moscow
Aquila 22 Jul 2006, 22:05
Check expat - it is a nice XML-parsing library.
Post 22 Jul 2006, 22:05
View user's profile Send private message Visit poster's website Reply with quote
hopcode



Joined: 04 Mar 2008
Posts: 563
Location: Germany
hopcode 21 Apr 2008, 08:14
Hallo All,
...
Update with structs and EQU 24.April.2008
...
This is my import library [21 Apr 2008] of libxml2 for FASM win32, from the file libxml2.lib version libxml2 2.6.30 downloadable from http://xmlsoft.org

with the LIB2DEF 2.1, utility of Vortex. Thanx,Thanx,Thanx to Vortex

I have also imported structs and equates [4 SAX STRUCTURES ARE NOT YET INCLUDED] with [H2INCX], another wonderful freeware utility at http://www.japheth.de.
Thanx,Thanx,Thanx to Japheth

I will include it as soon as i can, with the xsl import library too.

Requirements to properly function:
in path, the following files:

iconv.dll ---- (from iconv-1.9.2.win32.zip)
z1lib.dll ---- (from zlib-1.2.3.win32.zip)
libxml2.dll -- (from libxml2-2.6.30+.win32.zip)

All the files are freely downloadable from
http://xmlsoft.org

...
Code:
format PE CONSOLE 4.0
entry start
    


Attached Example of using LIBXML2
Hope it helps!
hopcode[mrk]

_________________
⠓⠕⠏⠉⠕⠙⠑


Last edited by hopcode on 06 Apr 2011, 15:23; edited 3 times in total
Post 21 Apr 2008, 08:14
View user's profile Send private message Visit poster's website Reply with quote
AlexP



Joined: 14 Nov 2007
Posts: 561
Location: Out the window. Yes, that one.
AlexP 21 Apr 2008, 12:54
There is a pretty nice FASM XML parser which I've read through the source lately, it's called 'ASMXML' and the source is fully included in the download. They use an odd text viewer, which apparently 'folds' the source so it's easier to look at, but if you look at it in FASM it's horrible looking, with [c] and [of] everywhere! I hope it's what you're looking for.
Post 21 Apr 2008, 12:54
View user's profile Send private message Visit poster's website Reply with quote
wht36



Joined: 18 Sep 2005
Posts: 106
wht36 04 Dec 2010, 17:10
Here is another one, also written in FASM.

Raw Xml Library
http://coderesearchlabs.com/rawxmllibrary
Post 04 Dec 2010, 17:10
View user's profile Send private message Reply with quote
masonswanson



Joined: 17 Aug 2010
Posts: 51
masonswanson 02 Jan 2011, 17:21
wht36 wrote:
Here is another one, also written in FASM.

Raw Xml Library
http://coderesearchlabs.com/rawxmllibrary

unfortunately there isnt very much documentation, you have to go through the source
Post 02 Jan 2011, 17:21
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.