Set XML attributes to multiply items

Hello world

This is my situation. I have a document with multiple pages and multiple objects on each page.

now, I want to get the coordinates and dimensions of an object and write the data as an XML attribute.

The script should do this for each object in my document.

That's what I got so far:

function creatAtt() {}

for (var i = 0; i < app.selection.length; i ++) {}

var myObject = app.selection [i];

var myXMLobject = myObject.associatedXMLElement;

var ycoords = myObject.geometricBounds [0];

var xcoords = myObject.geometricBounds [1];

var width = myObject.geometricBounds [3] - myObject.geometricBounds [1];

var height = myObject.geometricBounds [2] - myObject.geometricBounds [0];

myXMLobject.xmlAttributes.add ("Y-coordinate", ycoords.toString () + "px");

myXMLobject.xmlAttributes.add ("X-coordinate", xcoords.toString () + "px");

myXMLobject.xmlAttributes.add ("Width", width.toString () + "px");

myXMLobject.xmlAttributes.add ('Height', height.toString () + "px");

}

}

creatAtt();

When I select an object and run the script he writes only the data for the selected object, not for all objects. Someone a tip how to fix?

Hi Sebbomatico,

Now, I remove the attributes at the beginning and after I generated. Please check this code and the snapshot.

var myDoc= app.activeDocument;
var myPages = myDoc.pages;
for (var i = 0; i < myPages.length; i++){
    var myActualPage = myPages[i].pageItems;
    for (var j = 0; j < myActualPage.length; j++){
       var myObject= myActualPage[j];
       var myXMLobject = myObject.associatedXMLElement;
       var ycoords= myObject.geometricBounds[0];
       var xcoords= myObject.geometricBounds[1];
       var width = myObject.geometricBounds[3] - myObject.geometricBounds[1];
       var height = myObject.geometricBounds[2] - myObject.geometricBounds[0];
       try{myXMLobject.xmlAttributes.everyItem().remove();}catch(e){};
       myXMLobject.xmlAttributes.add ("Y-Koordinate", ycoords.toString() + " px");
       myXMLobject.xmlAttributes.add ("X-Koordinate", xcoords.toString() + " px");
       myXMLobject.xmlAttributes.add ("Width", width.toString() + " px");
       myXMLobject.xmlAttributes.add ("Height", height.toString() + " px");
       }
    }

Tags: InDesign

Similar Questions

  • ESD context-setting shaped based on XML attributes

    Hi all

    I have some difficulty to get my EDD to format correctly based on the XML attributes. Basically, what I would like is:

    I have a few XML:

    < root >

    < elem > example text sample text sample text sample text. < / elem >

    < elem multi = "true" > example text example text example text sample text. < / elem >

    < / root >

    For items with the multi = 'true' attribute, I want to be prefixed by a ball and with a left indent of 0.14"in order to align the text with the ball.

    • Example text sample text

    example text sample text.

    Those without the attribute are simply formatted according to the paragraph format (no prefix, 0.0 left indent ")

    Example text sample text

    example text sample text.

    My EDD looks like this:

    (Container) element: elem

    General rule: < ANY >

    List of attributes

    Name: multi String

    Rules of prefix

    If the context is: [multi = 'true']

    Prefix: •

    Text format rules

    Paragraph element format: element

    If the context is: [multi = 'true']

    Basic properties

    Dashes

    Withdrawal left: 0.14 "

    After importing my XML, the prefix part works perfectly. No problem.

    However, the left based on the context does not work at all - all items inherit only the removal of paragraph (0.0 "). So it ends up looking like this:

    • Example text sample text

    example text sample text.

    I can't understand this. No formatting in ESD does not replace the formats specified paragraph or something?

    Any help would be greatly appreciated.

    Thank you
    Carl

    Please do not take into account the incomplete answer, it seems to me having posted. What I started to say is:

    Carl,

    Format of the item rules override formatting that it inherits from its parent, as well as modalities parentElement must not interfere with those that you specify for prim.

    I don't see the problem, and without actually opening the file in FM, it is difficult for me to guess what might be wrong.  A number of things that I do are:

    (1) set another property in the rule, for example, to set the font size to 70pt and changes the left indent. A change in font size will confirm that the rule was actually fired.

    (2) inspect the left indent in paragraph Designer. Maybe you have set it to 0.14pt instead of 0.14 to?

    -Lynne

  • XML attribute

    Someone at - it an example of the XML of LabVIEW (not LabVIEW diagram) parser to create/attach an attribute?  It doesn't seem to be an example in LV 8.6 using the Create/Get/Set methods attribute, and I've been fiddling with it for several hours without success.

    What the example attached?

  • How to normalize/linearize whitspace in XML attributes?

    Hello

    I have data in a CLOB column I need to appeal to an XML attribute. The data may contain CR, LF and tabs - that the XML must be preserve way standardized/linearized (that is to say using & #10; & #13; etc.)

    I tried using XMLROOT - it deletes the line a total break.

    I tried to use XMLSERIALIZE - when finished with clause VERSION it also suppresses the newline, when without the VERSION, it keeps the jump line but not standardized.

    Do not use these preserves the jump line - but not standardized.

    Is there a bed in order to standardize XML - or should I use replace nested?

    Examples below.

    Thanks in advance.

    SQL> set long 20000
    SQL> set lines 1000
    SQL> set pages 1000
    SQL> select * from v$version
    
    
    BANNER                                                                          
    --------------------------------------------------------------------------------
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production    
    PL/SQL Release 11.2.0.3.0 - Production                                          
    CORE 11.2.0.3.0 Production                                                      
    TNS for Linux: Version 11.2.0.3.0 - Production                                  
    NLSRTL Version 11.2.0.3.0 - Production                                          
    
    
    5 rows selected.
    SQL> -- as XMLTYPE, newline (chr(10)) is preserved, but not normalized
    SQL> select XMLELEMENT("A",
            XMLATTRIBUTES(1 as ID, 2 ||chr(10)||3 as "TXT")
                     )
    from dual
    
    
    XMLELEMENT("A",XMLATTRIBUTES(1ASID,2||CHR(10)||3AS"TXT"))
    ---------------------------------------------------------
    <A ID="1" TXT="2                                         
    3"></A>                                                  
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            
    1 row selected.
    SQL> -- as CLOB, newline (chr(10)) is preserved, but not normalized
    SQL> select XMLELEMENT("A",
            XMLATTRIBUTES(1 as ID, 2 ||chr(10)||3 as "TXT")
                     ).getclobval()
    from dual
    
    
    XMLELEMENT("A",XMLATTRIBUTES(1ASID,2||CHR(10)||3AS"TXT")).GETCLOBVAL()
    ----------------------------------------------------------------------
    <A ID="1" TXT="2                                                      
    3"></A>                                                               
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            
    1 row selected.
    SQL> -- with XMLROOT - newline is removed
    SQL> select XMLROOT(
            XMLELEMENT("A",
             XMLATTRIBUTES(1 as ID, 2 ||chr(10)||3 as "TXT")
                      ),
                   VERSION '1.0')
    from dual
    
    
    XMLROOT(XMLELEMENT("A",XMLATTRIBUTES(1ASID,2||CHR(10)||3AS"TXT")),VERSION'1.0')
    -------------------------------------------------------------------------------
    <?xml version="1.0"?>                                                          
    <A ID="1" TXT="2 3"/>                                                          
                                                                                   
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            
    1 row selected.
    SQL> --with XMLSERIALIZE without VERSION clause - newline is preserved but not normalized
    SQL> select XMLSERIALIZE(DOCUMENT
            XMLELEMENT("A",
             XMLATTRIBUTES(1 as ID, 2 ||chr(10)||3 as "TXT")
                      )
                       )
    from dual
    
    
    XMLSERIALIZE(DOCUMENTXMLELEMENT("A",XMLATTRIBUTES(1ASID,2||CHR(10)||3AS"TXT")))
    -------------------------------------------------------------------------------
    <A ID="1" TXT="2                                                               
    3"></A>                                                                        
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            
    1 row selected.
    SQL> --with XMLSERIALIZE with VERSION clause - newline is removed
    SQL> select XMLSERIALIZE(DOCUMENT
            XMLELEMENT("A",
             XMLATTRIBUTES(1 as ID, 2 ||chr(10)||3 as "TXT")
                      )
                       VERSION '1.0')
    from dual
    
    
    XMLSERIALIZE(DOCUMENTXMLELEMENT("A",XMLATTRIBUTES(1ASID,2||CHR(10)||3AS"TXT"))VERSION'1.0')
    -------------------------------------------------------------------------------------------
    <A ID="1" TXT="2 3"/>                                                                      
    1 row selected.
    SQL> --doing replace works, but seems "un-natural" and very inefficient
    SQL> select replace(
            XMLELEMENT("A",
             XMLATTRIBUTES(1 as ID, 2 ||chr(10)||3 as "TXT")
                      ),
            chr(10),'&#10;')
    from dual
    
    
    REPLACE(XMLELEMENT("A",XMLATTRIBUTES(1ASID,2||CHR(10)||3AS"TXT")),CHR(10),'&#10;')                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      
    ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    <A ID="1" TXT="2&#10;3"></A>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            
    1 row selected.
    

    Question still pending, if anyone has another way - or knows for sure replace is the only option.

    Replaces nesting calls is probably the only option, of course, but not the way you have tried in your examples.

    Do replace it at an earlier stage, directly on the data source.

    Here's how I'd do:

    SQL> set define off
    SQL>
    SQL>
    SQL> select xmlserialize(document
      2           xmlelement("A",
      3             xmlattributes(noentityescaping
      4               1 as id
      5             , replace(
      6                 dbms_xmlgen.convert('X'||chr(10)||'Y')
      7               , chr(10)
      8               , '
    '
      9               ) as txt
     10             )
     11           )
     12           no indent
     13         )
     14  from dual ;
    
    XMLSERIALIZE(DOCUMENTXMLELEMEN
    --------------------------------------------------------------------------------
    
    

    1. use DBMS_XMLGEN. CONVERT to handle reserved characters.

    2-using REPLACE to manage a specific entity escape

    Option NOENTITYESCAPING 3 - use to keep the entity references comes to be presented

  • Unable to get XML attributes in elements with function XMLTABLE

    I cannot get attributes of an XML stored in an XMLTYPE column.  The XML uses primarily attributes rather than items with a value of tag/matching.  If I put the knot in the first argument of the function XMLTABLE, he shoots the attribute at this level.  However, when I try to retrieve the attributes of the child node, I don't get the attribute values.  I'm working on the 11.2.0.3.0 Oracle database version.

    This is the create/insert statements:

    CREATE TABLE XML_TBL_TEST

    (

    ID NUMBER,

    XMLTYPE data

    );

    INSERT INTO XML_TBL_TEST

    VALUES (1, xmltype ("< user >

    < username = "Name1" >

    <>projects

    < Project = '100' QId OpId = PName "101" = "PName1" >

    < group >

    < group GName = "GName1" >

    elements <>

    < point OName = "OName1" Type = "Type1" >

    < ops >

    < op PType = material 'PType1' = 'Mat1"series = PStyle"Series1"="PStyle1">

    < options >

    < name of option = "Name1" Value = "V1" / >

    < name of option = "Name2" Value = "V2" / >

    < name of option = "Name3" Value = "V3" / >

    < / options >

    < /op >

    < op PType = material 'PType2' = 'Mat2"series = PStyle"Series2"="PStyle2">

    < options >

    < option Name = "Conjoint4" Value = "V4" / >

    < name of option = "Name5" Value = "V5" / >

    < option Name = "Name6" Value = "V6" / >

    < / options >

    < /op >

    < / ops >

    < / point >

    < point OName = "OName2" Type = "Type2" >

    < / point >

    < / object >

    < / Group >

    < group GName = "GName2" >

    < point OName = "OName3" Type = "Type3" >

    < / point >

    < / Group >

    < / group >

    < / project >

    < OpId project = "200" QId = "201" PName = "PName2" >

    < / project >

    < / project >

    < / user >

    < username = "Name2" >

    < / user >

    < username = "Name3" >

    < / user >

    ((< / user > '));

    The query below will draw the Name attribute in the element of the user but not the OpId, QId and PName attributes on the child of the Project element.

    SELECT x.*

    OF XML_TBL_TEST t.

    XMLTABLE (-with xmlnamespaces ('http://www.w3.org/2001/XMLSchema-instance' as "xsi"), )

    "/ Users/user.

    PASSAGE t.data

    COLUMNS - ID FOR ORDINALITE 'ID,' NUMBER

    Name VARCHAR2 (30) PATH "@Name."

    PATH of VARCHAR2 (30) PName ' / Projects/Project/@PName',

    QId NUMBER PATH ' / Users/User/Projects/Project/@QId' by DEFAULT 0,

    OpId NUMBER PATH '. (/ Project/@OpId' 0 by DEFAULT) x;

    The following query will get OpId, QId and PName attributes in the child project item.

    SELECT x.*

    OF XML_TBL_TEST t.

    XMLTABLE (-with xmlnamespaces ('http://www.w3.org/2001/XMLSchema-instance' as "xsi"), )

    "/ Users/user/projects/Project.

    PASSAGE t.data

    COLUMNS - UserName VARCHAR2 (30) PATH "@Name."

    PName VARCHAR2 (30) PATH "@PName."

    QId NUMBER PATH "@QId" default 0,

    OpId NUMBER PATH "@OpId" DEFAULT 0) x;

    How can I get all the attributes for a given element in the XML document.  I tried a number of options without success.

    FYI, SM

    Because there may be several projects under a user, you must use a 2nd XMLTABLE chained (or a more complex XQuery expression) to retrieve the attributes of two orders:

    SQL > SELECT / * + no_merge (x 1) * /.

    2 x 1. Username, x2.*

    Xml_tbl_test 3 t

    4, XMLTABLE)

    5 "/ users/user.

    6 in PASSING t.data

    7 COLUMNS

    Username 8 VARCHAR2 (30) PATH '@Name '.

    9, XMLType PATH "Projects/Project" projects

    (10) x 1

    11, XMLTABLE)

    12 "/ project".

    13 by the WAY x 1. Projects

    14 COLUMNS

    NUMBER 15 QId PATH '@QId '.

    16, ROAD NUMBER OpId '@OpId '.

    17, PName VARCHAR2 (30) PATH '@PName '.

    (18) (+) x 2

    19;

    QID OPID PNAME USERNAME

    ------------------------------ ---------- ---------- ------------------------------

    Name1 PName1 101 100

    Name1 PName2 201 200

    NAME2

    NAME3

    NB: I used the trick no_merge because of a bug in my version (11.2.0.4)

  • XML attribute change

    I need to replace the 'M05_LEMO9433_06_SE_CH05' to M05_LEMO5401_06_SE_CH05 xml attribute value

    In the document with more than thousand entries

    I used the following code but it does not work

    function AddReturns() {}

    myIdName = "AddReturns";

    This.XPath = "//p//span//a";

    This.Apply = function (myElement, myRuleProcessor) {}

    with (MyElement)

    {

    try {}

    If (myElement.xmlAttributes.item("href").value.match ("LEMO9433"))

    {

    Fig var = myElement.xmlAttributes.itemByName("href").value;

    var fig.replace = figv ("9433', 'O5401')

    myElement.xmlAttributes.itemByName("href").value = figv;

    }

    myElement.xmlAttributes.item("id").name = "olinkend";

    } catch (e) {}

    }

    Returns true;

    }

    }

    Try this:

    var main  = function() {
      var root,
      xes,
      n,
      ov = "M05_LEMO9433_06_SE_CH05",
      nv = "M05_LEMO5401_06_SE_CH05";
      if ( !app.documents.length ) return;
    
      root = app.activeDocument.xmlElements[0];
    
      xes = root.evaluateXPathExpression ("//*[@*='"+ov+"']" );
      n = xes.length;
    
      while ( n-- ) {
      changeAttributeValue ( xes[n], ov, nv );
      }
    }
    
    var changeAttributeValue  = function ( xe, oldValue, newValue ) {
      var xas = xe.xmlAttributes,
      xa,
      n = xas.length;
    
      while ( n-- ) {
      xa = xas[n];
      xa.value == oldValue && xa.value = newValue;
      }
    }
    
    main();
    
  • How to handle xml attributes?

    Hallo,

    I am new to Livecycle and I have some difficulties to understand how reading/identification of the attributes XML in LiveCycle Designer.

    If I drag-and - drop items (#data of display data), they appear without problems. But if I drag an attribute (@attributename) they always show the empty to the PDF.

    For example, I have an XML file that looks like this:

    < product >

    ....

    < price >

    < ParamPrice visible = "true" >

    < prixUn visible = "false" > 1.350,00 < / prixUn >

    < priceB visible = "true" > 1.350,00 < / priceB >

    < price visible = "true" > 20.00 < / price >

    < price visible = "false" > 0,00 < / price >

    < / if >

    < NouveauPrix visible = "true" >

    < prixUn visible = "false" > 1.350,00 < / prixUn >

    < priceB visible = "true" > 1.350,00 < / priceB >

    < price visible = "true" > 20.00 < / price >

    < price visible = "false" > 0,00 < / price >

    < / sonderpreise >

    < / price >

    ...

    < / product >

    I tried to link like this: price.oldprice. (visible.value == "true") .priceA, but it does not work.

    I can´t really find some good information about the manipulation of XML attribute in LiveCycle. Can you please help me or tell me where to find more information on this topic.

    Thank you!!!

    What about Kat

    It is not the relationship between the presence of the object property and your visible attribute to date.

    But you can use a script to create such a thing.

    Put this in the event layout: ready for a text field, you want to be hidden or shown depending on the value of the visible attributes.

    this.presence = this.dataNode.visible.value === "true" ? "visible" : "hidden";
    
  • to access the HTTPService xml attributes

    I have a HTTPService isntalled, which gets a document xml, something like this
    < item >
    < name doc = 'x' url = "htttp://www.yyy.com" / >
    < name doc = 'x' url = "htttp://www.yyy.com" / >
    < name doc = 'x' url = "htttp://www.yyy.com" / >
    < / point >
    I want to display each tag doc in a component list with attribute-> name <-, now I can't get the list
    to the poster: [object Object] and this is what looks like my dataProvider for the components of the list:
    dataProvider = "{service.lastResult.item.doc}" I trid all simple stuff but I can not get the list to display the name of each of these tags attribute or even the tag url. " What is the solution to this?

    Thank you, in fact, I used a few notions of action script to solve this problem, I realized that you can access each node e.g. source.lastResult.item.doc [0] ['name'], since I can not put the provider that I made a function that receives the object, calculates the length and place them in a table and the function returns this table in ({label ({: x, given: y}) format, what you would do in flash, so the dataProvider was "{getDoc (source.lastResult.item.doc)}" and given that the result is an array, worked like a charm, no need for thumbnails and who.

  • With the help of the XML attributes in itemRenderer and labelFunction

    Hello!

    I searched for hours and read the Devguide but always impossible to find the solution to my problem.
    I have a xml returned from php like this:
    < files >
    < record id = "1" name = "name_1" type = "0" / >
    < record id = "2" name = "name_2" type = "0" / >
    < record id = "3" name = "name_3" type = "1 / >"
    < / documents >

    I can bind the result returned from the HTTPService to a data grid:

    < mx:DataGrid dataProvider = "{ret_XML.record}" width = "500" number of rows = "20" editable = "false" id = "dg" > "
    < mx:columns >
    <!-NEXT WORK! ->
    "< mx:DataGridColumn headerText ="Name" dataField="@name " width ="300"/ >
    <!- LABELFUNC don't DO NOT WORK IN LINE NEXT->
    "< headerText ="Type"dataField="@type mx:DataGridColumn " labelFunction ="labelFunc">
    < / mx:DataGridColumn >
    "< headerText ="Id"mx:DataGridColumn dataField="@id " editable ="false">
    < mx:itemRenderer >
    < mx:Component >
    <!-LINE FOLLOWING IS don't DO NOT WORK! ->
    "{< mx:Button label="{data.@id} '/ >
    < / mx:Component >
    < / mx:itemRenderer >
    < / mx:DataGridColumn >
    < / mx:columns >
    < / mx:DataGrid >

    and I have a labelFunction like this:

    private void labelFunc(item:Object,_column:DataGridColumn):String {}
    return "Type:"+ item.@type; "
    }

    So, my problem is that when I bind the column to an XML attribute, it works fine but when I try to link it to an itemRenderer or use it in a function, it does not work. I'm trying for hours now, but just can't make it work.
    I tried:
    "{< mx:Button label="{data.@id} '/ >
    < mx:Button label = "{data. () @id)} »/ >
    "{< mx:Button label="{@data.id} '/ >

    and perhaps others but no luck...
    Please someone help me with this one!

    Ty:
    [Pig]

    Problem solved!

    Well, post it on the forum after I solved my problem as follows:

    So in itemRenderer just use data.attribute () with the desired XML attribute name

    And in the labelFunction:

    private void labelFunc(item:Object,_column:DataGridColumn):String {}
    return "Type:"+ item.attribute ('type'); '.
    }
    Even with itemRenderer but rather data use () item.attribute

    I hope that this is the 'official' solution too...

    [Pig]

  • Add the XML attribute

    Right now I work with a very simple .xml file that retrieves data ultimately resulting in the generation of run-time components. Here is a simplified version:

    < data >
    < article type = "Button" x = "50" y = "100" label = "Button 1" / >
    < article type = "Button" x = "50" y = "300" label = "Button 2" / >
    < / data >

    I figured out how to remove an attribute, such as the "label" with this:

    If (. name(). attributes() [i] myXML.item [0] == "label" "")
    {
    delete myXML.build.item [0]. attributes() [i];
    i-- ;
    }

    Now, the question is how can I add another attribute - like the "height"? Any help would be greatly appreciated. Thank you.

    Okay, I just stumbbled on the solution:

    x 1. @["name"] = "test 2"; "

    This seems to do. I don't know if the reverse works just not or if I did it all just bad. Thanks for your help.

  • OIM 11 g R2: target setting dependend attribute on the type of process (create, update, disable)

    Hello

    I try to set an attribute ('Action') of users on a target system (Lotus Notes) dependend on the type of process which was conducted:

    When the user is created in Lotus Notes by the IOM, 'Action' should be on the value 'create '.

    When the user is updated in Lotus Notes by the IOM, 'Action' should be on the value "update".

    When the user is disabled in Lotus Notes by the IOM, 'Action' should be on the value "disable."

    What would be the best way to achieve this? And exactly how I should implement that? (I tried to read the documentation on the tasks of the adapter, however I could not get that to work...).

    Thank you!

    M

    Hello

    Its easy to accomplish by using adapter process task.

    (1) create a field on your form of process as 'Action '.

    (2) create a new process task in Lotus Notes process definition for "Action Updated" (you can use OOTB adapter for mapping purposes)

    (3) create a new task adapter process that fills that takes input like input1 and back to the entrance.

    (4) create the 3 tasks in process in Lotus Notes process definition. One for each action. For example: Update Action such as activate, Action such as disable update, update Action as Create. In the tasks of each process, pass the entrance as enable, disable and create respectively.

    (5) to map each tasks created in step 4 success of Create User, user, user disable respectively.

    ~ J

  • How to remove the value of the XML attribute in the Indesign file with javascript

    Hi all

    How to remove the value of the XML attribute in the Indesign file.

    1.jpg

    What error is this?

    in any case try this as well (one another),

    var myDoc = app.activeDocument;
    attrDelete(myDoc);
    function attrDelete(elm)
    {
        for (var i = 0; i < elm.xmlElements.length; i++)
        {
            try{
                for(j=0; j
    

    Vandy

  • Can someone please tell me the "see correct / more effective to get the 'status' XML ' attributes

    Can someone please tell me the "see correct / more effective to get the 'status' XML ' attributes (ID, CssClass, Description and IsActive to the XML code below):

    Implementation will be the standalone .swf file

    (XML)

    <ArrayOfLineStatus>
    <LineStatus ID="0" StatusDetails="">
        <BranchDisruptions/><Line ID="1" Name="Bakerloo"/>
        <Status ID="GS" CssClass="GoodService" Description="Good Service" IsActive="true">         
             <StatusType ID="1" Description="Line"/></Status></LineStatus>
    </ArrayOfLineStatus>

    < ArrayOfLineStatus >

    < LineStatus ID = "0" StatusDetails = "" >

    < BranchDisruptions / >

    < line ID = "1" Name = "Bakerloo" / >

    < State ID = 'GS' CssClass = "GoodService" Description = "Good Service" IsActive = "true" >

    < StatusType ID = '1' Description = 'Line' / > < / status >

    < / LineStatus >

    < / ArrayOfLineStatus >

    There is no good way with as2:

    trace(this.firstChild.childNodes[1].childNodes[4].) Attributes ['ID']);

    trace(this.firstChild.childNodes[1].childNodes[4].) Attributes ['CssClass']);

    etc.

  • How to set the attributes of the relationship in the logic model?

    Hello, is it possible to set attributes of the relationship in the logic model (using the sql 3.1.0.683 data Modeller)?
    In my case, I want to set some attributes in a M:M relationship between two tables (for example: start_date and end_date) and then these attributes of the relationship which will be included in the relational model in the form of columns of the table created for solve relations M:M.
    Thank you.

    Hello

    There is no support for attributes in relationship. You should go directly with the entity of the intersection.

    Philippe

  • How to set custom attributes of Div in Adobe Edge?

    Hi all!

    I wonder if it is possible, staying in Adobe Edge animate, set custom attributes of a Div.

    For example, for the framework of the "Impress.js" presentation, we get this code:

    < div id = "large" class = 'step' data-x = '3500' data-y '2100' data-rotate = "180" data = "6" >

    < p > < b > Mar show grew up < /b > < span class = "thoughts" > idea </span > < / p >

    < / div >

    Thus, in EA, we can call a Div (but what kind of Div? A rectangle? A text box empty?) with the 'big', we can also add the shape to the 'step' of class user interface, but we cannot - as far as I know - insert custom attributes.

    Perhaps with Jquery 'setAttribute'?

    Thank you very much!


    Davide

    In my opinion, what they added or 'set' dynamically, as you might have guessed.

    This is an old thread on the same topic.

    Darrell

Maybe you are looking for

  • How can I turn off 'automatic selection' (?) on my menu bar?

    When I started to type an address in the toolbar, it climbs to an unwanted address... How can I turn off the ' auto connect, Auto - select "(?)

  • Compaq Presario v2000 need help for recovery

    Hello I recently got a virus on my laptop, and I am not able to get off at the stop. I just want to remove my computer laptop everything and restore the operating system. The Virus has disabled the start menu, and I have no recovery discs. Help would

  • Qosmio F50 - order Driver Install on Vista 64-bit

    Hello I have a laptop Qosmio F50 - 10 M with vista 32 bit home premium preinstaled.I bought a new Vista ultimate x 64 operating system. I want to make a fresh reinstal but I now also is VERY important the driver installation in order to have a perfec

  • Spectrum x 360: turn off permanent lighting under the F5 on spectrum x 360

    Is there a way to disable the backlight persisting under the F5 on the HP laptop, spectrum x 360?  TO CLARIFY, I'M NOT HOW TO DISABLE THE FUNCTIONALITY OF THE RO KEY ANY FUNCTION KEY F5.  I just want to know how to DISABLE light PERMANENT under the F

  • Install the large HARD Windows 7 disc

    I have an Asus laptop A43S with a 500 GB HDD running Windows 7 Home Premium (64-bit).  I want to replace the HDD with a Hitachi 1 TB HDD. Before buying it, I want to be sure that my system works the largest disk. I asked Asus, but I can't get a clear