S
Skeets
disclaimer - i'm an xml newb.
my new project requires me to parse through an xml document and
populate an html form with the values. this appears simple if the
number of elements were to stay constant, however, they don't. i might
have one <element> or three <element>.
i'm using php and i'm planning on using PHP's DOM XML to parse through
the document a (using foreach) to nab each value and store it into a
variable and use those variables to display input into my forms. of
course, i'll need to use foreach in order to create my form elements,
too.
my variables would be created as follows:
$element1
$elemtent2
where the numeral is created as i loop through the values.
does this sound reasonable? is their some kind of DOM XML magic that
is designed to handle this case with ease?
any help / guidance would be greatly appreciated.
my new project requires me to parse through an xml document and
populate an html form with the values. this appears simple if the
number of elements were to stay constant, however, they don't. i might
have one <element> or three <element>.
i'm using php and i'm planning on using PHP's DOM XML to parse through
the document a (using foreach) to nab each value and store it into a
variable and use those variables to display input into my forms. of
course, i'll need to use foreach in order to create my form elements,
too.
my variables would be created as follows:
$element1
$elemtent2
where the numeral is created as i loop through the values.
does this sound reasonable? is their some kind of DOM XML magic that
is designed to handle this case with ease?
any help / guidance would be greatly appreciated.