Export XML question FM9

Hello

When you export to XML "File-Save as XML".

FM exports all the information. Following is the display of the Structure:

refsetup.png

The XML output from this is:

< ref >
< Ref-installation-item id = "o00009-9-1230-783-00004" >
< local link = "m00003-9-1230-783-00001" id = "m00003-9-1230-783-00001" > < / Ref-installation-point >.
< Ref-installation-item id = 'o00009-9-1230-783-00007' >
< local link = 's00001-9-1230-783-00050' id = ' s00001-9-1230-783-00050 "> < / Ref-installation-point >.
< Ref-installation-item id = "o00009-9-1230-783-00010" >
< local link = "o00031-9-1230-783-00001" id = "o00031-9-1230-783-00001" > < / Ref-installation-item > < / Ref > ".

As you can see the text of 'link' element is missing and is not closed... any ideas?

Of course - that would be my answer.  You don't need to force it to a frame of link - it can be treated as any other XML structure assuming that you have code that knows how to convert a link in HTML from the original XML structure.  Make a container and get rid of the rules R/W and it should come out just like the original DTD specification.

Jim

Tags: Adobe FrameMaker

Similar Questions

  • Export XML FCP in emitter of mercury

    Hello

    is it possible to export the current project to an FCP XML from a native plugin? I'm trying to implement a plugin which exports the chronology of a different rendering engine during playback and then provides information of time code in real-time.

    Thanks for your help already!

    Karsten

    Panels of HTML5 is from too, but no, there is no way to export XML FCP of in a C++ plugin, today.

    [It is a pretty popular feature request].

  • Export XML with XSLT

    Dear Scripting Guys,

    With this little script, you can export XML.

    But is there a way that you can use an XSLT transformation to export the XML file?

    var w = new Window ("dialog");  
    var myBut = w.add ("button", undefined, "EXPORT", {name: "ok"});  
    var myName = app.activeDocument.name.split(".indd").join(".xml");  
    if (w.show() == 1){  
        try {  
             var myFolder = Folder.selectDialog("Select the folder", "");   
             app.scriptPreferences.userInteractionLevel=UserInteractionLevels.neverInteract;  
             var myInxfile = new File(myFolder.fsName+"/"+app.activeDocument.name.split(".indd")[0]+".xml");  
             app.activeDocument.exportFile(ExportFormat.XML, myInxfile);  
             } catch(err) {alert(err);}  
         }  
    app.scriptPreferences.userInteractionLevel = UserInteractionLevels.INTERACT_WITH_ALL; 
    

    XSLT:

    <?xml version='1.0' encoding='UTF-8' ?>
    <xsl:stylesheet version='1.0' xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>
    <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>  
    
    
    <!-- Match everything -->  
    <xsl:template match="@*|node()">  
    <xsl:copy>  
    <xsl:apply-templates select="@*|node()" />  
    </xsl:copy>  
    <xsl:text>  
    </xsl:text></xsl:template>  
      
    </xsl:stylesheet>  
    

    Greetings

    Insert before line 9:

    app.activeDocument.xmlExportPreferences.allowTransform = true;

    app.activeDocument.xmlExportPreferences.transformFilename = File ('PATH_TO_YOUR_TRANSFROM_FILE');

  • InDesign, export XML and the Task FORCE

    As a producer of a weekly, I need advice as to generate xml from Indesign CC (Mac) data standards NITF, at the choice of my digital Distributor. This includes dividing an article - that can be formatted in single text - in two equal elements: one for the title, signature, etc. and one for the body of the text. Is it possible to do without altering the original route, intended for printing? I would rather not have to break an image into two just for this purpose - for each article in the newspaper. In short: an image, an ACE, maybe two items, the head and the body? There is no shortage of advice around xml, nor on the NITF standard for dress news, but I have yet to find the one dealing with both. Thanks in advance.

    If I understand correctly, you just need to label the elements properly. To use a simple example, if I have a single image of text that contains a header and body text, I would create two tags, one for the title and one for the body. Then, I select the heading and apply the tag title and made similarly to the body. When you export to xml format, you will have two items with the title tag and the other with the body tag.

    I am ignorant as to the requirements of the Task FORCE, and so you need anew XSLT to perform on the exported XML file that would comply with the standard. I do not know because I am not aware of it. This part, if necessary I would do in an xml editor or a good text editor who may be able to it's needs.

    Mike

  • Import &amp; Export XML

    Just need to clarity and guidance.

    I have a form created in LC Designer ES2 that "ideally" needs to export its data to an XML file to be saved. I did it in the 'form' opening in Acrobat Pro, however, it would be great if the data can be exported using player - with a script of a button in the form

    I'm confused if this is possible. In my view, that it can be. So, if this is the case, I will need a few details on how to do it. I tried a number of things without success.

    I need:

    • sample script for the button?
    • settings in the properties of form LC?
    • understanding of the PDF "certified", if this is necessary and how to install - does the same thing to extend the functionality of player?
    • Can it be tested in LC Designer, or player features must be extended and tested outside the LC Designer?

    Secondly, can the XML be imported into a form to pre-fill some fields (again, using the reader)? The reason is that there will be no doubt (fields added, etc.) changes to the form, and it would be nice to be able to use the existing data for the "legacy" fields, so users need only update the fields renaining.

    With respect to licensing, there are less than 500 of them, so I'd like to avoid making a huge investment in LiveCycle Enterprise software, if this is not necessary. It would be much more that I need at the moment and I'm not bold enough to learn how to use it.

    If it is not possible to export directly to the client computer, is there a different way for the reader to make (for example using a server)?

    Thank you

    Stephen

    Hello

    The only way to import and export XML in Reader data is if the form is Reader enabled using LC Reader Extensions ES2 beforehand.

    Reader allowing the form with Acrobat will not work.

    Here is a summary:

    You can read more here: http://bit.ly/gigxno.

    Hope that helps,

    Niall

    Ensure the dynamics

  • Beginner XML questions

    Hello

    First post on the forums in a long time and the first here altogether. I hope it's okay jump in.

    I have a little experience of FM not structured for several years ago and use Ventura (13 years) to my company's books (long directories - 3 000 + / volume). I made some scripts in Ventura have so little experience in programming.

    We are looking to switch to XML rather than text files tagged Ventura can import because of its lack of support, problems, perhaps due to Win7, and the effort required to maintain files to import. I downloaded the trial FM 11 and have been experimenting a bit with XML back and forth and also import what we already have in XML. If a bit I'm sure very simple questions. and thanks in advance:

    I was going through the tutorials from Adobe and everything I can find online. It seem not to be well reviewed books on Amazon that deal with structured FM 9-11. Some that look promising for XML are about 10 years old - I think not that our needs are sharp, so should I get something this old, or stay with most recent although we complain? Any recommendations? If I can get the hang of it with something that is not specific FM will be really difficult to adapt this knowledge to the FM band?

    I find EDD, DTD and schema to be rather confusing. Someone explain the difference in simple terms or direct me to a video, etc.? Assuming that I start with an XML file that is created in one other purpose, not meant to be FM, need more than one of them? Do you do first?

    Ventura if I want to have two separate data elements (off the coast of the database) on the same line, say a left-aligned with the other right aligned, programmers put both with a tab, and that is controlled by a tag paragraph in Ventura with a tab on the right. With XML, if I understand it correctly, you wouldn't do that in the XML file - I'm probably not ready to understand the method, I just want to know if this is possible without doing something like having paragraph of second properties point to have no line breaks. If so, where that would be appropriate, ESD, DTD, etc.?

    XML in FM can include inline graphics? What about an Excel chart?

    Thank you

    Gary

    Hi Gary,.

    a lot of questions, he

    But lets start with the first things first.

    For your general understanding: XML separates basically content layout. You can add metadata to the content by adding attributes to some semantic purposes or to include information for your page layout process (or any information that you feel should be here).

    XML is essentially made up of elements, attributes and entities. Those that are defined in a DTD or a schema. ESD does the same for the management of content structured in FM. To stuff FM back and forth into XML and vice versa, you will need both a DSP for handling in FM and the DTD or schema of XML processing. Basically the two similar at first, but ESD will be also some layout information included as well as routines to facilitate the production of structured content (so called context rules).

    The translation between XML and FM requires also some reading/writing-rules governing the specific elements of the FM and values to create "correct" XML files

    Your layout (-> master pages), styles of paragraph and character, etc. pre-set styles of paintings, graphics and so on, are stored in a template file, which is used when you import an XML file to the FM band.

    These are the basics that you are handling.

    Everything that affects page layout will be on the side of the FM of things (if you use it to publish stuff).

    Everything that affects the structure is mainly done on the DTD and the reading/writing-rules side (but has an equivalent in ESD).

    So, for your search:

    XML books who have 10 years maybe not the best choice, because they will probably have a lot of references to SGML, which doesn't help much. But some who are about 5 years old will do just fine - not much changed on the side of XML (unless you decide to use the XML schema).

    For FM11, it is preferable to use guides for FM9 (those are the most comprehensive) and use this forum.

    If you insured the most, I would say to book some consultant for training on the creation of ESD. This will help avoid a lot of frustration later and pays really fast off the coast.

    It can also provide answers to specific questions such as the ones you posted above (Yes, graphics work).

    Once your done with that, you need to do a search, if one of the XML flavors already established already meet your needs in general (I'm talking about DITA, DocBook, S1000D and others) or if you want to develop your own structure (which needs a mayor of brainstorming, but could better meet your needs).

    Soon Alex

  • Changed to aaa when exporting xml doc in AIR application XML namespaces

    When I export my xml in a Format of TimedText leave an AIR application, that I'm working on xml namespaces change to aaa instead of xml... anyone knows how to fix this or prevents the application to change arbitrarily.

    Another question, for some reason any code I have, as to the format now, won't let me not use the appendChild method to add my cuepoints to the FTT xml document.

    Any advice would be greatly appreciated.  My code is below:

    Create final XML

    private void submit (): void

    {

    If (boolVideoSelected is true)

    {

    xmlData =

    " < tt XML: lang ="fr"xmlns =" http://www.w3.org/2006/04/ttaf1 "xmlns:tts =" " http://www.w3.org/2006/04/ttaf1#styling ">

    < head >

    < style >

    < style id = '1' tts:textAlign = 'center' tts:backgroundColor = 'gray' tts:color = 'white' tts:fontSize = '14' 'product' = tts:fontFamily / >

    < / style >

    < / head >

    < body >

    < div XML: lang = "fr" style = "1" >

    < / div >

    < / body >

    < /tt >;

    var cue: XML;

    var strTempDuration:String;

    var strTempTime:String;

    var strTempContent:String;

    vidVideo.pause (); Break video

    btnPlay.label = ' > ';

    for (var i: int = 0; i < stateArray.length; i ++) //Convert stateArray in XML

    {

    strTempDuration = stateArray [i].duration.toString ();

    strTempTime = stateArray [i].time.toString ();

    strTempContent = stateArray [i].content.toString ();

    cue = < p starts hard = {strTempTime} = {strTempDuration} > //Generate {strTempContent} < /p > cue

    trace (XMLDATA);

    xmlData.body.div.appendChild (cue); Insert markers in XML in order

    }

    xmlFile = new file;

    xmlFile.browseForSave ("save the XML file"); Window open for save location

    Event listeners


    xmlFile.addEventListener (Event.SELECT, xmlFileSelectHandler);
    xmlFile.addEventListener (IOErrorEvent.IO_ERROR, ioHandler);
    xmlFile.addEventListener (SecurityErrorEvent.SECURITY_ERROR, securityHandler);
    }
    }

    private void xmlFileSelectHandler(e:Event):void {}
    var newFile:File = e.target as file;

    If (! newFile.extension | newFile.extension! = "xml") //Check .xml was included in the user's input
    {
    newFile.nativePath += ".xml"; Add .xml file name, if it was not included
    }

    var stream: FileStream = new FileStream();
    Stream.Open (newFile, FileMode.WRITE);
    stream.writeUTFBytes (xmlData.toString ()); Write the XML string in XML file
    Stream.Close ();
    }

    xmlData = http://www.w3.org/2006/04/ttaf1.

    xmlns: XML = ""http://www.w3.org/XML/1998/namespace"

    xmlns:TTS ="http://www.w3.org/2006/04/ttaf1#styling" >. "

  • Export XML to the local path. Compliance check

    Some questions that we are wrapping up development on our form.

    First of all, I'm trying to create a button that will save the XML file that is exported to a local path, IE, c:\\windows\desktop

    I found this: xfa.data.saveXML (); which I put in the click event, but how can I say to save in a way?  (and while we're at it, specify a file name)

    Alternatively I tried to use the built in buttons-email, HTTP, but I was unable to find documentation on how to build the code.  I know pretty much anything can be added to the XML source, but I need is a pointer to this that the best way to handle this and how to build the instructions to save the path.  It is for our directors extract XML file and import it in their database.

    Second question: what is the best way to let a user perform a completeness check?  I like how the default email send button checks all fields set to "the user has entered required" and I would like to configure a button that similarly does a completeness check and then warns the user that there are fields to the left or confirms that the form is complete, perhaps with instructions on what to do next.  What is the best way to handle this?  The presentation plan is the user save the pdf locally and then manually upload it to a server that requires a connection, then administrators will export the XML file and import it into a database.

    Thanks for your understanding...

    1. you cannot include a path or file name in this statement (unless you certify the document which has problems of its own). The user must select the path and name (for security reasons). By default, it will save the data in an XDP format. You can switch to another parameter that saves the file with the extension xml instead.

    xfa.host.exportData ("", false)

    2. just add a normal button and add code to the click event that will run all the validations for the form. Assuming that the root node of your form form1:

    Form1.execValidation)

    This will return a true or false value depending on whether there are validation errors or not. So you could combine this with an if statement:

    If (form1.execValidate () == true) {}

    code to cause the shipment arrives

    submitButtonName.execEvent ("click")

    } else {}

    App.Alert ("there are validation errors in your form!")

    }

    Hide you the real send in this case button if the user could not bypass your code.

    Hope this helps

    Paul

  • Release of FrameMaker XML question

    I have a problem with an attribute not be exported in XML format by FM8.

    Here is the excerpt of the DTD:

    <! ELEMENT std.table.header (+ std.table.row) >
    <! ATTLIST std.table.header
    CDATA #REQUIRED passes
    rowsep CDATA '1 '.
    >

    The first question I had was "collar" does not present as an attribute in the structured view. I solved it in question (with the help of MarttiP) by adding it to the EDD as shown below:

    Element (container): std.table.header
    General rule: std.table.row +.
    List of attributes
    Name: whole passes required

    Now I'll have is on the export of XML, the "collar" attribute is not exported and I get an error "required attribute"cols"unplanned". Any suggestions?

    Mike

    Add this rule to write:

    element 'std.table.header '.
    {
    is part of fm;
    "collar" attribute is the attribute of fm;
    }

    This replaces the built-in handling for the cols attribute without affecting the CALS tables.

    Ian

  • Export xml attribute values

    Dear java expert,

    I was trying to export script attribute value to the .txt format. I have attached the screenshot for your reference.  Please me friends suggestion.

    Screen Shot 2016-03-26 at 11.58.38 AM.png

    I use the system: Mac, indesign Cs6.

    Thanks in advance to all

    Dear friends,

    I share my java coding below, based on this question.

    myDocument var = app.activeDocument;

    Var log = new File(app.activeDocument.filePath+"/log.html");

    log. Encoding = "UTF-8";

    log. Open ("w");

    log.writeln(")

    ");

    log.writeln(")

    ");

    FindEmail (myDocument);

    log.writeln(")

    Text (in the template)Found (Href tag)
    ");

    log. Close();

    Alert ("completed");

    function FindEmail (elm)

    {

    for (var i = 0; i)< elm.xmlelements.length;="">

    {

    XMLelementName = elm.xmlElements [i].markupTag.name.toString ();

    if(XMLelementName=="img")

    {

    for (j = 0; j

    {

    var cc = elm.xmlElements [i] .silence

    Alert (CC);

    var aa = elm.xmlElements [i] .xmlAttributes [j] .name

    if(AA=="src")

    {

    alert (aa);

    var BB = elm.xmlElements [i] .xmlAttributes [j] .value;

    log.writeln(")« + cc + »' + elm.xmlElements [i] .xmlAttributes [j] .value + ".");

    alert (cc + ' ~ ~ ' + aa + "~ ~" + bb);

    }

    }

    }

    FindEmail (elm.xmlElements [i]);

    }

    }

    Thank you

  • Export XML only

    Is it possible... ? If not should be large.

    Hi Mendhoza,

    I think that there is no specific option like "Export to XML" in the first Clip. However, if you choose "Send to Premiere Pro", an XML file will be created under Creative Cloud Files > AdobePremiereClipExport folder on your computer or Adobe Creative active Cloud

    I hope this helps.

    Regalo

  • data export XML from Adobe Muse

    Hello

    A customer of our company works with Dreamweaver and wants to change the layout of the site and add some features. I like to think using Adobe Muse because its easy. But he would like to share some detail information on the site at the other site of the retail by using XML. is this possible in Adobe Muse?

    Hello

    Unfortunately, there is not a way to export in XML format. Muse allows you to export as html only

  • 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 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

  • Exporter .xml workflow - advice needed

    Hi all

    I use Bridge CS6 /Camera Raw (win7 64 bit) to import, set and export aerial imagery for various deliverables clients. I have included using PS CS6 via the bridge to create my final exported files. So far, everything works fine.

    Because it is an 'interim' (used to create something else) step overhead in terms of local storage and archiving becomes too high (1000's of large files) - we need save storage space. So, asked me if it is possible to back up only the setting for each image parameters, I created, so we are not trying to save terabytes of temporary images and still have the ability to create the same exact imagery some time in the future from archived original files and my settings saved.

    I said I can do this, because I sometimes saved a parameter unique .xml in a project such as a seed for other work adjustment. My problem is that I can't understand guidelines to help Bridge to get there. I don't know if it's just me or the convoluted wording of aid is, but here's what I do:

    For all files in directory (all CR by applying adjustments) x I need to save the .xml files each adjustment for these images. This setting export can go to the same directory x or I can direct the app (bridge or CR) to save to a network archive location.

    This should be a simple thing to do. I think I'm too stupid to understand it on my own. Any help will be greatly appreciated!

    PS-I'm a link that the Forum of bridge too because I do not know where I could get my answer...

    Thanks Mike, I think that now I have a script that will restore to their original files xmp data.

    Place the original files and the xmp files in the same folder and run this script on the Tools menu, after it has been installed.

    #target bridge
       if( BridgeTalk.appName == "bridge" ) {
    xmpRestore = MenuElement.create("command", "Restore TIF xmp data", "at the end of Tools","xmpRes");
    }
    xmpRestore.onSelect = function () {
    app.document.deselectAll();
    var sels =app.document.getSelection("xmp");
    for(var a in sels){
    var sourceFile = File(sels[a].spec);
    var destFile = File(sourceFile.toString().replace(/xmp$/i,"tif"));
    if(!destFile.exists) continue;
    updateMetaData(sourceFile,destFile);
        }
    }
    function updateMetaData(sourceFile,destFile){
    if (ExternalObject.AdobeXMPScript == undefined)  ExternalObject.AdobeXMPScript = new ExternalObject("lib:AdobeXMPScript");
    sourceFile =File(sourceFile);
    sourceFile.open('r');
    sourceFile.encoding = "UTF8";
    sourceFile.lineFeed = "unix";
    sourceFile.open("r", "TEXT", "????");
    var xmpStr = sourceFile.read();
    sourceFile.close();
    var source = new XMPMeta( xmpStr );
    destFile = new Thumbnail(File(destFile));
    var md = sourceFile.synchronousMetadata;
    var md2 = destFile.synchronousMetadata;
    var dest = new XMPMeta( md2.serialize() );
    XMPUtils.removeProperties(dest,XMPConst.NS_CAMERA_RAW, "", XMPConst.REMOVE_ALL_PROPERTIES);
    try{
    copySchema( source, dest,XMPConst.NS_CAMERA_RAW,[]);
    var updatedPacket = dest.serialize(XMPConst.SERIALIZE_OMIT_PACKET_WRAPPER | XMPConst.SERIALIZE_USE_COMPACT_FORMAT);
    destFile.metadata = new Metadata(updatedPacket);
    app.document.refresh();
    }catch(e){alert(e+" "+e.line);}
    }
    function copySchema( source, dest, namespace, omitProps ) {
     var propIter = source.iterator(XMPConst.ITERATOR_JUST_CHILDREN | XMPConst.ITERATOR_JUST_LEAF_NAME, namespace, "" );
     var prop = propIter.next();
     var prefix = XMPMeta.getNamespacePrefix( namespace );
     while(prop) {
      var name = prop.path.substring( prefix.length );
       if(omitProps != undefined) var copy = !contains( omitProps, name);
      if( copy ) {
                try{
       XMPUtils.duplicateSubtree( source, dest, namespace, prop.path,namespace, prop.path, 0 );
                }catch(e){}
      }
      prop = propIter.next();
     }
    }
    function contains( arr, member ){
     var r = false;
     for( var i = 0; i < arr.length &! r; ++i  ) {
      r = arr[i] == member;
     }
     return r;
    }
    

Maybe you are looking for

  • Color LaserJet MFP M477fdn Pro: M477 Software Installation fails at 99%

    Like others who have posted here, I have been unable to get the printer software to complete the installation. The printer is a Color LaserJet Pro MFP M477fdn, 3 months. I'm trying to install the software on a new workstation HP Z240 performing Windo

  • Need drivers for Tecra 7500

    I completely need all drivers for tecra 7500 DVD if someone has it please tell me where I get them because there is nothing on the official website.

  • error code 800719E4

    try to install the updates that came out today and most of them couldn't, I had this 800719E4 IM on W7 64-bit home premium

  • Want 4524: hp envy 4524 DNS Gateway problem

    Hello eveyone!  Please help technically challenged, very frustrated new Member! I want to HP 4524, but I have enormous problems trying to keep connected to instant ink, and I am now getting the message that my impression is off unless I connect. Prev

  • Setting permissions to manage the Session side Analytics for the role of BIAuthor

    Hello worldI'm giving BIAUTHOR roles permissions to manage the session side analytics by going to the Administartion-> manage-> privilegesI added BIAUTHOR to the FOLLOWING times and Session management.now BIAUTHOR role users are able to see administr