Replace the configuration of the plugin apps config.xml element

One of the plugins that I use has the following config: https://github.com/katzer/cordova-plugin-local-notifications/blob/master/plugin.xml

One of the sections in there is:

< target = "AndroidManifest.xml configuration file" parent = "/ manifest" > ""

< android:name = "android.permission.RECEIVE_BOOT_COMPLETED permissions uses" / > "

< android:name = "android.permission.WRITE_EXTERNAL_STORAGE permissions uses" / > "

< / config-file >

I would replace this is:

< target = "AndroidManifest.xml configuration file" parent = "/ manifest" > ""

< android:name = "android.permission.RECEIVE_BOOT_COMPLETED permissions uses" / > "

< android:name = "android.permission.WRITE_EXTERNAL_STORAGE uses-permission" android: maxSdkVersion = "18" / > "

< / config-file >

This is because I understand that permissions are not forced to write to the external storage of your application from KitKat (4.4) (https://developer.android.com/guide/topics/data/data-storage.html#AccessingExtFiles), and I want to ask this permission is turned off for users to download the application.

I build my app using PhoneGap Build (phonegap-version is cli - 6.3.0), is there any way of this from my apps config.xml file? So far I have tried several things led to errors on malformed or duplicate < uses credentials > elements config.

Thank you

Here are a few possibilities:

  1. The plugin of the fork and edit as you like and build from your fork (see the documentation for the use of rest git plugins: Plugins |) PhoneGap Docs).
  2. The plugin of the fork, edit and send a request to shoot for having him up-to-date on the repo of NPM (1 or 2).
  3. Try to use the element of the BMPS config file to change the manifest: change manifest. PhoneGap Docs (do not know if it will work in this use case).

Tags: PhoneGap

Similar Questions

  • 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

  • I'm new in indesign scripting, please tell me how to write a script to get the contents of an XML element and then sort all the content

    I'm new in indesign scripting, please tell me how to write a script to get the contents of an XML element and then sort all the content

    Hello

    Can the code below is useful for you, but I do not know how to sort.

    Change the tag based on your employment application.

  • replace the B Apps Tier instance with instance and A level apps

    Hello
    I have:

    Instance A
    Apps Version: R12 (12.0.6)
    IP:10.1.1.173
    Host name: oratest
    Installation: Unique and single-user node

    Instance B
    Apps Version: R12 (12.0.6)
    IP 10.1.1.173
    Host name: oraapps
    Installation: Monkey and single user node


    I want to replace the Apps Tier B instance with instance and A level apps.

    Is this possible?
    Please suggest.


    Concerning
    ANUP

    ANUP,

    I want to replace the Apps Tier B instance with instance and A level apps.

    As mentioned above, helios so the patches on both instances group level is not the same, then you cannot replace/clone the layer application only, and you will need to make a full clone of database/application as hungry_dba mentioned above.

    Kind regards
    Hussein

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

  • not the substitution of the coherence-cache - config.xml, but showing the error...

    Hello

    I created a file called file tangosol-coherence - override.xml in the specified path which is "C:\Program Files\Oracle\Coherence for.NET"

    and the coherence.jar file is located in the path that is "C:\Program Files\Oracle\Coherence for." NET\lib ".

    but it is not the substitution of the XML... with the default file...


    C:\Program Files\Oracle\Coherence pour.NET\examples\ContactCache.Java > C:\Progra «»
    m Files\Java\jdk1.6.0_11\bin\java"- Server showversion-Xms128m-Xmx128m - Dtang
    STATUS ONLINE. Coherence.TTL = 0 - Dtangosol.coherence.cacheconfig = contact-cache - config.xml.
    CP 'config; lib\custom - types.jar; C:\Program Files\Oracle\Coherence for .NET\lib\c
    OHERENCE.jar' com.tangosol.net.DefaultCacheServer
    Java version "1.6.0_11.
    Java (TM) SE Runtime Environment (build 1.6.0_11 - b03)
    Java hotspot Server VM (build 11, 0 - b16, mixed mode)

    2011-06-20 15:06:57.607/2.366 Oracle coherence 3.7.0.0 < Info > (thread = hand, member)
    ER = n/a): responsible operational configuration of jar:file:/C:/Program%20Files/Ora «»
    cle/Coherence%20for%20.NET/lib/coherence.jar!/tangosol-coherence.xml ".
    2011-06-20 15:06:57.989/2.748 Oracle coherence 3.7.0.0 < Info > (thread = hand, member)
    ER = n/a): operational substitutions of jar:file:/C:/Program%20Files/Oracle/ load «»
    Coherence%20For%20.NET/lib/coherence.jar!/tangosol-coherence-override-dev.xml ".
    2011-06-20 15:06:58.049/2.808 Oracle coherence 3.7.0.0 < D5 > (thread = main Member,
    (= n/a): configuration optional override ' / tangosol-coherence - override.xml ' is not
    specified
    2011-06-20 15:06:58.062/2.821 Oracle coherence 3.7.0.0 < D5 > (thread = main Member,
    (= n/a): configuration optional override "/ custom - mbeans.xml ' is not specified

    Oracle Version 3.7.0.0 Build 23397 consistency
    Grid edition: development Mode

    Thanks in advance

    The classpath is not the same as the path. It is similar, but a classpath is a set of directories or jar Java files use to search for resources and executable code.

    Assuming you are using the sample file of Start-cache - server.cmd which is supplied with the .net examples to start your server you can put the file tangosol-coherence - override.xml in the C:\Program Files\Oracle\Coherence pour.NET\examples\ContactCache.Java\config directory because it's on the class path when using this script.

    JK

  • The unit content config.xml 6.0 problem

    Hello
    When I change the confing.xml ' http://10.0.0.5/x.html ' / > 'application does not show anything on devices with version 6 but version 5 works fine, this happens only when I add the ip address.

    Here's the code for the config.xml file

    ?xml version1. encodingUTF-widget xmlnshttp://www.w3.org/ns/widgets" xmlns:rim="http://www.blackberry.com/ns/widgets" version="1.0.0.0" rim:backButton="exit">
      miapp
      
      
      
      
      
      
      
      
      
      
      
      
      
      http://10.0.0.5/">
        
        
        
        
        
        
        
        
        
        
        
        
        
      
      http://10.0.0.5/x.html"/>
      
        
      
      
      
    
    

    the problem was solved by changing the order of the connections in the config.xml file

    rim:connectio
       iTCP_CELLULA/i
       iTCP_WIF/i
       iMD/i
       iBIS-/i
       iWAP/i
       iWA/i
     /rim:connectio
    
  • How to obtain the page to an XML element?

    Hi all

    I am fairly new to InDesign scripting (and scripts in general) and have lots of fun :-)

    I have an InDesign document containing several frames (texts, graphics, etc.) and I tagged using the InDesign tags window.

    After much struggle, I managed to get the name of the XML element tag first in my document using this simple code:

    app.activeDocument.xmlElements[0].xmlElements[0].markupTag.name
    

    I know that it worked because I got the right answer in the Javascript console. (By the way, can someone explain to me why I write xmlElements [0] twice?) And what is the difference between xmlElements and xmlItems? Any help is appreciated).

    Then I'll probably use a loop for for each markupTag of each xmlElement. But I have a lot of trouble to obtain the page associated xmlElement :-/

    After a lot of searching on Google, I came across this article which is supposed to answer my question exactly. I tried to understand this code, copy and paste in ExtendScript, but I must admit it's a bit too complex for me...

    Can someone tell me how to get a graphic or a text linked to my XML tags block? Any help is greatly appreciated!

    Nevermind, I found an easier way to achieve what I was trying to do. Actually, I wanted to be able to handle different images in my document, so why I wanted to use the XML markup.

    For those of you who have the same problem, who knows from InDesign CS5, there is an itemByName method that allows you to select an image by its name in the layers panel. So much easier to use :-)

    Thread closed!

  • How to bind the form to an XML element with a specific attrib/value?

    Is it possible to link a form in Designer to an XML element using an attribute as a criterion value?  This is a very basic construction of XPath and I can't believe that the form designer cannot do this.  For example:

    < library >

    < book lang = "fr" >
    Harry Potter < title > < /title >
    < price > 29.99 < / price >
    < / book >

    < book lang = "MS" >
    < title > Learning XML < /title >
    < price > 39.95 < / price >
    < / book >

    < / book >

    I would bind only the knot book with an attribute lang of "eng".

    [The simple xpath reference would be: bookstore/book[@lang='eng']

    Thanks for any help that anyone can provide.  I am new to LiveCycle Designer

    Jordon

    You must use the below expression in data binding, property to get the title of the book whose language is English

    .book $. (lang.value == "eng") .title

    Thank you

    Srini

  • Replace the Page (content AND Interactive elements)

    When replacing a page in a PDF document, is it possible to include interactive elements (buttons, links, etc.) of the replacement page and not just the contents?

    No, it's an important part of the function replace Pages. If you want

    include everything, and then use the function insert Pages and then just

    remove the old pages.

    The game, 17:57, Jeffrey_Smith [email protected], 11 December 2014 >

  • Get the first instance of XML elements

    Hi all

    My XML tag looks like this:

    < Xref RID = Ref "id001' type = 'Test' >

    < Xref RID = ref "id002' type = 'Test' >

    < Xref RID = ref "id003' type = 'Test' >

    < Xref RID = ref 'id004' type = 'Test' >

    Code:

    var root = app.activeDocument.xmlElements [0];

    (var xrefRid = root.evaluateXPathExpression('//xref[@rid]');

    (var xrefType = root.evaluateXPathExpression('//xref[@ref-type]');

    for (i = 0; i < xrefRid.length; i ++)

    {

    var refTypeValue is xrefRid [j].xmlAttributes.itemByName ("ref-type") .value;.

    var ridValue is xrefType [j].xmlAttributes.itemByName ("rid") .value;.

    If (refTypeValue is "Test")

    {

    Alert (ridValue);

    }

    }

    In my multiple number same document 'RID' is here, but I want the first occurrence of the xref tag.

    By example, if < Xref RID = Ref "id001' type = 'Test' > occur on different pages of a book, but I need the first occurrence of the elements.

    Hope someone can help me...

    Vandy

    If your structure is constructed in the same manner as above , XPath works very well:

    _root var = app.activeDocument.xmlElements.firstItem ();

    var _firstXrefID001andID002 = _root.evaluateXPathExpression ("//p [position () = 1] / xref [@ RID ="id001"] |") [/ / p [position () = 2] / xre f[@rid='id002'] ");"

    App.Select (_firstXrefID001andID002);

    If further stations of

    are possible, for example

          1

          Title

          Example text sample text sample text sample text sample text sample text

         

    Sample text sample text sample sample text sample text sample

         

    Sample text sample text sample sample text sample text sample

         

    Sample text sample text sample sample text sample text sample

         

    Example of example text text Sample text sample text Sample Text sample text

         

    Example of example text text Sample text sample text Sample Text sample text

         

    Example of example text text Sample text sample text Sample Text sample text

         

    Example of example text text Sample text sample text Sample Text sample text

         

    Example of example text text Sample text sample text Sample Text sample text

         

    Example of example text text Sample text sample text Sample Text sample text

         

    Example of example text text Sample text sample text Sample Text sample text

         

    Example of example text text Sample text sample text Sample Text sample text

         

    Example of example text text Sample text sample text Sample Text sample text

         

    Example of example text text Sample text sample text Sample Text sample text

         

    Example of example text text Sample text sample text Sample Text sample text

         

    Example of example text text Sample text sample text Sample Text sample text

    You can try these XPathsExpressions and take the first element of tables resulting:

    _root var = app.activeDocument.xmlElements.firstItem ();

    [var _firstXrefID001 = _root.evaluateXPathExpression("//p/xref[@rid='id001']"); "

    App.Select(_firstXrefID001[0]);

    [var _firstXrefID002 = _root.evaluateXPathExpression("//p/xref[@rid='id002']"); "

    App.Select(_firstXrefID002[0]);

    Roland

  • 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 get the previous group on XML element

    My XML structure goes like this.

    <? XML version = "1.0" encoding = "UTF-8"? >
    < SA321 >
    PT BOOK < P_BOOK > < / P_BOOK >
    < P_YEAR > 2009 < / P_YEAR >
    < LIST_G_FAMILY >
    < G_FAMILY >
    < PARENT_FAMILY > 2240 < / PARENT_FAMILY >
    < FAM_CODE_DESC > Cruiser informatico < / FAM_CODE_DESC >
    < SUBTOT_FLAG > Y < / SUBTOT_FLAG >
    < NEW_USED > NEW < / NEW_USED >
    < LIST_G_ASSET >
    < G_ASSET >
    < ASSET_DESCR > 2240 - Cruiser informatico < / ASSET_DESCR >
    < ACQUISITION_YEAR > 2009 < / ACQUISITION_YEAR >
    JANUARY < EFFECTIVE_MONTH > < / EFFECTIVE_MONTH >
    < EFFECTIVE_YEAR > 2009 < / EFFECTIVE_YEAR >
    < ASSET_AMOUNT > 3000 < / ASSET_AMOUNT >
    < EXEMPT_GAIN_AMOUNT > 450 < / EXEMPT_GAIN_AMOUNT >
    < EXPECTED_LIFE_YRS / >
    < PRV_FY_NBV > 0 < / PRV_FY_NBV >
    < RATES_DEC > 37.5 < / RATES_DEC >
    < RATE_FROM_LAW > 50 < / RATE_FROM_LAW >
    < RATES_DEC1 / >
    < 1 > 0 < / 1 >
    < FISCAL_LIMIT > 1275 < / FISCAL_LIMIT >
    < DEPRN_RATE > 25 < / DEPRN_RATE >
    < PY_DEPRN_RESERVE > 0 < / PY_DEPRN_RESERVE >
    < YTD_DEPRN > 749.99 < / YTD_DEPRN >
    < ACCUM_DEPRN > 749.99 < / ACCUM_DEPRN >
    < NET_BOOK_VALUE > 2250.01 < / NET_BOOK_VALUE >
    < YTD_IMPAIRMENT > 0 < / YTD_IMPAIRMENT >
    < IMPAIRMENT_RESERVE > 0 < / IMPAIRMENT_RESERVE >
    < ACCUM_LOST_RATES > 0 < / ACCUM_LOST_RATES >
    < DEPR_REINT_LOSS_NOTEXP > 0 < / DEPR_REINT_LOSS_NOTEXP >
    < GAIN_AMOUNT > 600 < / GAIN_AMOUNT >
    < GAIN_YEAR > 2006 < / GAIN_YEAR >
    < > 110270 ASSET_ID < / ASSET_ID >
    < > 110270 ASSET_ID < / ASSET_ID >
    < REINT_NOT_ACC > 437.5 < / REINT_NOT_ACC >
    < PY_COL15 > 0 < / PY_COL15 >
    < LIST_G_COL15 >
    < G_COL15 >
    < COL15_TOT > 0 < / COL15_TOT >
    < COL16_TOT / >
    < COL_16 > 0 < / COL_16 >
    < / G_COL15 >
    < / LIST_G_COL15 >
    < / G_ASSET >
    < G_ASSET >
    < ASSET_DESCR > 2240 - Cruiser informatico < / ASSET_DESCR >
    < ACQUISITION_YEAR > 2009 < / ACQUISITION_YEAR >
    JUNE < EFFECTIVE_MONTH > < / EFFECTIVE_MONTH >
    < EFFECTIVE_YEAR > 2009 < / EFFECTIVE_YEAR >
    < ASSET_AMOUNT > 1500 < / ASSET_AMOUNT >
    < EXEMPT_GAIN_AMOUNT > 0 < / EXEMPT_GAIN_AMOUNT >
    < EXPECTED_LIFE_YRS / >
    < PRV_FY_NBV > 0 < / PRV_FY_NBV >
    < RATES_DEC > 40 < / RATES_DEC >
    < RATE_FROM_LAW > 50 < / RATE_FROM_LAW >
    < RATES_DEC1 / >
    < 1 > 0 < / 1 >
    < FISCAL_LIMIT > 750 < / FISCAL_LIMIT >
    < DEPRN_RATE > 20 < / DEPRN_RATE >
    < PY_DEPRN_RESERVE > 0 < / PY_DEPRN_RESERVE >
    < YTD_DEPRN > 316.95 < / YTD_DEPRN >
    < ACCUM_DEPRN > 166.95 < / ACCUM_DEPRN >
    < NET_BOOK_VALUE > 1333.05 < / NET_BOOK_VALUE >
    < YTD_IMPAIRMENT > 150 < / YTD_IMPAIRMENT >
    < IMPAIRMENT_RESERVE > 150 < / IMPAIRMENT_RESERVE >
    < ACCUM_LOST_RATES > 2.92 < / ACCUM_LOST_RATES >
    < DEPR_REINT_LOSS_NOTEXP > 0 < / DEPR_REINT_LOSS_NOTEXP >
    < GAIN_AMOUNT > 0 < / GAIN_AMOUNT >
    < GAIN_YEAR / >
    < > 110289 ASSET_ID < / ASSET_ID >
    < > 110289 ASSET_ID < / ASSET_ID >
    < REINT_NOT_ACC > 89,32 < / REINT_NOT_ACC >
    < PY_COL15 > 0 < / PY_COL15 >
    < LIST_G_COL15 >
    < G_COL15 >
    < COL15_TOT > 0 < / COL15_TOT >
    < COL16_TOT / >
    < COL_16 > 0 < / COL_16 >
    < / G_COL15 >
    < / LIST_G_COL15 >
    < / G_ASSET >
    < / G_FAMILY >
    < / LIST_G_FAMILY >
    < / SA321 >

    Now, I have a query like the following.

    Select *.
    FROM (SELECT sap_getFileContent ('o5875854.xml', 'DIR') report_data)
    T FROM dual)
    xmltable)
    "SA321/LIST_G_FAMILY/G_FAMILY/LIST_G_ASSET/G_ASSET.
    by the way of xmltype (t.report_data)
    path of VARCHAR2 (50) column column1 ' / SA321, LIST_G_FAMILY, G_FAMILY, PARENT_FAMILY.
    , path VARCHAR2 (100) Column2 "ASSET_DESCR."
    , Column3 VARCHAR2 (50) path 'EFFECTIVE_MONTH '.
    , NUMBER column4 path 'EFFECTIVE_YEAR '.
    , path NUMBER column 5 "ASSET_AMOUNT".
    , path NUMBER column6 "EXEMPT_GAIN_AMOUNT".
    , path NUMBER column7 'EXPECTED_LIFE_YRS '.
    , path NUMBER column8 'YTD_DEPRN '.
    , path NUMBER column9 "PY_DEPRN_RESERVE".
    , path NUMBER column10 'RATE_FROM_LAW '.
    , column11 NUMBER path '1 '.
    , path NUMBER column12 'FISCAL_LIMIT '.
    , path NUMBER column13 'YTD_IMPAIRMENT '.
    , path NUMBER column14 'ACCUM_LOST_RATES '.
    , path NUMBER column15 'YTD_IMPAIRMENT '.
    , path NUMBER column16 ' LIST_G_COL15/G_COL15/COL_16.
    ) x ;

    the query always returns NULL for collumn1. Can someone help me please.

    Concerning
    SAP

    Hello

    Your example of XML code is not correct, there is no LIST_G_ASSET element closing tag.
    But I guess that's not the real problem.

    the query always returns NULL for collumn1.

    The important thing to understand is that the paths that you declare in the COLUMNS clause are relative to the context item is past the main XQuery expression. He knows more about the rest of the document, in particular of his ancestors.
    In this case, you try to process a node whose absolute path would be

    /SA321/LIST_G_FAMILY/G_FAMILY/PARENT_FAMILY
    

    in a document which the node root is G_ASSET.

    The solution is to divide the query into two parts, the first one finds PARENT_FAMILY and the collection of G_ASSET and the second more shreds the collection G_ASSET is passed the first XMLTable in relational lines:

    SQL> SELECT x1.column1
      2       , x2.*
      3  FROM XMLTable(
      4         '/SA321/LIST_G_FAMILY/G_FAMILY'
      5         passing xmltype(bfilename('TEST_DIR','o5875854.xml'), nls_charset_id('AL32UTF8'))
      6         columns
      7           column1     VARCHAR2(50)  path 'PARENT_FAMILY'
      8         , assets      XMLType       path 'LIST_G_ASSET'
      9       ) x1
     10     , XMLTable(
     11         '/LIST_G_ASSET/G_ASSET'
     12         passing x1.assets
     13         columns
     14           column2 VARCHAR2(100) path 'ASSET_DESCR'
     15         , column3 VARCHAR2(50)  path 'EFFECTIVE_MONTH'
     16         , column4 NUMBER        path 'EFFECTIVE_YEAR'
     17         , column5 NUMBER        path 'ASSET_AMOUNT'
     18         , column6 NUMBER        path 'EXEMPT_GAIN_AMOUNT'
     19         , column7 NUMBER        path 'EXPECTED_LIFE_YRS'
     20         , column8 NUMBER        path 'YTD_DEPRN'
     21         , column9 NUMBER        path 'PY_DEPRN_RESERVE'
     22         , column10 NUMBER       path 'RATE_FROM_LAW'
     23         , column11 NUMBER       path 'CASE1'
     24         , column12 NUMBER       path 'FISCAL_LIMIT'
     25         , column13 NUMBER       path 'YTD_IMPAIRMENT'
     26         , column14 NUMBER       path 'ACCUM_LOST_RATES'
     27         , column15 NUMBER       path 'YTD_IMPAIRMENT'
     28         , column16 NUMBER       path 'LIST_G_COL15/G_COL15/COL_16'
     29       ) x2
     30  ;
    
    COLUMN1    COLUMN2                          COLUMN3        COLUMN4    COLUMN5    COLUMN6    COLUMN7    COLUMN8    COLUMN9   COLUMN10   COLUMN11   COLUMN12   COLUMN13   COLUMN14   COLUMN15   COLUMN16
    ---------- -------------------------------- ----------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ----------
    2240       2240-Equipamento informatico     JANUARY           2009       3000        450                749,99          0         50          0       1275          0          0          0          0
    2240       2240-Equipamento informatico     JUNE              2009       1500          0                316,95          0         50          0        750        150       2,92        150          0
     
    
  • How can I display the value of an XML element in my dynamic textbox?

    I followed the instructions of the forum here. When I examined the record/document, the result did not 100% accurate.

    Here is my Code XML and Flash Code:

    XML

    <? XML version = "1.0" encoding = "UTF-8" standalone = "yes"? >

    < userbase >

    Test line 1 < projinfo > < / projinfo >

    < / userbase >

    Flash

    var my_xml:XML = new XML();

    var myURL:URLRequest = new URLRequest ("userbase.xml");

    var loader_URL:URLLoader = new URLLoader (myURL);

    loader_URL.addEventListener ("complete", fileLoaded);

    function fileLoaded(e:Event):void

    {

    my_xml = XML (loader_URL.data);

    mynamehosp. Text = my_xml.projinfo;

    }

    When I saw the dynamic textbox file showed "line of Test." If I did the < projinfo > element reads like this:

    < projinfo > Test line 1 more text here < / projinfo >

    The dynamic TextBox was 'Test line more text here. It is completely ignoring the number "1". How can I fix it? When our company actually uses it, it is possible that we will have (a) number (s) in the values of the organization unit.

    Any ideas?

    The code is very well. Probably you embed the police, and if you did you do have figures included.

  • Beehive netui - config.xml and the ampersand problem

    <>url-config
    < url-encodes-URL > false < / url-encodes-URL >
    < html-amp-entity > false < / html-amp-entity >
    < / url-config >

    I added the following lines in the Beehive netui - config.xml, but getting these errors saying entered invalid, we use WLP 10.2, any help at this very appreciated


    java.lang.IllegalStateException: has not been initialized in /WEB-INF/beehive-netui-config.xml
    at org.apache.beehive.netui.pageflow.internal.PageFlowInitialization.performInitializations(PageFlowInitialization.java:95)
    at org.apache.beehive.netui.pageflow.PageFlowContextListener.contextInitialized(PageFlowContextListener.java:47)
    to weblogic.servlet.internal.EventsManager$ FireContextListenerAction.run (EventsManager.java:458)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs (unknown Source)
    Truncated. check the log file full stacktrace
    org.apache.beehive.netui.util.config.ConfigInitializationException: Validation errors occurred parsing the configuration file "/WEB-INF/beehive-netui-config.xml". Cause: org.xml.sax.SAXParseException: cvc-complex - type. 2.4.d: invalid content were found starting with the element "url-config". No child element is planned at this stage.
    to org.apache.beehive.netui.util.config.parser.NetUIConfigParser$ 3.error(NetUIConfigParser.java:171)
    at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:175)
    at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:382)
    at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:316)
    to com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator$ XSIErrorReporter.reportError (XMLSchemaValidator.java:429)
    Truncated. check the log file full stacktrace
    org.xml.sax.SAXParseException: cvc-complex - type. 2.4.d: invalid content were found starting with the element "url-config". No child element is planned at this stage.
    at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:236)
    at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:172)
    at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:382)
    at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:316)
    to com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator$ XSIErrorReporter.reportError (XMLSchemaValidator.java:429)
    Truncated. check the log file full stacktrace


    e < 28 October 2008 9:40:50 PM PDT > < error > < hats > < BEA-149265 > < error has occurred in the execution of the request for deployment with the ID ' 1225255174548 'for task ' 0'. Error: ' weblogic.application.ModuleException: '
    weblogic.application.ModuleException:
    at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:975)
    at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:361)
    to weblogic.application.internal.flow.ModuleStateDriver$ 3.next(ModuleStateDriver.java:204)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
    at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
    Truncated. check the log file full stacktrace
    org.xml.sax.SAXParseException: cvc-complex - type. 2.4.d: invalid content were found starting with the element "url-config". No child element is planned at this stage.
    at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:236)
    at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:172)
    at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:382)
    at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:316)
    to com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator$ XSIErrorReporter.reportError (XMLSchemaValidator.java:429)
    Truncated. check the log file full stacktrace


    < 28 October 2008 9:40:50 PM PDT > < error > < hats > < BEA-149202 > < encountered an exception while trying to commit the task 9 for the application "PortalEar". >
    < 28 October 2008 9:40:50 PM PDT > < WARNING > < hats > < BEA-149004 > < failures have been detected all by initiating the task to redeploy to app "PortalEar" >.
    < 28 October 2008 9:40:50 PM PDT > < WARNING > < hats > < BEA-149078 > < message 149004 track battery
    weblogic.application.ModuleException:
    at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:975)
    at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:361)
    to weblogic.application.internal.flow.ModuleStateDriver$ 3.next(ModuleStateDriver.java:204)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
    at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
    Truncated. check the log file full stacktrace
    org.xml.sax.SAXParseException: cvc-complex - type. 2.4.d: invalid content were found starting with the element "url-config". No child element is planned at this stage.
    at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:236)
    at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:172)
    at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:382)
    at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:316)
    to com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator$ XSIErrorReporter.reportError (XMLSchemaValidator.java:429)
    Truncated. check the log file full stacktrace


    < 28 October 2008 9:40:51 PM PDT > < WARNING > < hats > < BEA-149252 > < no deployment "PortalEar" found to stop operation. >

    Looks like you added the config url entry in the wrong place in the config file, so it fails to analyze. Looking at the diagram of the Beehive netui config, the elements in the netui-config element must be in the following sequence:













    So "url-config" should come before "iterator-factories" and after 'jsp-tag-config' in the config file.

    Jeff

Maybe you are looking for