Search code examples
mdriven

Generating XML using ViewModelAsXML


How do I render a XMLdocument containing these xsi adm xmlns tags with corresponding URI, I have tried the NodeName tagged value but without luck... Replace would do it but is there a more robust way?

enter image description here


Solution

  • I myself would use the opendocumentreport logic with a static template that holds xml documents with all namespaces and details:

    vCurrent_GoogleFeed2.FeedResult:=vCurrent_GoogleFeed2.opendocumentreportasblob( GoogleFeed.Viewmodels.GoogleFeedReport ).asstring
    

    And my template looks like this: enter image description here