From: Jason H. <jc...@ey...> - 2001-08-22 18:22:47
|
Just an off-the-wall question: What about attributes? <element1 this="that" foo="bar">value</element1> Will they be supported in xml2php? jason > >The idea behind xml2php is much more simple than metal, it's a utility > >designed to take xml "array syntax" and create php arrays from the xml. > > > >Briefly: > > > > <root> > > <array> > > <element1>value</element1> > > <element2>value</element2> > > </array> > > </root> > > > > $root = array( > > 'element1' => 'value', > > 'element2' => 'value' > > ); > > > >Useful for configuration files, etc that shouldn't be xml at runtime, but > >nice to edit xml instead of a php array. |