How to browse the hyphen to a xml nodes?

Hello

I have a xml structure as follows,

" < = xmlns:fo fo:root ' http://www.w3.org/1999/XSL/format "xmlns:ucreate =" " http://www.XMPie.com/ucreate ">

< fo:layout - master-set >

< fo:simple - page-master >

< / fo:simple - page-master >

< / fo:layout - master-set >

< / fo:root >

Now, I need through this structure. It is not possible in the usual way as xml.fo:layout - master-set. Flex here give a compilation error. On research, I found that I could browse to fo:layout - master-defined through the namespace. As follows,

var foNm:Namespace = xml.namespace ("TF");

var childNode:XMLList = xml.foNm: ['layout-master-set'];

After the execution, childNode contains the correct list which is in page-master-set.

However, I have to cross to the simple-page-master node. I tried to do it in a similar way.

var childNode:XMLList = xml.foNm: ["simple-page-master"];

But in this case childNode comes empty. How can I do this?

Please guide.

Hello

I solved this problem. Simply as follows:

var foNm:Namespace = xlim.namespace ("TF");

var node: XMLList = xlim.foNm: ['layout-master-set'];

for each (var cNode:XML in the node)

{

var childNode:XMLList = cNode.foNm: ["simple-page-master"];

}

Thank you!

Tags: Flex

Similar Questions

  • How to export the Indesign to Format XML using JavaScript document

    Hi all...

    Can someone help me, how to export the indesign document to XML Format using JavaScript...

    Thanks in advance...

    doc.exportFile ( ExportFormat.XML, File(Folder.desktop+"/doc.xml" )
    
  • How to create the MUCOW file in xml using Adobe Muse

    How to create the file MUCOW as xml using Adobe Muse .kindly give step tutorial or PDF... WHERE DO I CREATE MUCOW? No idea for me

    Just lucky to have this info to my favorites

    MuCow Documentation

    Muse Jam Sessions_105_ConfiguringMucows

  • How to browse the list returned by the method using reflection?

    Hello

    How to browse the list < address > and call a method in the class of address?

    Method m = someObj.getClass () .getMethod ("listOfIPv4Addresses");
    AList = m.invoke (someObj) object; Returns a list < address >

    ReturnType ParameterizedType = m.getGenericReturnType () (ParameterizedType);
    Type [] typeArguments = returnType.getActualTypeArguments ();
    Class returnTypeParamClass = typeArguments (class) [0]; Gets the type of class "address".

    for (object shown: aList) {}
    What am I doing here?
    }

    Thank you.

    Well in that case:

    List alist = (List)m.invoke(someObj); // returns a List
    // Then your next 3 lines ...

    Now browse the list

    for (Object aAddress : aList)
    {
      Object result = m.invoke(aAddress);
      // etc, whatever you want to do with that
    } 
    
  • How to check the NUMA on ESXi host node

    Dear team,

    I have cisco ucs Server Blade configuration below b - 200 m3. I want to know how to check the NUMA on ESXi host node.

    RAM: 192

    Socket 2 (8 cores).

    concerning

    Mr. VMware

    Unfortunately, it seems THAT NUMA is disabled hardware wise. You can only activate it via the BIOS setting.

  • Alteration of the content of an XML node in java

    Hi all

    I change the contents of an XML node using java, using the method of setTextContent() a node.

    Sometimes I also add child nodes of a node. In this case, when I add the child nodes of a given node, when I print the xml data, I see the added nodes.

    for example:

    Initial XML:

    < a > < / a >
    < b > < / b >
    < c > < / c >


    For my project requirement, based on certain conditions, I do 'a' 'b', 'c' as children nodes nodes. I reached this output.


    The problem is

    FINAL XML:

    < a > < b > < / b > < c > < / c > < / a >


    I get the nodes children in the same line as above. But the power required should be as below.


    REQUIRED XML

    < a >
    < b > < / b >
    < c > < / c >
    < /a >

    I also used the Doc.normalize () function. But still, it helps strength.

    Kindly help me in this regard.

    Thank you
    Sabarisri. N

    Hello

    You can try to transform the result as below:

    Transformer transformer = TransformerFactory.newInstance () .newTransformer ();
    transformer.setOutputProperty (OutputKeys.INDENT, 'yes');

    initialize the StreamResult with the object of the file to save to file
    StreamResult result = new StreamResult (new StringWriter());

    DOMSource source = new DOMSource (doc); Here, the doc is you XML document.
    transform. Transform (source, result);

    String xmlString = result.getWriter (m:System.NET.SocketAddress.ToString ());
    System.out.println (xmlString);

    Thank you best regards &,.
    Nilesh Sahni (www.infocepts.com)

    Published by: Nilesh on August 30, 2011 12:31

  • How to read the data with different XML schemas within the unique connection?

    • I have Oracle database 11g
    • I access it via JDBC: Slim, version 11.2.0.3, same as xdb.
    • I have several tables, each has an XMLType column, all based on patterns.
    • There are three XML schemas different registered in the DB
    • Maybe I need to read the XML data in multiple tables.
    • If all the XMLTypes have the same XML schema, there is no problem,
    • If patterns are different, the second reading will throw BindXMLException.
    • If I reset the connection between the readings of the XMLType column with different schemas, it works.

    The question is: How can I configure the driver, or the connection to be able to read the data with different XML schemas without resetting the connection (which is expensive).

    Code to get data from XMLType is the implementation of case study:

     1   ResultSet resultSet = statement.executeQuery( sql ) ; 
    2   String result = null ;
    3    while(resultSet.next()) {
    4   SQLXML sqlxml = resultSet.getSQLXML(1) ;
    5   result = sqlxml.getString() ;
    6   sqlxml.free();
    7   }
    8   resultSet.close();
    9    return result ;

    It turns out, that I needed to serialize the XML on the server and read it as BLOB. Like this:

     1    final Statement statement = connection.createStatement() ;  2    final String sql = String.format("select xmlserialize(content xml_content_column as blob encoding 'UTF-8') from %s where key='%s'", table, key ) ;  3   ResultSet resultSet = statement.executeQuery( sql ) ;  4   String result = null ;  5    while(resultSet.next()) {  6   Blob blob = resultSet.getBlob( 1 );  7   InputStream inputStream = blob.getBinaryStream();  8   result = new Scanner( inputStream ).useDelimiter( "\\A" ).next();  9   inputStream.close(); 10   blob.free(); 11   } 12   resultSet.close(); 13   statement.close(); 14  15   System.out.println( result ); 16    return result ; 17
    

    Then it works. Still, can't get it work with XMLType in resultset. On the customer XML unwrapping explodes trying to pass to another XML schema. JDBC/XDB problem?

  • How to get the value of an xml element attributes

    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0

    I'm trying to parse an XML document

    < response >
    < well uwi = "102112900816W400" > < / well >
    < production >
    < PRODUCING_ENTITY >
    < NUMBER YEAR = '2009' >
    < NUMBER of MONTHS = LAST_DAY '1' = "31" / >
    < NUMBER of MONTHS = LAST_DAY '2' = "28" / >
    < NUMBER of MONTHS = LAST_DAY "3" = "30" / >
    < / YEAR >
    < NUMBER YEAR = '2010' >
    < NUMBER of MONTHS = LAST_DAY '1' = "31" / >
    < NUMBER of MONTHS = LAST_DAY '2' = "28" / >
    < NUMBER of MONTHS = LAST_DAY "3" = "30" / >
    < / YEAR >
    < NUMBER YEAR = '2011' >
    < NUMBER of MONTHS = LAST_DAY '1' = "31" / >
    < NUMBER of MONTHS = LAST_DAY '2' = "28" / >
    < NUMBER of MONTHS = LAST_DAY "3" = "30" / >
    < / YEAR >
    < NUMBER YEAR = '2012' >
    < NUMBER of MONTHS = LAST_DAY '1' = "31" / >
    < NUMBER of MONTHS = LAST_DAY '2' = "28" / >
    < NUMBER of MONTHS = LAST_DAY "3" = "30" / >
    < / YEAR >
    < / PRODUCING_ENTITY >
    < / production >
    < / well >
    < well uwi = "100092900816U400" > < / well >
    < production >
    < PRODUCING_ENTITY >
    < NUMBER YEAR = "1999" >
    < NUMBER of MONTHS = LAST_DAY '1' = "31" / >
    < NUMBER of MONTHS = LAST_DAY '2' = "28" / >
    < NUMBER of MONTHS = LAST_DAY "3" = "30" / >
    < / YEAR >
    < NUMBER YEAR = '2000' >
    < NUMBER of MONTHS = LAST_DAY '1' = "31" / >
    < NUMBER of MONTHS = LAST_DAY '2' = "28" / >
    < NUMBER of MONTHS = LAST_DAY "3" = "30" / >
    < / YEAR >
    < NUMBER YEAR = '2001' >
    < NUMBER of MONTHS = LAST_DAY '1' = "31" / >
    < NUMBER of MONTHS = LAST_DAY '2' = "28" / >
    < NUMBER of MONTHS = LAST_DAY "3" = "30" / >
    < / YEAR >
    < NUMBER YEAR = "2003" >
    < NUMBER of MONTHS = LAST_DAY '1' = "31" / >
    < NUMBER of MONTHS = LAST_DAY '2' = "28" / >
    < NUMBER of MONTHS = LAST_DAY "3" = "30" / >
    < / YEAR >
    < / PRODUCING_ENTITY >
    < / production >
    < / well >
    < / answer >

    For the purposes of the practice, I have saved this in my table tdw_test_xml_files;

    My goal is to get the /WELL/@uwi and /YEAR/@NUMBER

    UWI YEAR
    ------ ---------------
    102112900816W400 2009
    102112900816W400 2010
    102112900816W400 2011
    102112900816W400 2012
    100092900816U400 1999
    100092900816U400 2000
    100092900816U400 2001
    100092900816U400 2003


    I tried this... but I can't get the value of the attribute for the element < YEAR >

    Select r.uwi, r.year
    of tdw_test_xml_files.
    XMLTABLE
    (
    "for $WELL in $ response/WELL/good.
    for $DEPT to $UWIIDX in $WELL, Production, PRODUCING_ENTITY, YEAR
    return < RESULT >
    University of the West Indies West <>{fn:data($WELL/@uwi)} < / UWI >}
    {
    $WELL/production/PRODUCING_ENTITY/YEAR [$UWIIDX]-> (I don't know how to extract the value of the attribute here)
    }
    < / RESULT > '
    passing FILECONTENT as 'GOOD '.
    columns
    UWI VARCHAR (50),
    YEAR vARCHAR2 (24)
    ) r
    /


    If I do this; I get the Cartesian plan result set, which is not my goal

    SELECT xtab.*, xtab2.*
    OF tdw_test_xml_files, XMLTable (' for $i in/Response/Well)
    Return $i"
    PASSAGE filecontent
    Uwi varchar2 COLUMNS (50) PATH'@uwi'
    rn for ORDINALITE
    ) xtab
    , XMLTable (' for $i in/Response/Well/Production/PRODUCING_ENTITY/YEAR)
    Return $i"
    PASSAGE filecontent
    COLUMNS year varchar2 (50) PATH'@NUMBER'
    ) xtab2;

    Any help will be highly appreciated thanks...

    I'm just curious to know how make the query now in unique XMLTable, not that I am forced by using x number of xmltable; - P, just look more clean...

    Here goes:

    SQL> SELECT x.*
      2  FROM tdw_test_xml_files t
      3     , XMLTable(
      4         'for $i in /Response/Well
      5            , $j in $i/Production/PRODUCING_ENTITY/YEAR
      6            , $k in $j/MONTH
      7          return element r {
      8            $i/@uwi
      9          , element year  {data($j/@NUMBER)}
     10          , element month {data($k/@NUMBER)}
     11          }'
     12         passing t.filecontent
     13         columns uwi   varchar2(50) path '@uwi'
     14               , yr    varchar2(4)  path 'year'
     15               , mon   varchar2(2)  path 'month'
     16       ) x
     17  ;
    
    UWI                            YR   MON
    ------------------------------ ---- ---
    102112900816W400               2009 1
    102112900816W400               2009 2
    102112900816W400               2009 3
    102112900816W400               2010 1
    102112900816W400               2010 2
    102112900816W400               2010 3
    102112900816W400               2011 1
    102112900816W400               2011 2
    102112900816W400               2011 3
    102112900816W400               2012 1
    102112900816W400               2012 2
    102112900816W400               2012 3
    100092900816U400               1999 1
    100092900816U400               1999 2
    100092900816U400               1999 3
    100092900816U400               2000 1
    100092900816U400               2000 2
    100092900816U400               2000 3
    100092900816U400               2001 1
    100092900816U400               2001 2
    100092900816U400               2001 3
    100092900816U400               2003 1
    100092900816U400               2003 2
    100092900816U400               2003 3
    
    24 rows selected
     
    
  • How to change the hyphen to the other fonts?

    Hello

    IM using a special font (Nordik) with has a very strange hyphen. I want to keep my text in Nordik, but need to change the hyphens in New Roman times to look better. How is it possible easily?

    Concerning

    Theun,

    It wasn't me, but TEUs. There always on its site (http://www.teusdejong.nl/), as it's a JS version that PVR and I made together. But you and Peter S. are OK, I guess that it is difficult or even impossible to manage autohyphens transformation in InDesign. Better to buy editir of Fontlab Typetool font and change the hyphen in the police. TypeTool is not too expensive (about $ 90 I think) and it will come in handy time and time again.

    Peter

  • How to set the ID target in xml?

    Hi all

    I have read the documentation online here: call

    Unfortunately, I'm a bit confused as to where I put the target in my XML source identification code, and if I put target ID my application or I need to find somewhere.

    Thanks in advance.

    any help will be thanks and marked solutions.

    Kind regards

    Brandon

    It must be placed in your file of bar - descriptor.xml, the id is the one that you registered your package name, in the file of the bar - descriptor.xml.

    It's usually your reverse website, i.e. com..

  • How to pass the content of an xml element in the text frame in inDesign Script

    var XMLFile = File.openDialog ("select XML Files... ») ;

    var doc = app.activeDocument;

    If (!) App.Documents.Length)

    {alert ("ERROR: Document not opened");}

    return;

    }

    doc.importXML (XMLFile);

    var firstFigureNode = doc.xmlElements [0] .xmlElements [1] .xmlElements [0];

    var lableNode = firstFigureNode.xmlElements [0];

    var lableNodeText = lableNode.contents;

    myFrame var = doc.textFrames.add ({geometricBounds: [-13, 13, 3, -3]});

    lableNodeText.move (LocationOptions.AFTER, myFrame.texts [0]);

    ========================================================

    My requirement is: == > > move the content of an xml element in the text by inDesign Script block, but XML InDesign file Structure should not be change & data in the XML Structure should remain as it was before...

    I tried to code above, but it does not work...

    Please can someone help me in solving this problem...

    It does not work correctly...

    It moves firstFigureNode in myFrame...

    firstFigureNode.placeXML (myFrame);

    ===>> For Apple Script try below Code ===>>

    myFrame markup using firstFigureNode

  • How to get the length and sub lymph nodes.

    Hello

    find the script below.

    < List1 >

    < list >

    < List1 >

    < List1 >

    < List1 >

    < / list >

    < list >

    < List2 >

    < List2 >

    < List2 >

    < / list >

    --

    --

    -

    -

    -

    -< / list1 >

    Here the tag list will be growing based on the I / p. Now what I want is to know how to get the length of the tag < list >.

    To implement the above I used the code below

    var number = xfa.record.List1.List [0].nodes.length; (Does not work)

    But if var account = xfa.record.List1.nodes.length; (work)

    and also I want to delete a tag inside the < List > tag. How?

    Very Urgent.

    Thanks in advance.

    Yes, you need to use the name instead of the value to get the tag name...

    xfa.datsets.data.Root.nodes.item (0) .name

    Thank you

    Srini

  • How to remove the entry for Hot Standby node in the odbc.ini file in Windows 7

    Although I could see the file odbc.ini under c: Windows, there is nothing specific to hot standby node in the file. I use windows 64-bit computer and I have issues with my odbc DSNS when connecting to another application, I need to delete the entry for Hot Standby node in the odbc.ini file based on what I had as a solution to solve the problem. My mistake was "communication error with the connection process. Find target processes while they waiting for answer', when I tried to pull a few tables to a data source by using the ODBC DSN.

    Hi Jay,

    Thanks for posting your question in the Microsoft Community.

    The question you posted would be better suited in the MSDN Forums.

    I would recommend posting your query in the link below.

    General Windows Forms:

    http://social.msdn.Microsoft.com/forums/en-us/WinForms/threads

    I hope that the information above helps you.

    In the future if you fall on any question relating to Windows, please do not hesitate to post your request here on Microsoft Community, we will be more than happy to help you.

  • How to create the channel listens for XML/web services line

    Hi, I'm new to B2B 11 g, would ask tht,.

    I followed the tutorial of B2B using generic file and it works fine. However,.
    If I want to receive the trading partner thought web XML server, how can I configure the channel look, what protocol to use.


    And can any1 kindly refer me to any link or info?

    Thank you.

    However... If remote partner is going to send me thought web services and no thought record, should I do something on my B2B? has I need specific, any channel listen extra?

    N ° no additional configuration is required to receive files via HTTP. Just ask your TP to post files on one of the below URL.

    http://hostname:soa_server_port/b2b/httpReceiver or http://hostname:soa_server_port/b2b/transportServlet

    If you just want to test your B2B, if it is correctly configured best way is to have another facility of B2B (may be a new domain) who will laugh at your configuration TP. This configuration of B2B send message to your B2B on HTTP (on one of the above URL) and see if gets treated with success.

    If you just want to test if your B2B is ready to accept messages over HTTP, then go to the URL above browser and make sure that you see below message-

    "B2B Server is ready to accept messages HTTP from the trading partner.

    Kind regards
    Anuj

  • How to get the ripple working, config.xml is not found

    Here a load of resources for getting started, but I just can't get anything to work as stated in the documentation, or the youtube video shows.

    I have various things installed, NodeJS, JVM, BlackBerry WebWorks 2.0.0.71, ripple in Chrome.

    To begin with when you use 'create cordova' layer of the project is different, cordova 3.4.0 I get:

    hooks /...

    mergers /...

    config. XML

    www/js /...

    www/img /...

    www/css /...

    www/index.html

    But information to addresses such as https://developer.blackberry.com/bbos/html5/documentation/creating_hello_world.html don't show this provision.

    I'm supprised when I open the config.xml file in Chrome that it does not detect the XML XSD and ripple offers to launch itself.  If I navigate to file:///C:/Users/Username/RippleSites/myproject/ www/index.html can activate ripple but she complains the file config.xml in lack.  Services of ripple Start' provides no clue as to any error and no TCP server listening on port 9910.

    I guess BB10 doesn't work with a specific version of cordova, which uses a different type of layout of project that one 3.4.x uses.  How can I fix the environment to use the correct versions and also automatically prevent the upgrade within this environment?  Because I want to obviously NPM allows management version of the future module updates.

    How C:\Users\Username\WebWorks Project\project interacts with the ripple need to use a specific home project directory as well?

    See the Option #1 here for more information about enabling access to the local files for Chrome/ripple:
    http://supportforums.BlackBerry.com/T5/Web-and-WebWorks-development/solution-ripple-launch-is-INTERR...

    That being said, the that training has been designed to be an emulator for the WebWorks 1.0 SDK, it relies on the features that have changed in WebWorks 2.0. For example, we leverage is no longer webworks.js, but cordova.js and webworksready changed to deviceready. In the end, there may be still some differences in the APIs, if efforts have been made to minimize any impact as he.

    BlackBerry 10 works with Cordova 3.1.0 and above (it may have been a few versions ago, but I don't remember exactly). Stay up to date with Cordova and use the latest version through the Museum is my personal recommendation.

    Note that if you use Cordova, you also need to install the NDK BlackBerry properly configure your environment variables.

    Note that the link to the above documentation referred BBOS, which is the platform of the inheritance (BBOS 5, 6, 7). BlackBerry 10 documentation can be found here:
    http://developer.BlackBerry.com/HTML5/documentation/V2_0/

    The www folder is root of your project that will contain all the files of HTML5. The other files are related to Cordoba and used for packing and manage your application is built.

Maybe you are looking for