Dynamic XML

Hi,

Is it possible when creating a PHP generated XML document to put a variable here:

$xmlDocument->createElement(‘HERE’));

When i put a variables it throws out an error. Only plain text can be used.

any suggestions?

Thanks

What kind of variable? String, array, etc?

an array holding a string

Well, the “createElement” function takes a string, so giving it an array won’t work. Either give it the one string that’s in your array, or (if there’s more than one string) combine the strings into a single string.

[silliness]string string string[/silliness]