TextFlow XML export issue with missing whitespaces

If I export a TextFlow into XML (with either TextFlowUtil or TextConverter) it will lose white spaces where they occur between elements, so that a subsequence import will yield different content from the original. A simple example being:
"Where is my white space". Will export and re-import to give: "Whereismywhitespace".
This happens in the XML build process because when a text node is programatically appended (with appendChild()) white spaces are stripped from the start and end. For example, if you do xml.appendChild("     hello    ") you actually get an XML element containing just "hello".
Now I understand there is a directive (XML.ignoreWhiteSpace) to ignore or keep white space when parsing nodes already set in the XML, but I cannot see how to do this when you are building the XML from some data structure (like a TextFlow), or indeed when creating an XML object from a String that contains XML notation.
I am unaware how you can include surrounding whitespace in an XML node (short of CDATA). And the fact that the TextFlow XML import/export loses information seems to make it, well, pretty pointless.
So, how do I retain these white spaces in a TextFlow in an exported XML?

The solution for this problem consists of two parts.
First part is exporting the xml from the textflow, you want no formatted XML (with breaks, tabs, ...), but one long string with the spaces left like there were entered between the tags, this can be done with:
_textXML = TextConverter.export(EditorID.textFlow,TextConverter.TEXT_LAYOUT_FORMAT,ConversionType.STRING_TYPE) as String;
Use the TextConverter in stead of the TextFlowUtil.
Second part is back importing to textFlow:
There the solution mentioned above was correct.
XML.ignoreWhitespace = false;
var flowXML:XML = new XML(_textXML);
contentTLF = TextFlowUtil.importFromXML(flowXML,WhiteSpaceCollapse.PRESERVE);

Similar Messages

  • PDF Export Issue - content missing (Not background freeze issue)

    Hi,
    Currently having some issues with exporting PDF's from Indesign CS5. When I export the first page (which is based off a master page) the majority of the content gets cut off - so this is images, coloured boxes and strokes and a barcode.(Top Image)
    When I cut the content from the master page and paste it onto a standard page, then it prints off ok (Bottom Image), but we can't realistically do this every single time. Its not only in one document that its happened - it has occured with several of our documents and across multiple computers.
    I have checked the forum and troubleshooting, have gone through and done the troubleshooting based on document and application level to no help. http://kb2.adobe.com/cps/499/cpsid_49998.html#main_DocumentLevel
    I've read the different posts regarding background tasks which is not the issue as it is actually exporting it and its fine.
    Have restarted the machine, double checked updates, checked whether its a damaged document (its not from what I can tell)
    Tried exporting without images (Omit OPI) with same results.
    Have checked out the transpency issue (as does contain some transparency but no results).
    So thinking it must be something to do with the master pages but I have no idea what.
    We were using an external plug in for the barcodes for CS4, that does not work for CS5 so I removed the barcode to see if that was affecting it but again no luck.
    Just to confirm we're running
    Adobe CS5 onto our computers - we've run all the the updates both for Adobe Acrobat Pro (9.4) and for all of the CS5.
    Its being run on iMac 2.4 GHz Intel Core 2 Duo, OS X 10.6.4
    Adobe CS4 has been uninstalled and deregistered so no interference there.
    Can anyone help me out here or recommend something?
    Thanks in advance.

    I've redrawn it all and placed in new images and now its starting to do weird stuff like make the images disappear as well as making part of the transparency 20% (as set by me) but then making another section of it 100%.(See below - top one is correct, bottom is incorrect). I would agree with you that it may just be an issue with the file, except its happening across multiple computers. There's not really any chance its a dud version of CS5 is there? Its all legit so no real reason why it wouldn't be.
    Override Master Pages fixes it, but this is pretty disappointing if I need to have to do this every single time as it makes the master pages on half useful.
    We do have CS3 actually and I opened it in that, exported it as a .inx but same issue with elements missing - the stroke around the outside disappeared.
    Could it be anything to do with bringing across elements from Illustrator? Although the top element is appearing fine, and the bottom transparent element is a copied item so shouldn't be an issue. And the image disappearing - there's no real reason for that.

  • Issue with Extra Whitespace in Public Tidal Variable

    Hi All,
    I'm currently having an issue using a public Tidal variable in the file path of a ROBOCOPY script that I'm writing.
    We are running version 6.0.3.209
    Here is the scenario where I'm having the failure;
    1) I created a SQL job to pull a static string value from a databases (the SQL trims the string value to remove whitespaces from left and right)
    2) I created a public string variable, a variable event, and a job event
    3) When the SQL job completes, it triggers a job event which triggers the variable event and sets the public string variable to the output of the SQL job
    The variable should be set to this value with no whitespaces: 20130702170530_Q2
    4) I then pass this variable in the file path of my ROBOCOPY script, and the script fails
    Steps 1-3 work just fine, HOWEVER, my script is failing in ALL scenarios EXCEPT hard-coding the value.
    What's even stranger is that before I double click and open the variable, you can obviously see that there IS a whitespace (see top arrow in below img)
    If I run my ROBOCOPY script using the variable like this, it Completes Abnormally (Failed)
    When I double click to open the variable, without any modifications you can see that there is NO whitespace (see lower arrow in above img).
    If I click ‘OK’ after Opening the variable without modifying it, the whitespace disappears (see arrow in img below).
    Now if I run the exact same ROBOCOPY script using the exact same variable, it Completes Normally (Passed)
    Does anyone know a workaround for this or has anyone experienced the same behavior?
    I have tried multiple scenarios (passing the job output directly, passing the variable, concatenating 2 variables in to 1 and passing the entire folder path as a variable) and all are failing.
    Any help would be greatly appreciated!
    Best Regards,
    Doug M.

    Hi All,
    I was actually able to find a workaround for this not using Tidal variables.  I ended up hard coding part of the file path in the SQL job which pulls the static string value, and concatenating the 2 strings like this:
    SELECT TOP 1 'E:\data\inbound\KMK\RETROACTIVE\' + LTRIM(RTRIM([Data_Date]))
    FROM [DB_NAME].[dbo].[TABLE_NAME]
    WHERE = 946
    When I pass the job output to my ROBOCOPY script it works perfectly.
    I'll leave this as answered instead of deleting it in case anyone has the same issue

  • Video export issues with 5D mk II video

    Using a trial version I keep running into issues with video slideshow export.
    I have some 1080p '24fps' video clips from the 5D II, added them to a new Slideshow, did a Custom Export to h264 with height 720 (which from memory took the width to 1152) and 24fps - I want this to play on AppleTV, but the resulting video starts ok, but has multiple sections of blank video - in QT the frame rate has also been upped to 36fps!
    It also takes a ridiculous amount of time to export a short clip, but that's seems par for the course for many of Apple's apps. This is on a 2008 8x3GHz Mac Pro with plenty of RAM, though running Leopard.
    Anyone done any A/Bs of performance in Leopard vs Snow Leopard - does it make better usage of multiple cores? (They all have a little activity but it's 10% or so, perhaps 1 core at 70-80%, I can't understand even if it's not using all fully why one isn't getting maxed out with the conversion process).
    The slideshow export function seems incredibly buggy - it used to output using AppleTv preset with incompatible frame rates, though they may have fixed that.
    Message was edited by: Alley_Cat

    DLScreative wrote:
    Just a thought, but 24p was just added to the markII through a firmware update.
    Yes, which is why I thought it would be great for AppleTV which can only officially support 720p at 24fps (though 25fps will often work).
    If I use an AppleTv preset it will now rescale to 960x540, but I want to use 1280x720.
    Previously in 3.0 the AppleTV preset output 720p but at 30fps which is too high for AppleTV.
    Are you sure it's not the footage? Have you tried it in FCP? Also, it maybe that 24p isn't supported in A3, but this all just conjecture on my part.
    Good thought, but I would imagine QT is the engine supporting the Aperture exports, and if parameters are set correctly it should give the appropriate output.
    I'll try using QT Pro and see what that does with a clip.

  • LR5.3 Export issue with Sequence Renumbering

    I just discovered an issue with the LR5.3 Export module on my Windows 7 system when exporting JPEG image files with 'Sequence' File renaming and 'Original' File Settings to a subfolder. When exporting approximately 100 JPEG image files LR shows a file count in the subfolder of ~1/2 the actual file count and the ability to 'Synchronize Folder' disappears. The correct number of files appear in the subfolder using Windows Explorer, so they all were successfully exported and renamed properly. LR must be closed and reopened to restore the ability to 'Synchronize Folders' and/or 'Import' images using the Import module. I've never encountered this problem before since I normally process raw image files, which do not exhibit this issue.
    Here are screenshots:

    Posted to the Photoshop Family site as a problem:
    http://feedback.photoshop.com/photoshop_family/topics/lr5_3_export_sequence_numbering_issu e

  • Export Issues with Compressed Partition Tables?

    We recently partitioned and compressed some large tables. It appears, but I'm not sure yet, that this is causing the export to run extremely slow. The database is at 10.2.0.2 and we are using the exp utility, not datapump. Does anyone know of any known issues with using exp to export compressed, partitioned tables?

    can you give more details of the table structure with dbms_metadata if possible, and how you are taking the export please?
    did you try to take an sql*trace of the export process to see what is going on behind, this is an introduction if you may need;
    http://tonguc.wordpress.com/2006/12/30/introduction-to-oracle-trace-utulity-and-understanding-the-fundamental-performance-equation/

  • LIS issue with missing data

    Hello,
    We have a situation with missing orders from a custom LIS structure. We have little documentation on how LIS works and little understanding. The target S*** table collects new orders when entered. This has been working for as long as we know but last weekend we found a missing order.
    Are there rules stored somewhere on what and how an order should be extacted to the target table? Can someone provide an overview on how this works?
    Thank you in advance for any assistance.

    Thanks for your response. Found the issue to be a new schema that was this app created but never documented! They tried to add the app back with the original test schema and not the current production one. Updated and working fine now.

  • CS2/MAC/Applescript: XML Export problem with Special Character (thin space).

    Hi,
    I just have noticed that the base XML export of Indesign doesnt encode/keep the unicode value of Thin Space in the exported XML. Strangely, a non-breaking space is encoded ( ) and a few other higher range unicode values (well not encoded, it's in the text data just like any other character).
    The thin space is converted to a char 63 (?). I have tried utf8 and utf16.
    Is this behavior documented somewhere? There is no option in the export window.
    Does it mean that the only complete and reliable way to export text data is to have another script to export the tagged page item text content? (i definitively can do this, but it's remove alot of the simplicity of using the base XML export) [and make any simple xml/text roundtrip unfunctionnal]
    Anyone having experience with XML workflow can confirm if i have just met a known limitation of Indesign??
    Thanks,
    Eric

    Oups! I was able to find something here on the same subject:
    http://www.adobeforums.com/webx/.59b561c7/0

  • Workaround for ]] XML export bug with schema?

    Hi,
    It is a known issue that the ]]> sequence will not export properly to XML. If you are using a DTD, there is an entity-based workaround that is described here:
    http://forums.adobe.com/message/3774389
    The question... is there a workaround when using schema? I'm unable to figure it out.
    Thanks,
    Russ

    Hi Lynne,
    Thanks again for the thoughts. And by the way, I sympathize with your implicit complaint about how these forums work with respect to revised messages. I am accustomed to hitting Ctrl+S all the time, probably from my FM experience   Unfortunately, if you accidentally do it in the forum webpage, it submits the message. The system really needs to send revisions when they occur, because some people might just read the original email and think that's it.
    Anyway, I'm intrigued by some things you said. #1 is possible but not preferable, as schema was specifically chosen for the ability to validate attribute values. My level of attribute-based conditionalization is fairly heavy and the schema makes sure that an invalid value cannot be entered. I seem to remember back in the outset that a DTD couldn't do the level of validation I like, but I don't remember the exact reasoning. Note that I frequently assign lots of values to an attribute, tokenized with whitespace as customary.
    #3 is what I'm doing now, except with the fancy coverup tricks with spacing and back-end XSLT. I like your ideas.
    #4 is actually pure genious and it is the route I think I will go. Something you didn't know yet is that I have a script that automatically formats an XML instance like an XML editor does, incidentally by wrapping <ph> elements and setting color-formatting attributes. Thanks to ExtendScript, I was able to use regular expressions to parse out all the individual components and then create a "map" for the subsequent wrapping/formatting activities. It is quite lovely and gives me the best looking XML instances in town, with a click. Bragging aside, it would be elementary to modify that script slightly to insert another <ph> element as you suggest. Elegant and simple, but I would have never thought of that myself.
    Many thanks again,
    Russ

  • Is there a way to contact Lightroom help by phone? I have a complicated issue with missing files.

    When I downloaded my photos into Lightroom today I used today's date on the folder, but got the year wrong, 2013. After I completed editing my entire photo session, and tried to export some of the images, I realized I had the date wrong on the folder.  I used my Mac's "Finder" to locate the file and change the name to 2014, with the rest of the folder name.  I see now that this was a mistake and I should have probably changed the file name IN lightroom instead.  Now I cannot export because I am getting the message about the files being offline or missing.  I have tried to correct this by changing the folder name back to the original incorrect name (year), but this did not solve it.  I clicked on the question marks and tried to "find" the folder, but that did not work either. It would be nice to be able to save my work in editing, rather than to have to start over again.  In addition, Lightroom now shows several extra folders with the same folder names have been created that I didn't plan or create, purposely at least : )  Now I am really confused as to how to fix this...

    You should be able to use
    "Find Missing Folder" ok......
    How about putting a screen shot of your Library and matching HD like these:
    and:
    Then we can help you out... don't panic and don't reimport the files. Everything just needs relinking somehow.

  • Crystal XI R2 exporting issues with double-byte character sets

    NOTE: I have also posted this in the Business Objects General section with no resolution, so I figured I would try this forum as well.
    We are using Crystal Reports XI Release 2 (version 11.5.0.313).
    We have an application that can be run using multiple cultures/languages, chosen at login time. We have discovered an issue when exporting a Crystal report from our application while using a double-byte character set (Korean, Japanese).
    The original text when viewed through our application in the Crystal preview window looks correct:
    性能 著概要
    When exported to Microsoft Word, it also looks correct. However, when we export to PDF or even RPT, the characters are not being converted. The double-byte characters are rendered as boxes instead. It seems that the PDF and RPT exports are somehow not making use of the linked fonts Windows provides for double-byte character sets. This same behavior is exhibited when exporting a PDF from the Crystal report designer environment. We are using Tahoma, a TrueType font, in our report.
    I did discover some new behavior that may or may not have any bearing on this issue. When a text field containing double-byte characters is just sitting on the report in the report designer, the box characters are displayed where the Korean characters should be. However, when I double click on the text field to edit the text, the Korean characters suddenly appear, replacing the boxes. And when I exit edit mode of the text field, the boxes are back. And they remain this way when exported, whether from inside the design environment or outside it.
    Has anyone seen this behavior? Is SAP/Business Objects/Crystal aware of this? Is there a fix available? Any insights would be welcomed.
    Thanks,
    Jeff

    Hi Jef
    I searched on the forums and got the following information:
    1) If font linking is enabled on your device, you can examine the registry by enumerating the subkeys of the registry key at HKEY_LOCAL_MACHINEu2013\SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontLink\SystemLink to determine the mappings of linked fonts to base fonts. You can add links by using Regedit to create additional subkeys. Once you have located the registry key that has just been mentioned, from the Edit menu, Highlight the font face name of the font you want to link to and then from the Edit menu, click Modify. On a new line in the dialog field "Value data" of the Edit Multi-String dialog box, enter "path and file to link to," "face name of the font to link".u201D
    2) "Fonts in general, especially TrueType and OpenType, are u201CUnicodeu201D.
    Since you are using a 'true type' font, it may be an Unicode type already.However,if Bud's suggestion works then nothing better than that.
    Also, could you please check the output from crystal designer with different version of pdf than the current one?
    Meanwhile, I will look out for any additional/suitable information on this issue.

  • Action batch export issue with image trace

    So, currently I'm working on batch processing jpeg sequences using illustrator's image trace and distortion effects. I have batch exported the image traces of the sequences via Adobe bridge.  Now I'm trying to create an action which opens the .ai files containing those image traces, apply a graphic style to the trace, and export a png from that.  I'm banging my head against the wall trying to get this to work right now. If I do the steps (step by step... not using a recorded action) I want on a single file, it works great, but the moment I batch export using the action I've created, it puts the original .png image that the image trace was linked to, on top of the image. The result is a bunch of .png exports that look exactly like my original image sequence.  If I add a "save" function to the action and open the resulting .ai files, I can see that the image trace vectors are in the file. The "linked png" however visible on the layer above those vectors.  Anyone have any idea what I'm doing wrong? How do I get rid of that pesky linked image.
    Also, for anyone who might be thinking that it has something to do with expanding the image trace before applying effects, this issue I'm running into, I've determined, is happening higher up in the hierarchy of the actions... If I simply make an action to open the image trace illustrator file and save it back out, the same issue occurs... placing the .png "linked file" on top of the vector image.
    While I'm at it, I might as well ask if anyone knows how to change the illustrator default image trace preset.... Without being able to change it, or much less specify in the action sequence that I'd like to use a user created image trace preset rather than the default setting, it's greatly overcomplicating my workflow. Makes what could easily be one-step batch processing into two. Seems pretty silly if you ask me.
    Please, if you guys have any insights on this, let me know. It's super frustrating... By the way, if you're wondering what type of effect I'm going for, the idea (as well as some explanation into their own process) starts at 12:44 of this video (http://vimeo.com/77427470).
    THANKS!

    Just wanted to let you guys know, for anyone who might be having my same issue... My home computer, even after a fresh install of Illustrator, was still placing the linked jpeg over the traced vector shapes when batch exporting... I did however find a workaround.  Rather than using Bridge CS6 for the batch image tracing, I used Bridge CS5 to trace in Illustrator CS5. Then, I used Illustrator CS6 to batch export an action that imported and applied an effect to those image traced sequences.  When you do this, it forces you to expand the tracing on import (because of the difference in Illustrator versions I'm assuming).  This way, when you batch run the action, it's already working with expanded vector shapes.  Not sure why this works, but it does.
    Also, I was having some issues getting Illustrator to apply the graphic style when batch exporting. I got it to work by copying an object with that particular graphic style to the clipboard, then adding in the action I was running a "paste" command, followed by a "clear" command.  I can only assume that Illustrator was having issues loading custom graphics styles while batch exporting. The paste/delete technique is annoying, but gets it done.
    Anyways. Just wanted to check in on this one. I'm happy I was able to muscle my way through it all.

  • Pages from iPad - Export issues with pdf, word

    issues when exporting documents out of Pages from iPad using pdf, and getting... "Cannot extract the embedded font 'VZEENN+Georgia-Bold'. Some characters may not display or print correctly". I have 10.5.8 and Adobe latest version 9.4... I have also tried different and more universal fonts on Pages like Arial or Helvetica with no success... Really frustrating to have so critical bugs. Any work arounds from anyone? Thanks!

    Yes, you can send the file as an email attachment to yourself and open it on a computer and print.
    You can use DropBox to place the files on the computer to print
    These are easiest if the file is saved (exported) as a PDF file so it is portable.
    You can also use an AirPrint enabled printer and print directly from the iPad without going through the computer.  But buying another printer is much more expensive than the cost ($20) of Pages for the MBP.
    If you already have a wireless printer, you can try the website for the manufacturer and see if there is an upgrade for the printer to enable it for AirPrint.

  • OES Client causes XML Parser Issue with Spring 3 Framework WAR

    Dear All,
    OES Client has been installed in the linux OS and configured JAVA SM in it. Have executed the sample webpage in the tomcat server which contains the 'PepResponse' of getting the authorization value (TRUE / FALSE) and it works fine.
    Code snippet:-
    PepResponse result = PepRequestFactoryImpl.getPepRequestFactory().newPepRequest(user, action, resourceString, null).decide();
    out.println("Result: "+ result.allowed());
    It returns the proper value if I mention the oes-client.jar classpath reference in the tomcat classpath settings, but at the same time the existing spring framework WAR file is not deployed in the tomcat. The same WAR file is deploying properly if I remove the classpath reference of oes-client.jar from the tomcat configuration.
    The issue causes because of xmlparser2.jar(oracle.xdk11.1.1.1) in the oes client.
    Have tried all the alternate approaches and failed to execute both the code together.
    Note:- One of the approach, I have tried to copy xcersImpl.jar and xml-apis.jar in the WEB-INF/lib within the war file and also executed oes authorization sample web page simultaneously with referred oes-client.jar classpath reference. The WAR file is started deploy properly and OES Authorization sample webpage has thrown 'Null Pointer Exception'.
    Anyone, please suggest how to resolve the JAR conflict issue between the OES Client and Spring Framework WAR.

    Hi, I got registered to this bea forms, can you help on where to go for posting new blog.
    Weblogic Consultant

  • XML-OPP issue with report

    We have following issue while running/generating XML report.
    "The output post-processor will be made to post-process this request.
    No further attempts will be made to post-process this request, and the request will me marked with warning status.
    Setting the profile option concurrent: OPP Response Timeout to a higher value may be necessary. "
    We are also getting following errors as well.
    "XML File does not appear have any style information associated with it."
    We have increased OPP: Response time and bounced, but still same issue. Could someone please help?
    Regards,
    Vikram

    Please post the details of the application release, database version and OS.
    Please check the OPP log file for details about the error.
    Please see these docs.
    Concurrent Requests Fail Due to Output Post Processing (OPP) Timeout [ID 352518.1]
    Troubleshooting Oracle XML Publisher For The Oracle E-Business Suite [ID 364547.1]
    Report Output Error: The XML page cannot be displayed. Cannot view XML input using style sheet. [ID 753620.1]
    R11i/R12 Potential Workaround For Publishing XML Reports When The OPP (Output Post-Processor) Fails [ID 858132.1]
    EBS - Technology Area - Webcast Recording 'E-Business Suite - Concurrent Manager Performance - Best Practices' [video] [ID 1367676.1]
    R12: Troubleshooting Known XML Publisher and E-Business Suite (EBS) Integration Issues [ID 1410160.1]
    Thanks,
    Hussein

Maybe you are looking for

  • Importing Quark into Indesign cs3

    I am importing a quark 4.1 file into indesign cs3 and it seems all the text frames I had tabs formated on didn't translate into indesign cs3 well. Specifically the last couple tabs were off making the text jump to the next line and moving other text

  • Adding parameter to existing CR report

    Hi everybody, I created a CR report based on a SAP query. Then I changed this query by adding a variable. This variable appeared as a new parameter in Crystal but I can't get values from the master data for this parameter. When I select the InfoObjec

  • Copy and Paste While Editing Bookmarks

    I am having a problem on my iPad 2 (ios5) copying and pasting while trying to edit bookmarks. I can copy and paste in the name of the bookmark, but cannot on the web address. This has become a problem because I would like to use a bookmarklet and I n

  • I have a problem in camera hardware.

    I have a problem in camera hardware and i have brought it from US and warranty is still 93 days what should I do any suggestions.

  • Log file switch

    Hi, on 11g R2, on Win 2008, how to see the frequency of switching from one log file to another ? Thank you.