I did earlier! but just checked, and no I don't. Time to add that to the system environment variables I think.. that might make the difference I guess; but for now the fx:XML insertion is working well..
thanks -----Original Message----- From: Alex Harui <[email protected]> Sent: 09 July 2019 16:58 To: [email protected] Subject: [EXTERNAL] Re: Support for XML embedded via 'source' attribute Are you using Windows? Do you have the JAVA_TOOL_OPTIONS set for utf8? I think some parts of the compiler may open a file expecting utf8 and other parts just take whatever the JRE gives it. HTH, -Alex On 7/9/19, 7:31 AM, "Frost, Andrew" <[email protected]> wrote: Hi Okay [2] is exactly what we had, but I've just realised we didn't have this in a <fx:Declarations> section, which is presumably why the compiler had ignored it! So add this, and suddenly I get the XML object being initialised with the XML file being embedded into the main .js file. Interesting difference between options 1 and 2 is that the foreign-language characters in the XML are only rendered properly with the second option i.e. embedding an fx:XML object within the fx:Declarations. I'm guessing this to do with the "text/plain" MIME type, but am not sure what it should be for utf-8...? Anyway, thanks, I'm happy with this working as intended, with just the embarrassment of having not spotted the lack of the <fx:Declarations> section! cheers Andrew -----Original Message----- From: Yishay Weiss <[email protected]> Sent: 09 July 2019 15:17 To: [email protected] Subject: [EXTERNAL] RE: Support for XML embedded via 'source' attribute Maybe this [2] is closer to what you want. I've tested [1] but not [2]. According to [2] your syntax was ok, so maybe post a test case demonstrating your problem. [2] https://clicktime.symantec.com/3PA7aYXBxRYfGtmFGZrpHSG7Vc?u=https%3A%2F%2Fnam04.safelinks.protection.outlook.com%2F%3Furl%3Dhttps%253A%252F%252Fgithub.com%252Fapache%252Froyale-asjs%252Fblob%252Fdevelop%252Fexamples%252Fmxroyale%252Ftourdeflexmodules%252Fsrc%252Fspark%252Fcontrols%252FTextLayout3Example.mxml%26data%3D02%257C01%257Caharui%2540adobe.com%257C620cbae1c55e435b04bb08d7047a0b0b%257Cfa7b1b5a7b34438794aed2c178decee1%257C0%257C1%257C636982794528719536%26sdata%3DVHZQCfkzFklMLMeTYIN%252FkhoyKaz60mEnpMsbTGmKAQ4%253D%26reserved%3D0 ________________________________ From: Yishay Weiss <[email protected]> Sent: Tuesday, July 9, 2019 5:10:27 PM To: [email protected] Subject: RE: Support for XML embedded via 'source' attribute Hi Andrew, There's an example [1] here. [1] https://clicktime.symantec.com/3Y7SkRdjpgov8nE4XY6ksGN7Vc?u=https%3A%2F%2Fnam04.safelinks.protection.outlook.com%2F%3Furl%3Dhttps%253A%252F%252Fgithub.com%252Fapache%252Froyale-asjs%252Fblob%252Fdevelop%252Fexamples%252Fmxroyale%252Ftourdeflexmodules%252Fsrc%252Fexplorer.mxml%26data%3D02%257C01%257Caharui%2540adobe.com%257C620cbae1c55e435b04bb08d7047a0b0b%257Cfa7b1b5a7b34438794aed2c178decee1%257C0%257C1%257C636982794528719536%26sdata%3DvUnn28GvtdfNtcBkMUWYn8M724iSDZ9USzI2LIiV58I%253D%26reserved%3D0 ________________________________ From: Frost, Andrew <[email protected]> Sent: Tuesday, July 9, 2019 4:52:36 PM To: [email protected] Subject: Support for XML embedded via 'source' attribute Hi all Am I missing something, or do we not yet have support for something like: <fx:XML id="myXML" source="xml_source_file.xml"/> This is creating an XML object with ID 'myXML' but then not picking up and initialising it with the contents of that source file.. If this isn't implemented yet, then what would people think is the best way to do it: should we try to dynamically fetch the XML file at runtime? or should we build the XML into the JavaScript initialisation somehow? thanks Andrew
