Re: XML generator
Jann Röder <[email protected]> Fri, 28 Aug 2009 17:00:32 +0200
| Newsgroups | gmane.comp.lang.eiffel.gobo.devel |
|---|---|
| Message-ID | <[email protected]> |
Colin Paul Adams schrieb: >>>>>> "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. Ok got it. I just put everything in the same namespace, since the namespace argument must not be Void. Now I put everything except the root node in the default namespace and the prefixes disappeared. It would be nice if you could pass Void as the namespace argument if you want to put the element into the default namespace. Jann ------------------------------------------------------------------------------ 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 _______________________________________________ gobo-eiffel-develop mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/gobo-eiffel-develop