Rename the XML via Javascript tags

Currently, I have a script that detects some paragraph styles and renames them. For example:

var myDoc = app.activeDocument;

var myStyle = myDoc.paragraphStyles.itemByName ("bar SIDE B HEAD");
myStyle.name = "SIDEBAR HEAD of NOTE"

I would like to do the same thing with some names of XML tags, preferably as part of the same script. I'm sure it's pretty easy, but for some reason, I can't find any info on how to tell the XML tags!

I looked in the tutorial Scripting InDesign CS4 and Adobe Introduction to scripting, but at this point, I feel I'm wasting my time on a simple problem. Anyone can help out by an amateur?

Thanks in advance,

Matt

Yes you are right Matt, it is very easy.

var myDoc = app.activeDocument;
var myTag = myDoc.xmlTags.itemByName("Old");
myTag.name = "New";

Shonky

Tags: InDesign

Similar Questions

  • How can I trigger "Add tags to the document" via JavaScript?

    How can I trigger "Add tags to the document" via JavaScript? I am trying to add this fuction ITextSharp if when the user opens the pdf it could mark the document once it is opened automatically

    Is not possible.

  • How to enable and disable, copy or rename the rules via the groovy script?

    A client, we received this question:

    How to enable and disable, copy or rename the rules via the groovy script?

    Foglight 5.7.5

    Hello

    There is this example of support KB

    support.Software.Dell.com/.../99059

    and there is also documentation of Service layer of the administration on the RuleService console.

    Best regards

    Golan

  • Hanging in the updating of the IRR via Javascript

    Apex: 4.2.2.00.11

    I have an IRR that has a checkbox column. Checking the box either includes or excludes this specific row when the page is sent.

    I add a 'global' checkbox in the column header of the IRR report for this column. It controls, checks all the boxes in this column to SORT. Unchecking the contrary fact. The "global" checkbox is a toggle power switch of the checkboxes in the SORT.

    So far so good. Works as expected.

    However, during the updating of the IRR (due to changes of order sorting, additional filters added, etc.), it redraws the region of apexir_DATA_PANEL - and with it, he repaints the table headers too. And this removes the "global" checkbox in the column header. (a page refresh is necessary to return to the "global" checkbox)

    I want to do is add a function call to the Manager of refreshment of the IRR - the last call to the handler is the custom function that adds the "global" checkbox in the column header. Something like:

    . Bind $(«#IRR_OBJECT_HERE») ("onchange", function() {}
    AddGlobalToggle(); Added the check box of the column header if there is
    });

    I tried many references to object (unless the IRR) and managers of events, but without success.

    Is it possible to connect refresh report string of the IRR via Javascript?

    Billy

    Requires as not simply a dynamic action after Refresh on the IR region?

  • Is it possible to create a new file using the XML via java Script?

    Hello everyone,

    Is it possible to create a new file using the XML via java Script

    • I have xml information that need to use for file name, size.
    • Based on xml file we can create a new file in InDesign with java script?
    • Kindly help me if anyone has an idea about this.

    I use InDesign CS4 on windows 7

    Sample file is attached below.

    Kind regards

    Siva

    <UpdateAd>
    <AdId>3403699</AdId>
    <Width type="mm">91,79</Width>
    <Height type="mm">80,00</Height>
    <ProductionCategory>4</ProductionCategory>
    <BookedCCIColors>sw</BookedCCIColors>
    <WorkFlowType>PDF</WorkFlowType>
    <CustomerNumber>652224</CustomerNumber>
    <CustName1>Erich Prang</CustName1>
    <Description/>
    <Description2>R</Description2>
    <UpdateIns>
    <Titel>RHZ</Titel>
    <Publication>B2</Publication>
    <RunDate>26-07-2011</RunDate>
    <Zone>H30</Zone>
    <KDDATEN>nein</KDDATEN>
    </UpdateIns>
    <WorkflowStep>IR</WorkflowStep>
    <Proof>No</Proof>
    </UpdateAd>
    
    

    xml.png

    Try this:

    var f =File.openDialog ();
    f.open('r');
    var xml = new XML(f.read());
    f.close();
    
    var myDocument = app.documents.add();
    myDocument.documentPreferences.pageHeight = xml..Height+"mm";
    myDocument.documentPreferences.pageWidth = xml..Width+"mm";
    var rect = myDocument.pages[0].rectangles,add();
    rect.geometricBounds = myDocument.pages[0].bounds;
    rect.strokeAlignment = StrokeAlignment.INSIDE_ALIGNMENT;
    rect.strokeColor = myDocument.swatches.item("Black");
    rect.strokeWeight = 1;
    myDocument.save(File(f.path + "/" + xml..AdId + ".indd"))
    

    Substances

  • Rename the XML tags

    Dear people,

    Is there a way to search and replace all XML elements.

    Search replace xmlTags.item ("tag1") to xmlTags.item("tag2")?

    Greetings

    Ed.

    Got it!

    var myDoc = app.activeDocument;
    
    var myElement = myDoc.xmlElements.item(0);
    var myElements = myElement.evaluateXPathExpression("//tag1");
    
    for(var x = myElements.length -1;x>=0;x--)
    
    myElements[x].markupTag.name =("tag2");
    

    Thank you very much for the help!

    As you can see Im yet to try to understand the operation of Javascript.

    Once again thank you.

  • Rename the bookmarks using JavaScript?

    Hi all

    I searched the internet and Adobe forums and I can't find an answer to this. Is it possible to rename a bookmark using JavaScript? I want to run a batch renaming on my favorites to change or replace employees of employee names. For example:

    12345678 > John Doe

    I have to do this on a large amount of files that contain a large number of employee numbers and that's why I'm looking for a JavaScript solution. Thank you for all your help.

    There are different ways you can read an external file. It can be done using an object DataObject or even util.readFileIntoStream (), if the file is not too long.

    Once the contents of the file as a string you will need to process this string, divided by lines and then divide each line to get the data you need in a usable format.

    Then, you would need browse Favorites, by comparing each element in it the values in the list of the text file and rename it if it is a match.

    If the Favorites tree is not flat (that is to say, it has bookmarks under) you must use a recursive method to traverse it.

    This isn't a simple project for a beginner...

  • How to change the "TextVariable" via javascript

    Hello

    How can I change the value of a "Custom text Variable" via javascript in indesign CS5?

    I understand that there is a 'content' that is me allotted property, but I can't understand how to set or change.

    Here's the javascript code example for reference.

    var docRef = app.activeDocument;
    
    
    for ( var i = 0; i < docRef.textVariables.length; i++ ) {
    
    
        var textVariableItem = docRef.textVariables[i];
    
    
              // Check for the type
              if (textVariableItem.variableType === VariableTypes.CUSTOM_TEXT_TYPE){
    
    
                        var variableOption = textVariableItem.variableOptions;
      
                        // This will give me the text value of the variable
                        alert("Text Variable " + i + " \n " + textVariableItem.name + "\n" + variableOption.contents);
    
    
                        // But how do I set it? 
                        // The following does not seem to work 
                        variableOption.contents = "New custom text..."; 
              }
    }
    
    // Logic behind this script
    
    // theScript()
    // is a wrapper function to provide functional scope to the entire script
    // This function is invoked at the very bottom of the file
    
    // main();
    // the main function that gathers the initial parameters and launches the dialog box
    
    // function mainDialog(docRef, selectedItems, layers, inputs)
    // A function that creates a dialog box this function is passed as a parameter to a "factory method"
    // called function sfDialogFactory(dialog)
    // which is a general purpose utility for creating dialog boxes.
    
    // The mainDialog function has a callback function that responds to the "comtinue" button and after some validation
    // makes a call to a function called
    
    // function doAction(docRef, inputs, options)
    // This is where the main behvior of the script is suppose to be defined.
    // it is designed to be called AFTER the dialog box return and is the result of the callback inside mainDialog
    // The doAction function receives objects that are parameter holders for various inputs and options that come from the
    // dialog box presented to the user
    
    function theScript() {
    ///////////////////////////////////////////////////
    // BEGIN THE SCRIPT
    //=================================================
    
    ////////////////////////////////////////////////////////////////////////////////
    // SCRIPT MAIN PROCESS
    ////////////////////////////////////////////////////////////////////////////////
    // Main Process
    // The beginning of the script starts here
    // Add main logic routine to this function
    
    // Call Main Function to get the ball rolling
    var elementsData;
    var theDocument = app.activeDocument;
    var inputGroup;
    main();
    
    function main(){
    var theSelectedItems = theDocument.selection;
    var theLayers = theDocument.layers;
    
        var myDialog = sfDialogFactory(mainDialog(theDocument, theSelectedItems), theLayers);
        var result = myDialog.show();
        if (result == 1){
            newAction();
            alert("Done");
            }
        else{
            alert("Not Done");
            }
    }
    
    ////////////////////////////////////////////////////////////////////////////////
    // SCRIPT SUPPORTING FUNCTIONS
    ////////////////////////////////////////////////////////////////////////////////
    // Supporting Functions
    // Include functions that offer partial functionality
    // These functions are called and acted upon within the mainProcess function
    function newAction(){
    
            var formData = getControlValues(inputGroup);
            var inputs = {};
            var options = {};
           // alert("callback get form data");
          // Do something with formData values here
            var cLen = formData.controls.length;
            var formValues = '';
            for (var c = 0; c < cLen; c++ )
            {
                if (formData.controls[c].name === "inputECONumber") {
                    inputs.inputECONumber = formData.controls[c].value;
                    // alert(formData.controls[c].name + " | " + formData.controls[c].value);
                }
    
                if (formData.controls[c].name === "inputDocumentName") {
                    inputs.inputDocumentName = formData.controls[c].value;
                    // alert(formData.controls[c].name + " | " + formData.controls[c].value);
                }
    
                if (formData.controls[c].name === "inputDocumentNumber") {
                    inputs.inputDocumentNumber = formData.controls[c].value;
                    // alert(formData.controls[c].name + " | " + formData.controls[c].value);
                }
    
                if (formData.controls[c].name === "inputDocumentRevision") {
                    inputs.inputDocumentRevision = formData.controls[c].value;
                    // alert(formData.controls[c].name + " | " + formData.controls[c].value);
                }
    
                if (formData.controls[c].name === "inputDocumentType") {
                    inputs.inputDocumentType = formData.controls[c].value;
                    // alert(formData.controls[c].name + " | " + formData.controls[c].value);
                }
            }//End FOR
        doAction(theDocument, inputs, options);
        }
    
    function mainDialog(docRef, selectedItems, layers, inputs) {
    
    // Main Dialog
    // alert("Main Dialog: " + docRef.name);
    
    if ( docRef === undefined ) {
      alert("Cannot Execute, please select a document.");
    }
    
      var currentData = getMetaData();
    
      var dialogObj = {};
    
      dialogObj.groups = []; // An array of dialog groups
      dialogObj.title = "Update Meta Data";
    
      var groupLabelInfo = {};
      groupLabelInfo.title = "Edit: " + docRef.name;
    
      // Add Elements using JSON shorthand syntax
      groupLabelInfo.elements = [
        {
            "name":"labelECONumber",
            "type":"statictext",
            "value":"Engineering Change Order (ECO) Number",
            "visible":true
        },
        {
            "name":"inputECONumber",
            "type":"edittext",
            "value": currentData.inputECONumber,
            "visible":true
        },
    
        {
            "name":"documentName",
            "type":"statictext",
            "value":"Document Name",
            "visible":true
        },
        {
            "name":"inputDocumentName",
            "type":"edittext",
            "value": currentData.inputDocumentName,
            "visible":true
        },
    
        {
            "name":"documentNumber",
            "type":"statictext",
            "value":"Document Number",
            "visible":true
        },
        {
            "name":"inputDocumentNumber",
            "type":"edittext",
            "value": currentData.inputDocumentNumber,
            "visible":true
        },
    
        {
            "name":"documentRevision",
            "type":"statictext",
            "value":"Revision",
            "visible":true
        },
        {
            "name":"inputDocumentRevision",
            "type":"dropdownlist",
            "value": currentData.listRevisions,
            "visible":true,
            "selection":currentData.selectionRevision,
        },
    
        {
            "name":"documentType",
            "type":"statictext",
            "value":"Label Type",
            "visible":true
        },
        {
            "name":"inputDocumentType",
            "type":"dropdownlist",
            "value": currentData.listDocumentTypes,
            "visible":true,
            "selection":currentData.selectionDocumentType,
        },
    
      ];
    
      // Add to groups to list
      dialogObj.groups.push(groupLabelInfo);
      return dialogObj;
    }
    
    function doAction(docRef, inputs, options) {
    
    alert("doAction " + docRef.name + " \n INPUTS: \n" + inputs.reflect.properties + "\n\n OPTIONS: \n" + options.reflect.properties);
    
    // Get the current contents
    
    var fooContents = app.activeDocument.textVariables.item ('Foo').variableOptions.contents;
    var barContents = app.activeDocument.textVariables.item ('Bar').variableOptions.contents;
    
    alert("GET textVariable contents \n Foo: \n" + fooContents + "\n\n Bar: \n" + barContents);
    
    // Set/Update the contents
    // Why does this not seem to work?
    
    alert("SET textVariable contents \n Foo: \n" + inputs.inputDocumentName + "\n\n Bar: \n" + inputs.inputDocumentType);
    
    app.activeDocument.textVariables.item ('Foo').variableOptions.contents = inputs.inputDocumentName;
    app.activeDocument.textVariables.item ('Bar').variableOptions.contents = inputs.inputDocumentType;
    
    // Script does not seem to reach this point. Why?
    alert("END of doAction");
    }
    
    // A Factory function for creating dialog boxes
    
    function sfDialogFactory(dialog) {
    
        // A factory method for creating dialog screens
    
        // Dialog Window
        var d = new Window("dialog", dialog.title);
    
        // alert("Number of Inputs" + dialog.inputs.length);
        // alert("Number of Options" + dialog.options.length);
    
        var i; // counter
        var len; // length of array elements
    
        // Generate Groups
        if (dialog.groups.length > 0) {
    
            len = dialog.groups.length;
            for (i = 0; i < len; i++ )
            {
                var currentGroup = dialog.groups[i];
                inputGroup = d.add ("panel", undefined, currentGroup.title);
                    inputGroup.alignChildren = ["fill","fill"];
    
                if (currentGroup.elements.length > 0) {
                    // Add Elements
                    var ii;
                    var elemLen = currentGroup.elements.length;
                    for (ii = 0; ii < elemLen; ii++ )
                    {
                        var currentElement = currentGroup.elements[ii];
    
                        var el = inputGroup.add(currentElement.type, undefined, currentElement.value);
    
                        // Additional properties added for future reflection
                        el.elName = currentElement.name;
                        el.elIndex = ii;
    
                        switch(currentElement.type)
                        {
                            case "statictext":
                                el.visible = currentElement.visible;
                            break;
                            case "edittext":
                                el.visible = currentElement.visible;
                            break;
                            case "dropdownlist":
                                el.visible = currentElement.visible;
                                el.selection = currentElement.selection;
                                el.onChange = currentElement.onChange;
                            break;
                            case "checkbox":
                                el.visible = currentElement.visible;
                                el.value = currentElement.value;
                            break;
                            default:
                            throw new Error('Unknown Dialog Element Type [' + currentElement.type + ']');
                        }
    
                    }
                }
            }
        }
    
      // Buttons Group
      var buttonGroup = d.add("group");
      var bOK = buttonGroup.add("button", undefined, "Continue", {name: "ok"});
      var bCANCEL = buttonGroup.add("button", undefined, "Cancel", {name: "cancel"});
    
      return d;
    }
    function getControlValues(set) {
        elementsData = {};
        elementsData.controls = [];
        // TO DO Add more types
    
        var giLen = set.children.length;
        for (var gi = 0; gi < giLen; gi++ )
        {
            var child = set.children[gi];
            // alert(objReflection(child, "none", false));
            // alert(child.type);
            var control = {};
                control.name = child.elName;
                control.index = child.elIndex;
                control.type = child.type;
                control.visible = child.visible;
            switch(child.type)
            {
                case "statictext":
                    control.value = child.text;
                break;
                case "edittext":
                    control.value = child.text;
                break;
                case "dropdownlist":
                    control.value = child.selection.text;
                break;
                case "checkbox":
                    control.value = child.value;
                break;
                default:
                throw new Error('Unknown Dialog Element Type');
            }
            elementsData.controls.push(control);
            // alert(objReflection(control, "none", false));
        }
        return elementsData;
    }
    function getMetaData() {
    // Return a data structure that contains meta data from the document.
    
        var dataObject = {};
    
         // Default arrays
         dataObject.listRevisions = generateRangeOfNumbers ("r", 1, 100);
         dataObject.listDesignComps = generateRangeOfNumbers ("Comp_", 1, 100);
         dataObject.listDocumentTypes = [
                         "Datasheet",
                         "Manual",
                         "Tech Guide",
                         "Other"
                     ];
    
         // Set Sensible Default Values for the UI Form
         if (!dataObject.inputECONumber) {
             dataObject.inputECONumber = "###ECO###";
         }
    
         if (!dataObject.inputDocumentName) {
             dataObject.inputDocumentName = "Document Name";
         }
    
         if (!dataObject.inputDocumentNumber) {
             dataObject.inputDocumentNumber = "048-xxx-30";
         }
    
         if (!dataObject.inputDocumentRevision) {
             dataObject.inputDocumentRevision = "r01";
         }
    
         if (!dataObject.inputDocumentType) {
             dataObject.inputDocumentType = "Datasheet";
         }
    
         return dataObject;
    
    }
    
    function generateRangeOfNumbers (prefix, start, end) {
        // This function generates an array of sequential numbers within a range
        // prefix = string to append to beginning of each element
        // start = the beginning of the range
        // end = the end of the range
        // length = overall number of cycles to loop through, start and end must fall within this value
    
        var output = [];
    
        for ( var i = start; i <= end; i++ )
        {
            if (i < 10) {
                // Add a leading zero
                output.push(prefix + "0" + i);
            }
            else {
                output.push(prefix + i);
            }
        }
    
        return output;
    }
    
    //=================================================
    // END THE SCRIPT
    ///////////////////////////////////////////////////
    }
    
    theScript();
    

    I modified your code shortly. He works for me here. Check it out...

    Thank you

    Green4ever

  • the value of the xml column type tag data BLOB

    Hello

    I'm on Oracle 10 g.
    I have a table that has a column as BLOB data type and contains XML data. I need to select specific table records according to a unique tag value of the xml data in the BLOB column. For example:
    The table say Test has two columns: id (integer) and MESG (BLOB)
    The xml in the MESG column message is assumed:
    < message >
    < > 123456 contactphone < / contactphone >
    < contactname > ABCD < / contactname >
    < amount > 9999 < / amount >
    < / message >

    I need to extract only the records where the amount is = 9999

    Help, please. Thanks in advance.

    user12850338 wrote:
    Hi BluShadow,
    Thanks for your reply.
    I confess that if we would have used type xml in the first place, things would have been easier.
    For example, I mentioned three tags in the xml file, but my real data contains some hundreds of tags... :( So it will always be a good idea with this approach.

    Yes, it's a good approach. Oracle has provided built-in XML functionality to manage XML, then of course it's the best thing to use. :)

    For example, you can easily deal with namespaces and repeating nested groups and flatten the data in a table structure. for example

    SQL> ed
    Wrote file afiedt.buf
    
      1  WITH t as (select XMLTYPE('
      2  
      3    
      4      1
      5      1800
      6      
      7        1
      8        28
      9        6
     10        12
     11      
     12      
     13        5
     14        19
     15        1
     16        90
     17      
     18    
     19    
     20      2
     21      2400
     22      
     23        3
     24        14
     25        7
     26        5
     27      
     28    
     29  ') as xml from dual)
     30  -- END OF TEST DATA
     31  select x.country, x.point, y.user_id, y.target, y.state, y.task
     32  from t
     33      ,XMLTABLE(XMLNAMESPACES('http://www.w3.org' as "aa"),
     34                '/RECSET/aa:REC'
     35                PASSING t.xml
     36                COLUMNS country NUMBER PATH '/aa:REC/aa:COUNTRY'
     37                       ,point   NUMBER PATH '/aa:REC/aa:POINT'
     38                       ,user_info XMLTYPE PATH '/aa:REC/*'
     39               ) x
     40      ,XMLTABLE(XMLNAMESPACES('http://www.w3.org' as "aa"),
     41                '/aa:USER_INFO'
     42                PASSING x.user_info
     43                COLUMNS user_id NUMBER PATH '/aa:USER_INFO/aa:USER_ID'
     44                       ,target  NUMBER PATH '/aa:USER_INFO/aa:TARGET'
     45                       ,state   NUMBER PATH '/aa:USER_INFO/aa:STATE'
     46                       ,task    NUMBER PATH '/aa:USER_INFO/aa:TASK'
     47*              ) y
    SQL> /
    
       COUNTRY      POINT    USER_ID     TARGET      STATE       TASK
    ---------- ---------- ---------- ---------- ---------- ----------
             1       1800          1         28          6         12
             1       1800          5         19          1         90
             2       2400          3         14          7          5
    
    SQL>
    
  • In the XML document HTML tags

    I have an application that loads an XML file information and displays in a dynamic text box. Which works very well. Now, I want to add tags HTML of the information contained in the XML file for the dynamic text box will format. If I add html right:

    < Answer1 > Earth, < b > < /b > air, fire and water. < / Answer1 >

    I get a null value in the text box. If I encode

    < Answer1 > Earth, & gt; b & lt; Air & gt; / & lt; fire and water. < / Answer1 >

    It then displays

    Earth, the < b > < /b > air, fire and water.

    No help on how to code html embedded in an XML document, so a dynamic text box using the html code?

    Thank you.

    Just use CDATA tags around your HTML values, for example:

    air, fire and water.]] >

    HTH.

  • Rename the layer, group, Javascript object

    Hey guys,.

    I am writing a script which renames a layer and the group within the layer, then an object in the layer (but is not part of the Group) and have it executed in a loop.

    This is what I have so far, change of group name does not work.

    #target Illustrator
    
    var doc = app.activeDocument;
    
    idLayers(doc)//IRename layers
    idGroups(doc)//Rename groups
    
    function idLayers(doc){
        for(i=0;doc.layers.length>i;i++){
            doc.layers[i].name= 'id:GTM_Group '+(i+1)
            }
        }
    
    function idGroups(doc){
        for(i=0;doc.groups.length>i;i++){
            doc.groups[i].name= 'id:GTM_Group '+(i+1)
            }
        }
    

    I got into anthing to rename the single object still since I can not even rename it group work. I suspect that the new group name section does not work because I'm either using the incorrect syntax or a command that is not valid. Any ideas?

    (Attention to groups hidden within the transparent traces or other groups because it will find and rename these groups as well.

    to avoid dealing with groups (or objects) within the groups, not loop through all elements in the document, reference your articles by layers

    #target Illustrator
    
    var doc = app.activeDocument;
    
    idLayers(doc); // Rename layers
    
    function idLayers(doc){
        for(i=0;doc.layers.length>i;i++){
            var currentLayer = doc.layers[i];
            currentLayer.name= 'id:GTM_Layer '+(i+1);
    
            idGroups(currentLayer); // Rename groups
            idPathItems(currentLayer); // path items
        }
    }
    
    function idGroups(layer){
        for(j=0;layer.groupItems.length>j;j++){
            layer.groupItems[j].name= 'id:GTM_Group '+(j+1)
        }
    }
    
    function idPathItems(layer){
        for(k=0;layer.pathItems.length>k;k++){
            layer.pathItems[k].name= 'id:GTM_Path '+(k+1)
        }
    }
    
  • Rename the XML attribute

    Hi all

    I want to rename the attribute in the indesign document. I found no reference in this forum.

    Here are the attribute appear in the palette of structure in the Indesign Document:

    News[@North=N01]

    And want to change the line above to:

    News[@South=N01]

    I only want to change of name not the attribute value.

    Need help.

    Thank you

    LUN

    Post edited by: designmon79

    var doc = app.activeDocument,
        elements = doc.xmlElements[0].evaluateXPathExpression("//news[@north='n01']"),
        i, l;
    
    for (i = 0, l = elements.length; i < l; i++) {
        elements[i].xmlAttributes.item("north").name = "south";
    }
    

    Jeff

  • Retrieve the XML via an HTTP request

    Hello

    What would be the most effective way to recover the large XML from Oracle (gr 11, 2) via a HTTP request?
    XML is generated during execution in a stored procedure with either XML SQL statements as
    select xmlelement("text", 'Hello world') from dual;
    or other methods as
    select DBMS_XMLGEN.GETXML ('select ''Hello world'' text from dual') from dual;
    I'm sure I'll be using embedded PL/SQL gateway as an HTTP server, and I can easily manage small XMLs that fit into a VARCHAR2 with a following procedure:
      PROCEDURE HelloWorld AS
        xml xmltype;
      BEGIN
        select xmlelement("text", 'Hello world') into xml from dual;
        owa_util.mime_header('text/xml');
        htp.print(xml.getstringval);
      END;
    Then I she would recover via http:// < hostname >: < port > / < DAD > /HelloWorld

    But I do not know how to handle large (several MB) XMLs.
    I couldn't find anything useful within OWA * or HTP packages and splitting of the CLOB in chunks of 32 K seems inefficient and a little ugly to me.
    Any suggestions?

    With respect,
    Goran

    Hi Goran,

    See this post for a similar situation, it isn't that bad to see: {message identifier: = 10619251}

    Alternatively, you can use Native database Webservice to display the result of the query, and then pull it out via the HTTP protocol.

  • Change the color of the file with Javascript tag

    I need to be able to run a script JS from Photoshop and when it is complete, change the color of the file in the Finder to indicate that he has been treated.  I want to talk about the red, orange, yellow, highlights etc., you can give the files in the Finder.

    I know how to change these file color in Applescript.  But I can't understand how to start the process of JS by operating inside Photoshop.

    So I was curious to know if there was:

    A. a way to run an AppleScript, JavaScript

    or

    B. a way to set a property of a JS such as the Finder file it would interpret in a colour highlight?

    Any ideas?

    Thank you

    "osascript... whatever" = osascript-e ' Tell application "Finder" SETTING ((fichier POSIX "' + filePath +" ") as alias label index) at 4' If you use objects fsName (POSIX path) files

  • To hide multiple items via javascript or actions in case of different variable values - how?

    Note: I'm still Captivate 8

    The Question has 2 parts:

    (1) is there a possibility to hide (or show) of the elements via javascript instead of shares advanced? I think it would be a much faster workflow. I think of something as

    If variable1 < = 100 screenx.elemeta.hide;

    If variable1 < = 90 screenx.elemetb.hide.

    If variable1 < = 80 screenx.elemetc.hide;

    If variable1 < = 70 screenx.elemetd.hide;

    (2) if it is not possible... OK, I use advanced actions. But there is the 2nd problem: it runs only the first part of it when exporting in HTML5.

    See photo. I try to hide - or no - hide the 9 elements in case of different values in a Variable. Lets say that the value is "7". In se9 is Laura if the value is less than or equal 9 to hide the element ausw_se_10. This method works. In se8 is asket if the value is less than or equal 8 in order to hide the element ausw_se_09 - what you see in the image. This and the following mask does not work. I'm doing something wrong or is this a bug? And is there a solution?

    sc_2015_10_16_erweiterte_aktionen.jpg

    Showing and hiding are a relatively easy control if you use HTML5:

    CP. Hide ("element_name");

    If you want to hide as much as you describe, you would need a very strict naming convention and use a loop to hide items.

Maybe you are looking for