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

Re: genx - genxEndTag


gen x vocabulary

One more thing I just thought about - reading your online
essay where one item to check for was "detecting misnested tags".

Now genxEndTag does not have name/prefix/uri arguments, which
it does not need to, as you just write out the next name
popped from your internal stack. 

I use the same approach in my own writer implementation,
however, I found it hard to debug, as you only find out
at the end when there are too few (or too many) genxEndTag calls.
(in my case "too few" doesn't happen, as - for convenience - the 
implementation adds missing end tags when the writer is closed).

It also makes it harder to write valid XML, since a misplaced
genxEndTag will not normally lead to malformed XML which
could be detected, but it will change the structure in an
un-intentioned way.

Just so that the programmers intention is more clearly
expressed it might worth thinking about adding the
name/prefix/uri arguments to the genxEndTag call.

Karl

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.