[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Wikipedia on XML

  • From: Robert Koberg <rob@koberg.com>
  • To: Robert Koberg <rob.koberg@gmail.com>
  • Date: Fri, 7 Aug 2009 09:09:34 -0700

Re:  Wikipedia on XML
>
> "Tag
> A markup construct that begins with < and ends with >. Tags come in  
> three flavors: start tags, for example <section>, end tags, for  
> example </section>, and empty-element tags, for example <line-break/>.
>
> Element
> A logical component of a document which either begins with a start  
> tag and ends with an end tag, or consists only of an empty-element  
> tag. The characters between the start and end tags, if any, are the  
> element's content, and may contain markup, including other elements,  
> which are called child elements. An example of an element is  
> <Greeting>Hello, world.</Greeting>. Another is <line-break/>."
>
> Maybe a Tag should be considered more like an event, with the '/>'  
> being an end event for for an empty element.
>
> In the above excerpt from the WikiPedia entry, what is the  
> difference between an empty element *tag* and an empty *element*?


Further on this:

How do you get/set a start or end tag in an XML context? Do you?

In a DOM (W3, XOM, dom4j, etc) or transformation language (like XSL or  
Xquery), there is no concept of a start or end tag. The only place a  
start or end tag comes into play is in a SAX style. There they are  
events that can be consumed or emitted. What benefit does defining  
start and end tags provide? I would say it confuses most people,  
because most people come from the perspective of working from a DOM or  
a transformation language when dealing with XML.

best,
-Rob


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.