How to put back an exported xml file

Hello

I want to export a xml file, but well indented. Could you help me?

I found this 'http://forums.adobe.com/thread/1323539?tstart=0' in our forum, but I want to apply to the prettyPrinting at the exportfile.

To help you, the lines at the end of my script:

" myCont = myWorkFolder + ' / ' + myExportNameFile + '_' + myPageName.threedigit () +"_"+ myArticle.threeDigit () + '." Cont.XML';

myFileCont = new file (myCont);

xmlElement.exportFile (ExportFormat.xml, myFileCont, false); ".

Thank you

The other thread was on the E4X XML class included in Extendscript. You may have about the export of the InDesign structure XML document. It's confusing, but the two things have nothing in common.

To get what you want, I would apply a transform during export. See http://news.oreilly.com/2008/07/simple-pretty-printing-with-xs.html for a sample .xsl file (that you define in document.xmlExportPreferences.transformFilename, see http://jongware.mit.edu/idcs6js/pc_XMLExportPreference.html )

Jeff

Tags: InDesign

Similar Questions

  • accidentally, I clicked on 'internet' on 'Open with' on a zip file and was wandering how to convert back to a zip file?

    accidentally, I clicked on 'internet' on 'Open with' on a zip file and was wandering how to convert back to a zip file?

    For Windows Vista file association problems
    http://www.Winhelponline.com/articles/105/1/file-association-fixes-for-Windows-Vista.html

    Clilck on ZIP on the right, then click on save target as... from the context menu that appears. Save
    zipfix_vista.reg on your desktop. See "Operating Instructions" for more information.

  • How can I import and export MBOX files in Thunderbird?

    Hi all, how can I import and export MBOX files in Thunderbird?

    I tried to install the add-on "ImportExportTools" but it seems that it is no longer recognized by Thunderbird, not the most recent generation.

    That this is the case, is no longer seems to be any official method of handling the files MBOX via Thunderbird, which is odd, given that Thunderbird itself announces that it is method of storage of email records is also MBOX files. It seems obvious that Thunderbird should natively support a file format import and export it is used internally

    If you know of a solution that does not rely on the conversion of traditionally third party utilities little reliable, please let me know.

    Thank you, KB_IT

    Hi there and thank you. I got it on 45.2.0.

    "" I haven't managed to make it work, but only by the search for available modules and following a request from 'import export tools' the "see all results" that work only then produced a success for the plugin in question and showed a button to install it.

    Installers hosted on the site of the third party do not work, nor their instructions to use the option "install file". work, which led to the creation of this ticket.

    Since then, I was able to do properly installed where it works very well.

    I hope that they are a regular feature. I intend to announce this as a best practice to my organization, in collaboration with Google fish, during the handling of the mbox files in Windows operating system.

    Thanks again, Kevin

  • How to insert data in the XML file?

    Hi guys,.

    How to insert information into an XML file. I tell you, I have a CFM file with some questions to the user

    When users submit this form within the form information is send in an XML file.

    How can insert this information in the XML file?

    When I don't have a DB?

    Thank you

    Kind regards

    Fabiano Magno Pechibella

    You must

    1. Read in the XML file
    2. Analyze the document in an XML (just one big struct) object
    3. Insert your XML code of the object where you need
    4. rewrite the XML file with your data now included

    You can Google 'ColdFusion working with XML' and find hundreds of items to help you. Here's a beginning tutorial to help you get started:

    Intermediate ColdFusion Tutorials - working with XML

  • How to use FM OmegaT processed XML files?

    How to convert files in XML (or any other file format that supports the file format that can be used in T Omega) FM so that it can be imported into the translation software open source OmegaT?

    I have a use [Save as] create an XML file, an error message appears when I try to import in Omega T and but I'm unable to translate the file.

    I am trying to use XML files for translation into Omega T, is because in the past, the person who is in charge of editing the file FM would create a text file with sentences to be translated. I would then import the text file in OmegaT to translate and send the text file with the phrases translated to the editor. This could then be edited in a file of FM.

    It would not be a problem if the content to be translated was small. But in some cases there is a large amount of content that must be translated which would take more time to change the FM files.

    What I want to know is if I could use a file format that can be used in Omega T and then be able to convert this file to FM without the Publisher re - edit the file.

    Concerning

    Denjiba-manual

    With regard to the function "Save as XML" in FrameMaker:

    You may know that in FrameMaker, you can work with 'structured' and regular documents.

    When you use "Save as XML" with a document ordinary FM, the resulting XML is simply an output format and are not suitable for reopening in FM. You can translate the XML resulting, but once you return to the FM file, you need to reapply the formatting and the initial numbers back into place. (At least this is what I know of FM8.)

    Otherwise, when you work with an application of structure in FM, you can save documents structured FM in XML format for editing. This means, you can change (translate) the XML document outside FM and open the (translated) XML file published in FM.

    OmegaT regarding:

    I see two ways of translating a document of FM with OmegaT. For both, you will need the Okapi Framework to convert your files into an intermediate format.

    One way requires that your document is a document structured in FM, you can save in XML format for editing. The XML document has probably none of the types of documents that can be translated immediately OmegaT. You can, however, use a utility of the framework of the Okapi to extract translatable text in the XML document in a XLIFF file. Later, you can merge the translated text in the original XML file, which you can bring in FM.

    The other way is similar, but starts with an of FrameMaker MIF file. In this case, regardless of whether or not the document of FM is structured. Of course, there is a MIF Filter for the frame of the Okapi, which allows you to extract the translatable text of MIF in an XLIFF file. Just like above, you can later merge the translated text in the original MIF file. However, the MIF Filter is in beta state, so don't expect it to work perfectly.

    More on the Okapi Framework can be found at http://okapi.opentag.com.

    All that being said, I only played a bit with OmegaT and Okapi. At work, I use an old version of Trados.

    Johannes

  • How to run BACK 16 bit *. Files EXE in Windows 7?

    How to run BACK 16 bit *. EXE files? (It worked on XP in a DOS window. Is not on Win 7) in addition, *. EXE files created in XP creates a message asking to 32-bit or 64-bit. How to operate these establishments?

    Remember - this is a public forum so never post private information such as numbers of mail or telephone!

    Ideas:

    • You have problems with programs
    • Error messages
    • Recent changes to your computer
    • What you have already tried to solve the problem

    There is a utility called DOSBox which will run on Windows 7 x 64 to run your older with programs. It is available for download at the following site: http://www.dosbox.com/

    And it's free!

  • How do you use the config.xml file to determine which version of an application, a user will download?

    I have two APKs for the same application and I implemented the config.XML of lower version number working for all screen sizes.  The config.XML for the higher version number is set up for only the scresns large and extra-large.  Here's the code from the config.xml file.

    Version 1

    < media screens android: anyDensity = "true" android: Center = 'true '.
    Android: smallScreens = "true".
    Android: normalScreens = 'true '.
    Android: largeScreens = "true".
    Android: xlargeScreens = "true" / >

    Version 2

    < media screens android: anyDensity = "true" android: Center = 'true '.
    Android: smallScreens = "false".
    Android: normalScreens = "false".
    Android: largeScreens = "true".
    Android: xlargeScreens = "true" / >

    When I try to download the app on Google game, only the top version is available, regardless of the size of the unit.  When I asked Google game why this was not behave as expected, they said that the file manifest for both applications is the same.  Here is the code, they shot in the manifest after having used PhoneGap Build.

    < media screens android: anyDensity = "true" android: smallScreens = "true" android: normalScreens = "true" android: largeScreens = "true" android: Center = "true" android: xlargeScreens = "true" / >

    Can someone explain why PhoneGap Build is not using the settings I set in the config.xml file?  And how to fix this?

    The tag is not a valid tag in the config.xml file. This is probably why you see the same tag in two, as the build service is ignorant.

    As to how solve you this problem. Currently, you can not, but the next version of android-cordova will include the ability to add a tag which you will be able to use like this:

  • Categories, the application and configuration settings not migrate in the exported XML file

    We have exported our FDM of an environment and it application another via XML file imported. We have experienced several issues highlighted on the link below. In addition, the control of 'Catégories' table is not migrated at all and there seems to be no option to import or export step on the control panels. In addition, I find that many other parameters have not been migrated, such as:
    -Administration | Configuration settings | Allows a custom period description
    -Administration | Application settings | Batch charger
    -Administration | Application settings | Format of Date key time mask
    -Etc etc

    Please can anyone suggest why they have not migrated successfully? It's quite frustrating because at the present time, we have to recreate settings manually in the following environment and the control panel. Y at - it a potential bug here? We use FDM version 11.1.2.1.

    -2147418105-error automation on FDM application via XML file import

    Published by: Jubei on June 12, 2012 16:20

    You import the adapter. These tables are specific adapter and that may be your problem.

  • How to display records from the xml file

    Hi all
    I created a region his area of research in reality
    with 5 elements and array of result area

    I want to search records based on the 5 elements and want to view output table


    I have the table name as hr_api_transactions, which contains many columns



    and also, this table contains a column
    name TRANSACTION_DOCUMENT of type CLOB()
    that files xml columns for each record
    I want to extract data from this xml file and want to display.

    Instance of the view - put the name of VO with which you are extracting data

    Discover the attribute and the attribute of file View - could see attribute by which you found the content of the file

    File name substitution - is not mandatory, let him

    The MIME type of the file: do not place anything, need to better manage programmatically through. Put the code in the below processRequest() method

    OADataBoundValueViewObject contentBoundValue = new OADataBoundValueViewObject(downloadBean,
      "FileContentType"); // here "downloadBean" is bean of message Download item
    downloadBean.setAttributeValue(FILE_CONTENT_TYPE, contentBoundValue);
    

    -Anand

  • How can I recover the index.xml file?

    I can't open a document Pages I've recently worked on. I get this message: I can't open a document, I worked on. I get the message: the requested index.xml file is missing.  What should I do? Thank you, Miriam

    You have two versions of Pages on your Mac and tried to open an incompatible v5 Pages document, while the Pages ' 09 still worked. You simply leave the Pages ' 09 (the purple ink bottle icon) and then double-click on the same document for it to open correctly in your version of Pages v5 (yellow paper with the pencil icon).

  • How to validate and transform large xml files (180 M)

    Hello:

    I was looking at different ways to do it with oracle and am a bit lost in the sea of the documentation and the different ways to go about this. I was hoping that something like the XMLParser and XMLTransform class would be smart enough to handle large files using SAX, when it takes, but I'm getting "too many knots" when attempting to transform a very large file. (I've gotten oraxsl to cope if I pass in the parameters memory clean on the command line but a) which will always limits and b) I tried to do it in a procedure stored that (I think) means I'm looking at XMLParser?

    I also seen documentation on what is called 'Scalable DOM' but I think it's only in 11g? So I think that I have to write a (Java?) procedure to make a loop on the main elements of this XML file stored (select extract (...)), and then transform each node?

    I have the XML, XSD, XSLT and while clob columns. What is the easy/more shortest path within Oracle to validate the XML with the xsd and translate source XML with XSL?

    I use Oracle 10 g on Linux RH 2.

    Thank you.

    I have the XML, XSD, XSLT and while clob columns.

    The complexity is the transformation?

    It is perhaps interesting to try and store your documents as object-relational XML, to create relational views and apply the transformation using XQuery or SQL/XML functions.

  • How to remove an xmltype table .xml file?

    Hi expert,

    I'm in I'm in Oracle Enterprise Manager 11 g 11.2.0.1.0.
    SQL * more: Production of release 11.2.0.1.0 killed him Feb 22 11:40:23 2011

    I inserted 3 .xml files in an xmltype table: DOCUMENT

    SQL > SELECT OBJECT_VALUE FROM document;

    OBJECT_VALUE
    -----------------------------------------------------------------------
    <? XML version = "1.0" encoding = "WINDOWS-1252"? >
    <? XML-stylesheet href = "http://www.accessdata.fda.gov/spl/stylesheet/spl.xsl" type = "text/xsl"? >
    < document xmlns = "" urn: hl7 - org:v3 "xmlns: xsi ="http://www.w3.org/2001/XMLSchema-instance"xsi:schemaLoc"
    action = "" urn: hl7 - org:v3 http://localhost:8080/home/DEV/xsd/spl.xsd ' classCode 'DOC' = > "
    < root id = "5ca4e3cb-7298-4948-8cc2-58e71ad32694" / >
    < code = c '51725-0.

    <? XML version = "1.0" encoding = "WINDOWS-1252"? >
    <? XML-stylesheet href = "http://www.accessdata.fda.gov/spl/stylesheet/spl.xsl" type = "text/xsl"? >
    < document xmlns = "" urn: hl7 - org:v3 "xmlns: xsi ="http://www.w3.org/2001/XMLSchema-instance"xsi:schemaLoc"
    action = "" urn: hl7 - org:v3 http://localhost:8080/home/DEV/xsd/spl.xsd ' classCode 'DOC' = > "
    < root id = "03d6a2cd-fdda-4fe1-865d-da0db9212f34" / >
    < code = c '51725-0.

    <? XML version = "1.0" encoding = "WINDOWS-1252"? >
    <? XML-stylesheet href = "http://www.accessdata.fda.gov/spl/stylesheet/spl.xsl" type = "text/xsl"? >
    < document xmlns = "" urn: hl7 - org:v3 "xmlns: xsi ="http://www.w3.org/2001/XMLSchema-instance"xsi:schemaLoc"
    action = "" urn: hl7 - org:v3 http://localhost:8080/home/DEV/xsd/spl.xsd ' classCode 'DOC' = > "
    < root id = "09ff06d6-8b85-43dd-b5cc-e22d00f02bd0" / >
    < code = c '51725-0.

    I tried to remove an xml file which with root id = "03d6a2cd-fdda-4fe1-865d-da0db9212f34'"

    delete the document
    where xmlexists (' $p/document/id [@root = "03d6a2cd-fdda-4fe1-865d-da0db9212f34"]' in PASSING OBJECT_VALUE AS "p");

    but failed.
    Y at - it that can help any expert?

    Thank you very much!

    Cow

    Published by: cow on March 11, 2011 19:02

    Hello

    Namespace problem.
    You must declare it in the XQuery Prolog:

    DELETE FROM document
    WHERE XMLExists( 'declare default element namespace "urn:hl7-org:v3"; (::)
                      $p/document/id[@root=$root_value]'
                     passing object_value as "p",
                             '03d6a2cd-fdda-4fe1-865d-da0db9212f34' as "root_value" )
    ;
    
  • Key broke and I don't know how to put back on!

    I noticed that my left key was difficult press then I cracked it to other computers can snap them on.
    I pulled out the dirt, but the key will not go back. What should I do?

    Hello

    It is a bit complicated and I don't know how to describe it, it is possible to...
    It is not only to press its place again, you need to move a little at the top

    More delicate are the keys to the big (I needed half an hour to do with the BACKSPACE key)
    They have a certain fragile mechanics on the negative side, you have to explore to find
    a way to put them back on the keyboard.

    When I have crumbs under the keys now, I first try blow them with a blade of straw.

    Good luck!

  • How can I back up only certain files?

    Vista Home premium 32-bit, sp2 w.

    I have a backup of the new machine, support has do me a repair of windows DVD, because critical system files are corrupt. Problem, I don't want to lose the DLDVDs to save a corrupt system, I just want to back up the selected directories which I put after the call to repair the system, or even if I decide to reformat and clean install. But certainly do not want these "system files corrupted" in my backup. Just select the directories where my files are personnel usually work, since I constantly receive warnings on the copy of the system files too so I need a backup to the skirt of this question Wizard. The system insists on the fact that I have this backup backup windows, I want to backup is basically everything except windows on C drive and also create a backup of my Z drive which is music, photos, movies etc.

    Using Vista, you can't.  This feature is not available.  However, you can select files or folders to restore (which can allow you to reach your goal, if this may mean backup of corrupted files but only good restoration).

    If you want other options, find substitute products.  I don't know if it can do what you want, but a lot of people recommend Acronis True Image 2010http://www.acronis.com/homecomputing/products/trueimage/ which offers a free trial where you can see for yourself if it can do what you want before spending a penny.  In addition, since you have Home Premium, you do have the option of a full image backup and which would thus provide.

    I hope this helps.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • My icon in the left lower bar disappeared, how I put back it?

    When I installed FF 3.6.22, FF icon down in the lower tray left disappeared, (I don't have not noticed this), and has appeared on the desktop. I hate the icons on the desktop, so I deleted the shortcut and then noticed that the icon has disappeared from the left side of the task bar, next to the oblong start.
    How can I get the icon or the shortcut for FF 3.6.22 back in the right place?

    And no, I don't want to go to the v6.

    Make the shortcut on the desktop again and try this:

    http://forums.mozillazine.org/viewtopic.php?f=38 & t = 358622

    Thank you

    Please check 'Resolved' the answer really solve the problem, to help others with a similar problem.

Maybe you are looking for