In ActionScript 3, when you try to load an XML file, for example
<Element><Property> a </Property></Element>
the value in the node "property will be just" a ", deleted and leading spaces are removed.
I did what http://bugs.adobe.com/jira/browse/ASC-3125 recommends, without success. Any ideas?
As described above, XML.prettyPrinting does not work. Finally, he got the fix by addingXML.ignoreWhitespace = false;
XML.ignoreWhitespace = false;
After this line of code, trailing spaces are not removed.
I believe that if you put it in CDATA tags, you will get spaces.
<Element><Property><![CDATA[ a ]]></Property></Element>
XML.prettyPrinting = false
Should work fine, this is what I use for this exact problem. But note that this is a global setting and may cause new errors to appear elsewhere in your application.
Source: https://habr.com/ru/post/1707320/More articles:Submitting a user to a page created based on their POST request in Django - redirectLive webcam on ASP.NET website - asp.netPHP - Удалить элемент из Hash Table (массив) с помощью array_filter - arraysРазбор html-данных с помощью nutch 1.0 и настраиваемого плагина - html-parsingIs there a way to make an existing type of interface implementation? - c #Как обрабатывать бесконечные совпадения из пользовательских регулярных выражений - c#Help Balloons in Grails - grailsПоиск в предопределенном наборе текстовых опций - javascriptVSTO Word 2007: How can I programmatically move controls above / below the range of an existing control? - ms-wordConnecting to a .NET web service through a SOCKS5 proxy server - c #All Articles