[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Using XML to handle all configuration files

> > >...[PHil B wrote]
> > > And consider that you dont have to do stupid things like match ((())))))
> > > and you can simply use # as God intended.
> > > I prefer the current style to either of the two proposed alternatives.
> >
> > ...
> > 
> >  Of course, you can solve all these answers, generally doing some
> > reasearch/coding. But each answer will only be useful for just one program,
> > and just a couple of versions.
> XML doesnt magically write your scripts for you. All it does is just
> enforce a particular kind of grammar. You STILL have to tailor your 
> parsing scripts heavily between different programs , and between different
> versions of programs.

 Just say you don't know enough about XML, nobody will harm you.. =b

 XML is structured data. You don't need any special tricks to parse it, with
an xpath enabled program you could extract any piece information very
easily, kind of a mini SQL language for xml files:



will select all nodes like this one:  <interfaces>....<iface family="inet6">

Reply to: