简体   繁体   中英

AS3: create template for XML file

I need to create DB report as excel file. The best (and simplest) way I can see - create the XML representation and save it as XLS. The Header and Footer parts of this file should be constant, so I'd prefer to load them from config (or template) file instead of hard coded string constants. And it has no sense to use the XML per se - the "string" will be more than enough. The question is: how I can do it? I mean - load XML content as string, or as a last resort - create string constant. I've tried what was recommended for multi-line constants in one of stackoverflow answers (use CDATA). But seems, for XML content it doesn't work.

Thanks in advance.

URLLoader will load any file as String by default. Otherwise, use XML for XML data, not XML string packed into CDATA of other XML (if I understand your thought correctly).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM