views:

46

answers:

1

hello can you prvide an example how to parse xml file in adobe alchemy. im trying to work on expat, however i got no luck on passing of bytearrays to and from the c code.

do i need to pass the byte array of file to the alchemy, or is it enough to pass the filename.

thanks.

cbs

+1  A: 

If you want to parse xml within Alchemy, you'll need to use a C/C++ parsing library.

As for getting the xml into Alchemy:

  • The simplest way would be to simply pass the xml string into the function and Alchemy will marshal it for you.
  • Alternatively you could use supplyFile/fopen to open a "virtual file" that maps to a ByteArray.
  • You could also copy the ByteArray straight into Alchemy's RAM.

Here is a comparison of methods to move ByteArrays into Alchemy.

paleozogt