Forum Stats

  • 3,770,702 Users
  • 2,253,155 Discussions
  • 7,875,552 Comments

Discussions

IFS and big-deep-recursive XML docs

3004
3004 Member Posts: 204,171
OK, I got the SDK just released and took
a quick scan. I see that we might need to
define our own document, with attributes,
and you can even define embedded attributes.

But, this seems to be an explosion of the
DTD structure, and I don't see if we can
really do this for deep-structured documents
that aren't basically db stuff.

For example, almost any element can contain
math, which can contain lots of
stuff, including fractions, which can contain
fractions again, etc. So the abstract
structure is not strictly a tree, but
contains cycles. This can be quite deep at
times.

Is it intended that iFS will be used for such
stuff, really? And has it ever been used for
such a purpose? All the examples are very
simple so I'm wondering whether it is worth
pursuing. Thanks for any info or pointers.


Chris Hamlin

Comments

  • 3004
    3004 Member Posts: 204,171
    Echoing chanlin...
    I am also very interested in the depth of structures that IFS can handle, esp. with regard to its out-of-box functionality. Are there documents containing such examples, or IFS specs that define for developers its parameters? I could not locate this information in the current IFS documentation.
  • 3004
    3004 Member Posts: 204,171
    The "simple XML parser" that comes with iFS supports infinite recursion. The iFS object model allows objects to reference other objects.

    The tags that are handled by the simple XML parser are determined by attributes on class objects that exist in the iFS schema. You can subclass the default Document object, for example, to add your own attributes. These new attributes will be handled by the iFS XML parser.

    If your XML does not conform to the iFS simple XML parser standard structure, then you will need to write your own customized XML parser. The simple XML parser is meant to create standard iFS objects from XML files.
This discussion has been closed.