From: Alex B. <en...@tu...> - 2001-08-22 18:31:13
|
> > Just an off-the-wall question: > > What about attributes? > <element1 this="that" foo="bar">value</element1> > > Will they be supported in xml2php? Not at the moment. That's a difficult one: Say you have a structure like: <root> <elements> <element this="chang" foo="bar">klang</element1> <element this="that" foo="bar">value</element1> </elements> </root> So, what does the php look like? $root = array( array( 'attributes' => array( 'this' => 'chang', 'foo' => 'bar' ), 'value' => 'klang' ), array( 'attributes' => array( 'this' => 'that', 'foo' => 'bar' ), 'value' => 'value' ) ); ? Or $root = array( array( 'this' => 'chang', 'foo' => 'bar', 'value' => 'klang' ), array( 'this' => 'that', 'foo' => 'bar', 'value' => 'value' ) ); etc.. at the moment, there isn't a need, we do: Page Definitions Language Definitions Configuration Datasources Operations Roles And none of those use complex xml syntax. To be honest I can't think of a reason they would.... can you? _a |