Joris de Gruyter
10/13/2005 12:24:00 PM
However, the chance that html files (unless you make them yourself and can
assure that they are) are actually well-formed is highly unlikely, making it
impossible to read with any XML parser...
J.
"Daniel Biesiada" <dupa@dot.com> wrote in message
news:ehdKnJzzFHA.1624@TK2MSFTNGP10.phx.gbl...
> Michael Hansen wrote:
>> Hi, First of all I''ll say that Axapta programming is very new to me. So I
>> hope that I can have a little help in here. I need to make a little
>> Axapta job that can look through some HTML code and then delete all
>> picture-files in a given directory that is not represented in the html
>> code I''m sure that there is a simple way of doing it, but I hope you can
>> give me a hint or even better, some code.
>
> If you''re looking for some HTML parsing API within axapta you might start
> looking from XML related classes, as far as I noticed there is full DOM
> support for XML. You could try to treat your HTML file as XML document and
> parse for specific tags to figure out if there is your image file or not
> according to your processing.
>
> To give you some start point see AOT->Classes->XmlDocument
>
> best regards,
> Daniel Biesiada