[EMAIL PROTECTED] on  wrote...
| > xml-tree.c was not very helpful.
| 
| Its a complete XML DOM.  If you're inputting XML you need to use it since I'll
| be converting all the XML parsing to it as time permits.  Here a snippet
| of code for delegates:
| 
|   XMLTreeInfo *preferences_tree;
|   XMLTreeInfo *delegates,*delegate,*command;
| 
|   blob=FileToString("delegates.xml",~0UL,exception);
|   preferences_tree=NewXMLTree(blob,exception);
|   delegates=GetXMLTreeChild(preferences_tree,"delegatemap");
|   delegate=GetXMLTreeChild(delegate,"delegate");
|   command=GetXMLTreeChild(delegate,"command");
|   

I noticed that delegates does not currently use the xml-tree.c module
so other than the above notes you gave I still have little to go on.

Also does the XML parser have to actually read the whole file into a
blob?   This is very memory wastful, especially as XML is designed to be
verbose and readilly parsible as a file stream rather than a in memory
string.

As a progress report I attach the initial "thresholds.xml" file I
designed last night, to hold the threshold maps to be parsed into the
structure for use by the new (incomplete) OrderedPosterizeDither()
function.

I do not feel it should be nessary for ALL the maps to be read in, but
only the elements that are referenced from the command line or API.
  Anthony Thyssen ( System Programmer )    <[EMAIL PROTECTED]>
 -----------------------------------------------------------------------------
   To fly a kite is to hold God's hand.  -- Dan Hawkins <[EMAIL PROTECTED]>
 -----------------------------------------------------------------------------
     Anthony's Home is his Castle     http://www.cit.gu.edu.au/~anthony/
_______________________________________________
Magick-developers mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-developers

Reply via email to