On Thu, Feb 18, 2010 at 2:40 PM, Scott Lawrence <[email protected]> wrote: > On Thu, 2010-02-18 at 14:22 -0500, M. Ranganathan wrote: >> >> <gateways> >> <gateway> >> <id>a</id> >> </gateway> >> <gateway> >> <id>b</id> >> </gateway> >> </gateways> > > This would be better XML design to make this: > > <gateways> > <gateway id='a'> > > </gateway> > <gateway id='b'> > > </gateway> > </gateways> > > if you use an attribute, you can: > > * include the uniqueness constraint on id values in the schema > definition > * use xpath expressions to address a gateway definition > >
I am not sure if the sipxconfig XML generation handles attributes but if it did that would be a good idea. Ranga > -- M. Ranganathan _______________________________________________ sipx-dev mailing list [email protected] List Archive: http://list.sipfoundry.org/archive/sipx-dev Unsubscribe: http://list.sipfoundry.org/mailman/listinfo/sipx-dev sipXecs IP PBX -- http://www.sipfoundry.org/
