Skip to main content
Inspiring
September 29, 2007
Answered

Dynamic XML feed

  • September 29, 2007
  • 2 replies
  • 461 views
I wrote a php file that will generate a dynamically XML string from a record set. I am using the XMLWriter to do this. The output is similar to Export XML (not dynamic) from record set extension . My XML output looks good and valid markup.

When creating a new XSL file, If I select the locate XML source option, the bindings show Invalid document. If I use the remote file option everything works fine.

Another interesting point is, If I hand code the transformation process, instead of using MM_XSLTransform class, everything is good.

I would love to be able to use DW CS3 for this, so I can use the design view. Would writing a proxy file be the right way to go with this? Looking at server time to write a file.

David Pearson

This topic has been closed for replies.
Correct answer Newsgroup_User
DEPearson wrote:
> When creating a new XSL file, If I select the locate XML source option, the
> bindings show Invalid document. If I use the remote file option everything
> works fine.

Since your file is dynamically generated, it needs to be parsed by a web
server, even if it's localhost. The local file option is for static XML.

--
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/

2 replies

DEPearsonAuthor
Inspiring
September 29, 2007
David,

I was thinking about that this morning here about the local file option being static xml. I will have to use the remote file option, then change the URL when I do my upload to the live server. To bad they do not have an option for a local dynamic file for xml source.

Thanks,
David Pearson
PS: working on your new book here: Dreamweaver CS3 with CSS, Ajax, and PHP

Newsgroup_UserCorrect answer
Inspiring
September 29, 2007
DEPearson wrote:
> When creating a new XSL file, If I select the locate XML source option, the
> bindings show Invalid document. If I use the remote file option everything
> works fine.

Since your file is dynamically generated, it needs to be parsed by a web
server, even if it's localhost. The local file option is for static XML.

--
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/