Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > recursive xml and xforms?

Thread Tools

recursive xml and xforms?

Posts: n/a

XML clearly allows recursive xml (ie- elements to appear in
themselves- examples are in mathml- functions of functions of
functions, or xhtml, tables in tables in tables). My question is
whether xforms can be used to edit such dialects of xml.

To be concrete, consider this toy example- Two elements exist,
<evalope> and <letter>. <envalope> can contain <letter>s and other
<envalope>s as follows.

<envalope name="office mail">
<letter name="tax document" />
<letter name="love letter" />
<envalope name="stuff from fred">
<letter name="xml introduction" />

In theory envalopes could be stored in envalopes that are stored in
envalopes, etc. Now, like with most xml documents I should be able to
create an xforms document that allows me to create and edit this
document. Because of the recursion I don't know if this is possible.
Ideally the user should be presented with an empty "envalope" and
controls that allow them to add and name letters and envalopes. Next
to any envalope that is created a control should exist that allows the
user to add envalopes and letters to it. I know the way to do this
for finite depth, but not in general.

Thanks for the information in advance.

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Recursive functions Vs Non-recursive functions - performance aspect vamsi C Programming 21 03-09-2009 10:53 PM
Two recursive calls inside of a recursive function n00m C++ 12 03-13-2008 03:18 PM
Different results parsing a XML file with XML::Simple (XML::Sax vs. XML::Parser) Erik Wasser Perl Misc 5 03-05-2006 10:09 PM
recursive relationships in xml XML 2 10-26-2005 07:00 AM
Recursive XML Elements XML 2 03-14-2005 03:27 PM