Re: XML generator

Colin Paul Adams <[email protected]> Fri, 28 Aug 2009 15:24:47 +0100
Newsgroups gmane.comp.lang.eiffel.gobo.devel
Message-ID <[email protected]>
>>>>> "Jann" == Jann Röder <[email protected]> writes:

    Jann> For example I'd like it not to add the prefix to
    Jann> every tag and attribute.

    Jann> <tag id="2"> instead of <prefix:tag prefix:id="2">

The two are not equivalent, as attributes are never in the default
namespace. Instead they are in the per-element namespace. I.e. in the
first case, id is in a different namespace from tag (assuming you have
a default namespace declaration in scope). In the second case, they
are both in the same namespace.
-- 
Colin Adams
Preston Lancashire

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july