Seth Ladd wrote:
> 
> > That isn't possible now, because there is no concept of a document
> > object that contains more than one "root" element, which is essentially
> 
> Would a XML document have more than one "root" element?

No, XML cannot have but one root element.  However, an ECS Document (or
HTML object) has one "root" element that everything else belongs within
(in HTML, this is <html></html>).  There is no existing construct in ECS
to have multiple "top-level" elements.  But in XML, the prolog consists
of 1..N PIs, DOCTYPE declarations, XML Instructions, etc., _plus_ the
XML root element of the document.  From the _ECS_ point of view, this is
multiple "root" elements.  That's why I put it in quotes, but I still
managed to sound confusing ;-)  In any case, there is a problem mapping
the containing element within, for example, and ECS Document or Html to
an XML document, because there is no containing element within XML.

Basically, I have an XML element root, which contains the content of the
XML (but I don't call it root, FYI, because as soon as it is included by
reference in another XML document it isn't root anymore, and that gets
confusing), plus a Vector that is elements that make up the prolog.  I'm
going to put up the code in an early stage so you can see what I'm
talking about.  Sorry about the XML root != ECS "root" confusion.  Does
that make sense, though, now?

> 
> > What I don't want to do or believe is right is to try to write a
> > lightweight DOM - that is not what ECS is for.  I also don't think you
> > should be doing XML manipulation using ECS.  You don't do HTML parsing
> 
> Ok, I see where you are going with this.  Sounds great!

Cool.

Thanks,
Brett

> 
> Seth
> 
> --
> ------------------------------------------------------------
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> Archives and Other:  <http://java.apache.org/main/mail.html>
> Problems?:           [EMAIL PROTECTED]


--
------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to