document.getElementsByTagName("*") truncates the querystrings in xml

Hey. A difficult for me, being is not a guru in xml. I pasted the code below and the relevant xml. It seems that after analysis of an xml document, when you convert the result a NodeList, querystrings are truncated.

For example, a URL such as domainGoesHere/something.aspx? a = 1 & b = 2 & c = 3

is replaced by domainGoesHere/something.aspx? a = 1

I know & is illegal in xml, with the exception of things like "but of course you need in URLs... I tried to convert the & characters &, but nothing helped.

What is the proper way to preserve the URL querystrings?

See you soon,.

Justin D.

The last element in the xml file is truncated.


- http://purl.org/dc/elements/1.1/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:nyt="http://www.nytimes.com/namespaces/rss/2.0" version="2.0">
- 
  NYT > Global Home
  http://www.nytimes.com/pages/global/index.html?partner=rss&emc=rss
  http://www.nytimes.com/services/xml/rss/nyt/GlobalHome.xml" />
  
  en-us
  Copyright 2010 The New York Times Company
  Tue, 24 Aug 2010 03:55:27 GMT
- 
  NYT > Global Home
  http://graphics.nytimes.com/images/section/NytSectionHeader.gif
  http://www.nytimes.com/pages/global/index.html?partner=rss&emc=rss
  
- 
  U.S. General Cites Ambitious Goals to Train Afghan Forces
  http://www.nytimes.com/2010/08/24/world/asia/24military.html?partner=rss&emc=rss 

The song "& emc = rss" is truncated.


    private static NodeList GetNodeListFromInputStream(InputStream is) {

        NodeList list = null;
        InputStream strippedIS = GetStrippedXmlStreamFromInputStream(is);

        if (strippedIS == null) // Stripping problem- malformed xml?
            return null;

        byte[] bytes = new byte[1];

        try {

            DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory. newInstance();
            docBuilderFactory.setNamespaceAware(true);
            docBuilderFactory.setAllowUndefinedNamespaces(true);
            DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();
            bytes = IOUtilities.streamToBytes(strippedIS);
            ByteArrayInputStream bais = new ByteArrayInputStream(bytes);

            docBuilder.isValidating();
            Document doc = docBuilder.parse(bais);           // Get stream from xml file    strippedIS

            list = doc.getElementsByTagName("*"); 

        }
        catch ( Exception e )
        {
                System.out.println( "\n\n**** Parse exception: " + e.getMessage() + "\n");
                return null;
        }

        return list;

Hello. You're right it should work, but somehow it does not. I just changed to replace & with 'and business' and it was ok. Changed after. TKS for help, J.

Tags: BlackBerry Developers

Similar Questions

  • problem opening document pages. Get the message: the requested index.xml file is missing.

    I can't open the document 'Pages' and get "the index.xml file required is missing."

    You should post the related issues of Pages in the Pages for Mac community support.

    You try to open a document v5 Pages in Pages ' 08 or 09 ' which does not support the format of document Pages v5. Exit your application Pages ' 08 or 09 ' and then double-click the document even have it open in Pages v5.

    When you are in Pages ' 08, ' 09, or same v5, the red light on the title bar of the document just close the current document and fails to complete Pages.

  • I'm not able to open my documents pages. I get the message: the requested index.xml file is missing.  I wonder if it is because I have updates 10.11.5

    I have an iMac (20-inch, mid 2007) processor 2 GHz Intel Core 2 Duo 3 GB 667 MHz DDR2 SDRAM memory and recently updated to el capitan 10.11.5.  I have Pages ' 09, and I can't open my documents pages and get the message:

    The index.xml file required is missing.

    I now see that it says return to default pages 5.6.2.

    I can open them as 5.6.2 then save tehm in pages ' 09?

    Can someone help me with easy tips?

    Only the Pages ' 09 or old documents contain internal index.xml file. When you try to open a document in Pages ' 09 Pages v5, you get this dialog on the missing index.xml. The key is to stop Pages ' 09 and then double click on the document to open it in v5.6.2 Pages.

    Pages ' 09 will not leave by simply clicking on the red light on the title bar of the document. As long as the Pages ' 09 continues to run, it will intercept all attempts to open any document Pages, including incompatible versions of the v5 Pages.

    This has nothing to do with OS X 10.11.5. He has been a user focused on the issue since October 2013.

  • Reading number of XML nodes in a document & amp; return the result in the text member

    Hi all

    I wonder if you can help me with the following:

    I want to read the number of nodes in an XML document and return the result in a text cast member. That's what I do so far, but he refuses to work

    Yes, my mistake. That should have been:
    --
    tList =
    nNodes = count(tList[1])
    sText = «»
    Repeat with i = 2 to nNodes
    tText = tList [1] .getPropAt (i)
    sText = sText & tText & RETURN
    end repeat
    -Remove rear BACK tank
    remove the last tank of sText
    -Place ALL the text in a text member
    Member ("test1"). Text = sText
    -- ...

  • I am trying to open a file and make me notice that the required index.xml file is missing. Is it possible to access the file? I don't know why this happened.

    I am trying to open a file in Pages 09 and am getting notice has the required index.xml file is missing. Is it possible for me to access the file? I don't know why this happened.

    You open a file with Pages ' 09 Pages 5.x.

    You need to right-click on the file and open it with Pages 5.x (the one with the orange document icon).

    Peter

  • The file of the bar - descriptor.xml (and make the application of command line)

    I made a game with air and it is online for sale on Android and iOS. It is somewhat popular and I thought to put up on Blackberry for quite awhile now and with the Port of soon-to-start-A-Thon, this seems to be a great time to finally make it.

    BlackBerry is not very common that here where I live in Sweden, however it still looks like an interesting with a potential platform if I want to get the trip. Unfortunately I don't own a camera myself so I'll use the Simulator. With some graphic problems with the simulator when running in mode BB10DevAlpha (icons does not appear right) and the Simulator is very slow when running in mode BB10DevAlphaSafe (chart appears on the right, but it seems that updating them requires more CPU my computer are available).

    The game is built using nothing other than Adobe Flash Professional CS6 and a bunch of command line tools to build the package and sign. I've only got an old computer with Windows XP now since the death of my main PC, all at the time and since the Port-A-Thon is just a few days I do with what I got.

    Firstly I understand that only AIR 3.1 is supported by Blackberry 10, so I use the old AIR SDK 3.1 to create a SWF (flash) file.

    What I really need to do should be used in the exported SWF file of the game, then use the command line tools provided by RIM to build the package, right?

    Except that I did not count on bar - descriptor.xml to be so difficult to understand.

    I was brought to the documentation here: https://developer.blackberry.com/air/documentation/bb10/bar-descriptor_config_file.html

    It says Adobe AIR at the top, the platform selected is Blackberry 10 and the title says "bar-descriptor configuration file", so it must be in the right place!

    I start by trying the 'bar-descriptor configuration example file"on this page:

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



      
          None
          fake
      

     
      
       Name of the author
     
      
       gXXXxXXx ##XxXxXxxxXxXX #xxx
     
      
       Core.Games
     
      
       Icon.PNG
     
      
       HelloWorld - splash.png
     
      
       read_geolocation
       use_camera
     
      
       1

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

    Of course during the test I replaced a few things in the example above with the correct filenames for images etc, I just copied the example of right - off this time to you guys show what I mean.

    Firstly, I extract "blackberry-tablets-sdk - 3.0.0" in a folder on the disc, then I make sure as a full path to the "bin" in the SDK folder inside the path on the OS environment variable.

    Then I read on "Applications of Test using the command line": https://developer.blackberry.com/air/documentation/bb10/testing_your_application_cmd_ms_2010851_11.h...

    Now I run:

    BlackBerry - airpackager.bat - package installApp - blackberry-myappname - new.bar - launchApp myappname-blackberry-bar - descriptor.xml myappname.swf myappnameicon86.png bg splashscreen1024.png - device 192.168.8.128

    Note that "bg" is a folder with 500 images that must be accessible from the app. I hope that I can just add the folder like this and not type a path to each image file...

    What I get (in lib\adt.jar via the bat file):

    error 101: Namespace is missing
    Error: Validation of the AIR is not

    Okay, so the example did not straight on the box.

    Now, I've read all paragraphs in the first URL I linked above ("the bar-descriptor configuration file"). I start my own XML file and make sure to include everything that is marked as "necessary". That's what I'm left with:

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



        MyCompany
        
            
            com.mydomain.myappname
            My App name
            3.0.0
            
                splashscreen1024.PNG
            

            1.5.0
        

        run_native
        
            application
            
                bb.action.VIEW
                application/octet-stream
            

        

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

    I have no idea of what concerns the block whole call target, but it took, so he must be there.

    Now I launch (notice that myappnameicon86.png is gone since no icon is mentioned in the above XML code, it is not mandatory):

    BlackBerry - airpackager.bat - package installApp - blackberry-myappname - new.bar - launchApp myappname-blackberry-bar - descriptor.xml myappname.swf bg splashscreen1024.png - device 192.168.8.128

    Yet once, I get:

    error 101: Namespace is missing
    Error: Validation of the AIR is not

    Frustrated I get autour on the forums for answers, because the official documentation is nowhere getting me.

    I'm left with this:

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


    http://ns.Adobe.com/air/application/3.1">
        com.mydomain.myappname
        1.5.0
        
        My App name
        
        My App name
        
        
            myappname.swf
            standard
            fake
            true
            true
            landscape
            GPU
            fake
        

        
            myappnameicon36.PNG
            myappnameicon48.PNG
            myappnameicon72.PNG
        

        fake
        fake
        
            qnx.fuse.ui.skins.QNXDevice
            qnx.fuse.ui.skins.QNXNetwork
            qnx.fuse.ui.skins.QNXSensors

            qnx.fuse.ui.skins.QNXSkins
        

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

    Looks like the XML code that I use when I build for Android.

    First of all it doesn't have the tag root of qnx, but also nothing of the icons are of the required size (86 x 86). The tag required splashscreens and invoke target is also absent, to name a few. No idea of what the entire block of 'extensions' really do.

    Surely, this does not work:

    BlackBerry - airpackager.bat - package installApp - blackberry-myappname - new.bar - launchApp myappname-blackberry-bar - descriptor.xml myappname.swf QNXDevice.ane QNXNetwork.ane QNXSensors.ane QNXSkins.ane myappnameicon36.png myappnameicon48.png myappnameicon72.png bg-device 192.168.8.128

    Success in building the package BAR to my infinite surprise!

    He even managed to install on the Simulator. An icon for the game. However when it auto-couru the app went into landscape, thought for a second and then crashed (or you leave?) without a message.

    Perhaps because the required qnx tag was missing in the XML?
    Perhaps because images in the bg file could not be loaded?
    Perhaps because he had no permission to keep screen from dimming?

    I have no idea. I tried to add XML to qnx at the address previous to the bar - descriptor.xml, I thought that maybe he needed both the qnx block for when you run the application and the application block for when packaging. But now, he has complained of something like XML is not not clean ("' fatal error: markup in the document following the root element must be well-formed." ").

    So he came to it, I have to ask for help if I ever make the deadline of the Port-A-Thon.

    (1) how am I supposed to write the bar - descriptor.xml?
    (2) what command line starting by "blackberry - airpackager.bat" is OK to use?
    (3) all I have to do is build the SWF using Adobe Flash Professional CS6 and then pack it using the Blackberry SDK, right?

    First of all, there are two xml files that you need.

    One is called the manifesto, is to AIR and is called yourappname- app.xml. It is identical to the ones you use for Android and IOS, though some elements will be ignored. It's one you need to switch on the command line, and is probably causing the 'Namespace' missing error message. A file manifest a minimum is:

    
    http://ns.adobe.com/air/application/3.1">
    
        com.example.appname
        My Fabulous Game
        1.0.0
    
        FileNameOfYourSwfWithoutExtension
        YourCompanyName
        
            [This value will be overwritten by Flash Builder in the output app.xml]
            true
            false
            none
            cpu
            false
        
    
    

    Replace the text in red with your own stuff.

    The second xml file is called to the bar of descriptor. It is for App World and the installation process and is called bar - descriptor.xml. It contains information about signing code, icon, permissions etc. A simple bar - descriptor.xml is:

    
    
       
          none
          true
          landscape
          false
          cpu
       
    
       
       your-name-on-certificate
       your-id-on-certificate
    
       core.games
    
       
       1
    
       
       
          icon86x86.png
       
       splash-landscape.png
    
       
       2.1.0.1314
    
       
       access_shared
       access_internet
       play_audio
       set_audio_volume
    
    

    Make sure that you at least change the red dots.

  • How to recover the server response XML data

    Hey fellows,

    So I wrote this piece of code that sends an image to a server (thanks a lot Mantaker for the position you where has written on it!) and then I expect to receive a response in the form of XML code. I tried to use getResponseMessage(), which gives me a nice 'OK '.

    How could I achieve this? I read somewhere that it might be possible through a feed, could you help me?

    I'll give you a lot of congratulations!

    If you already have the basics of an HttpConnection down, it gets a little easier later.

    Once you have the your HttpConnection InputStream you can create a Document for analysis using the built-in XML parser.

    public static Document getXmlDoc(InputStream in)
    {
        Document doc = null;
        DocumentBuilderFactory docBuilderFactory
            = DocumentBuilderFactory.newInstance();
    
        DocumentBuilder docBuilder;
    
        try {
            docBuilder = docBuilderFactory.newDocumentBuilder();
            docBuilder.isValidating();
    
            doc = docBuilder.parse(in);
            doc.getDocumentElement().normalize();
        } catch (Exception e) {
            System.out.println("getXmlDoc Error: " + e);
        }
    
        return doc;
    }
    

    It is a basic function that I use to read a XML from a web server. If there are errors reading or parsing of the document, this function returns null.

    After making sure that you close your InputStream, you can start reading your document.

  • The opening of the RPD MDS XML error

    The landscape

    I have a relatively simple SPR with a single Oracle data source considered. OBIEE version 11.1.1.9

    I followed best practices and star schema article to define the logical subject area: 8 dimensions and a fact table.

    dashboards and reports on OBIEE work well and no problems of RPD to date.

    Usage tracking is enabled and modeled.

    The problem

    I'm in the early stages of planning for automated deployment, but so far I can't properly re - open the RPD in the form of XML documents.

    Backup repository happily in XML format, but on open after several attempts, accepts the password but gives the following error:

    "nQSError 90028] XML Validation error to line number 5: data type error: Type: InvalidDatatypeValueException, ID of Message: 'mError' is not unique."


    Troubleshooting so far

    • Like a madman, google-> nothing (if this isn't common)
    • RPD light up to the basic set, same problem
    • Tried on another server with an export charges of an RPD offline (the most recent version of the same file). Same question. (so, not my machine)
      Tried with SampleApp DPR installation - error does not (not the application)
    • I opened all the MDS XML files exported in Notepad ++ and sought non-unique value. It is 250 hits around 9 files - all were the logical table XMLs. In each case the offending value is located in the < AttrDefn > element of a column of logic and resembles this example:

    < LogicalColumn mdsid = ' m4000001b-0ab3-1580-92e1 - a 0, 0102420000 "name ="Date time"isWriteable ="false">

    "< AttrDefn mdsid = 'mError" name = "AD_3900:73941442851546" > "

    < mdsid Expr = 'm00000001-01f4-0000-cff2-f3fb00000000' name = 'Expr' >

    < ExprText > <! [CDATA ['%1']] > < / ExprText >

    < ExprTextDesc > <! [CDATA ['MDM'. » ». "' MDM '. "" "" A_DIM_VALUE_DATE '. "" DATE_TIME_END']] > < / ExprTextDesc >

    < ObjectRefList >

    "< RefId="m00000001-01f4-0000-cff2-f3fb00000000-mc0000002-ddf7-156e-806e-0a0102420000 RefObject "objectTypeId ="3003"objectRef="/oracle/bi/server/base/PhysicalTable/c0000000-ddf7-156e-806e-0a0102420000.xml#mc0000002-ddf7-156e-806e-0a0102420000"/ >

    < / ObjectRefList >

    < / Expr >

    < / AttrDefn >

    < / LogicalColumn >


    See attached the error and the XML example.

    Options

    • Raise a SR?
    • Rebuild my logical Tables - and the presumable presentation layer?
    • ?

    Thanks in advance for any guidance - Niamh

    You want to integrate with version control in the House and the script / automate patches rpds based environments onward.

    You can do this with comparerpd/patchrpd command line tools - on the binary RPD. You need not MDS XML. You can put the RPD in control source (and if you want to use XML MDS, keep a copy of it in the source code control too - but use it as your exclusive of the RPD representation)

    At the Stewart Bryson blog on RM.com with git as an example.

    Yes, Stewart and I disagree on this subject ;-)

    https://medium.com/red-pill-Analytics/concurrent-RPD-development-with-OBIEE-the-checkmate-approach-8bd8279ec1d9

    Development of simultaneous RPD in OBIEE - Consulting Rittman Mead

    But - I think that what you say about is not so much simultaneous development, such as the automated environment implementation service/deployment. And as I said, this can be done with standard command line tools, no MDS needed XML (and I think that Stewart would agree with me on this...)

  • Rights allowed the collection of XML and PDF of

    Hello

    Requirements is something in this line... Convert 3 page word doc - with the name field, date field and a few boxes to PDF. It would send then send back by e-mail, for further processing. Interested in the actual data rather than the PDF form.

    I used Adobe LiveCycle designer to create rights permit PDF with fields name, drop-down, radio buttons and submit by email button. Only reason that I turned him on rights is so that the user can save the partially completed document locally and later fill it out completely and send through the desktop e-mail client. End users would have the last drive in your computer and the outlook e-mail client.

    I guess, when the user selects the button send, an e-mail message starts with setting XML extension and can send it. On my end, I have user XML parser and read the data. I don't have the real PDF.

    Would be, collection of data, in this way, always drop less 500 use limit under license on PDF with Reader Extensions enabled.

    There is no comment or digital signatures involved or collected. Only the data in the form of XML and not the real PDF.

    Thanks in advance.

    If you (the licensee) are not extract data to an instance of an extended document (PDF) that contains the data of the beneficiary, I don't see how you can violate the agreement.

  • Photoshop CS6 using javaScript to truncate the name of the alpha channel

    Hello

    I am a production artist and I work with PSD files created in Adobe Scene7's Image Authoring Tool. These PSD files contain a background as well as the alpha 1-20 layers layer. My script should make a new empty layer for each alpha channel in the document. He then fills the new grey layer. So far, my code accomplishes this mission. However, I would like to apply the alpha channel of the layer name, but I need the name will be truncated. Each alpha channel begins with one or more characters, followed by a bar backslash and then ends with one or more characters. Here is an example:

    An alpha channel can be named: Floor\floor

    In this example, I need my name of layer to be fair: floor. This means that all characters to the left of the backslash, including the backslash itself needs to be scrapped. I used the subSring() for this statement. When I try to step through the code line by line in ExtendScript, I immediately get an error that says no complete string constant and line 31 of my code is highlighted. I think that he doesn't like the way I wrote the backslash character, although I have it surrounded by double quotes to define it as a string.

    Can someone tell me why I get this error?

    Here is my code with a lot of comments to guide you through the process. I wrote where the error occurs in red characters.

    I'm new to JavaScript, so I'm not sure that my while loop is accurate.

    #target photoshop

    #target photoshop makes the script execution in PS.

    declare the variable to contain the active document

    var myDoc = app.activeDocument;

    declare the variable to hold the number of alpha channels, excluding the RGB layers

    var alphaChan = myDoc.channels.length - 3;

    Alert ("alpha channels exist" + alphaChan);

    create a loop to make new layers depends on the number of channels alpha, fill layer with gray and apply the name of alpha channel to the new layer

    for (a = 0; a < alphaChan; a += 1) {}

    make new Virgin layer

    myDoc.artLayers.add ();

    fill empty layer with gray

    var color = new SolidColor();

    Color.RGB.Red = 161;

    Color.RGB.Green = 161;

    Color.RGB.Blue = 161;

    myDoc.selection.fill (color);

    variable stores the name of the alpha channel

    var alphaName = myDoc.channels [3 + a];

    variable stores the length of the name of alpha channel

    var lz = alphaName.length;

    declare the index variable to initialize the character position 1 the name of alpha channel

    var x = 0;

    truncate the name of the alpha channel by removing all characters preceding the symbol "\".

    While (alphaName.subString (x)! = ' \ ') { (ExtendScript gives an error for this line and highlights the backslash and surrounding quotes) }

    alphaName = alphaName.subString ((x+1), z);

    x += 1;

    z = 1;

    Return alphaName;

    }

    remove the backslash in name of alpha channel

    alphaName = alphaName.subString ((x+1), z);

    apply name truncated to the corresponding layer alpha channel

    myDoc.artLayers [a] .name = alphaName;

    }

    While (alphaName.subString (x)! = ' \ ') {}

    should be

    While (alphaName.subString (x)! = ' \ ') {}

  • Change the Document displayed in the viewer of taskflow documents programmatically

    I was wondering if anyone has an example of java to alter a document read in the document viewer task flow mainly by changing the resource ID parameter to refer to a different EL programmatically. The use case is:

    1. research of user data using a form of AF query parameter bound to an AF:Table
    2 each row of the table contains an ID to a UCM of the document content that matches other data displayed in the line
    3. when a row is selected in the table I want to be able to edit the document that is displayed in the workflow Document Viewer to that related to the content of the currently selected row id.

    I am able to get a handle to the view Document Taskflow on the page of the layer of links to help

    BindingContext bindingContext = BindingContext.getCurrent ();
    DCBindingContainer dcbind = (DCBindingContainer) bindingContext.getCurrentBindingsEntry ();
    DCBindingContainer docviewer = (DCBindingContainer) dcbind.findExecutableBinding ("doclibdocumentviewer1");

    However most of the methods that look, they would have a potential to create a new EL in the ID parameter resource like setParameterExpression (< String >, < String >) are all listed "reserved for the internal frame.

    In the pageDef, you would see the Refresh property - try setting it.

    Sample:


    taskFlowId="/WEB-INF/EmployeesTF.xml#EmployeesTF".
    Activation = "deferred."
    R = "ifNeeded.
    xmlns = "http://xmlns.oracle.com/adf/controller/binding" / >

    For more information on the use case, please take a look at
    http://docs.Oracle.com/CD/E21764_01/Web.1111/b31974/taskflows_regions.htm#CHDEIFBB

    Thank you
    Nini

  • Level lock table while truncating the partition?

    Below, I use the version of oracle.

    Oracle Database 11 g Enterprise Edition Release 11.2.0.2.0 - 64 bit Production
    PL/SQL Release 11.2.0.2.0 - Production
    CORE Production 11.2.0.2.0
    AMT for Linux: Version 11.2.0.2.0 - Production
    NLSRTL Version 11.2.0.2.0 - Production

    I have a script to truncate the partition as below. Is there a table-level lock while truncating the parition? Any input is appreicated.

    ALTER TABLE TEMP_RESPONSE_TIME TRUNCATE PARTITION part1

    >
    Is there a table-level lock while truncating the parition?
    >
    No - it will lock the partition being truncated.

    Is there a global index on the table? If so they will be marked UNUSABLE and must be rebuilt.

    See the VLDB and partitioning Guide
    http://Oracle.Su/docs/11g/server.112/e10837/part_oltp.htm
    >
    Impact of surgery Maintenance of Partition on a Table partitioned local index
    Whenever a partition maintenance operation takes place, Oracle locks the partitions of the table concerned for any DML operation. Data in the affected partitions, except a FALL or a TRUNCATION operation, are always fully available for any operation selection. Given that clues them are logically coupled with the (data) table partitions, only the local index partitions affected table partitions must be kept as part of a partition maintenance operation, which allows the optimal treatment for the index maintenance.

    For example, when you move an old score a level of high-end storage at a level of low-cost storage, data and index are always available for SELECT operations. the maintenance of the necessary index is either update the existing index partition to reflect the new physical location of the data or, more commonly, relocation and reconstruction of the index to a level of storage partition low cost as well. If you delete an older partition once you have collected it, then its local index partitions deleted, allowing a fraction of second partition maintenance operation that affects only the data dictionary.

    Impact of surgery Maintenance of Partition on Global Indexes

    Whenever a global index is defined on a table partitioned or not partitioned, there is no correlation between a separate partition of table and index. Therefore, any partition maintenance operation affects all global indices or index partitions. As for the tables containing indexes, the affected partitions are locked to prevent the DML operations against the scores of the affected table. However, unlike the index for the local index maintenance, no matter what overall index remains fully available for DML operations and does not affect the launch of the OLTP system. On the conceptual and technical level, the index maintenance for the overall index for a partition maintenance operation is comparable to the index maintenance which would become necessary for a semantically identical DML operation.

    For example, it is semantically equivalent to the removal of documents from the old partition using the SQL DELETE statement to drop old partition. In both cases, all the deleted data set index entries must be removed to any global index as a maintenance operation of normal index that does not affect the availability of an index to SELECT and DML operations. In this scenario, a drop operation represents the optimal approach: data is deleted without the expense of a conventional DELETE operation and the indices are maintained in a non-intrusive way.

  • Cannot install the fix for XML XMLP_Desktop_R562 on Vista OS Editor

    Hello

    I remove all the registry files, closed all word documents and installed the XMLP_Desktop_R562, it has installed but I do not see the "Add-INS" tab in MS-Word.
    all of the suggestions.

    Thank you
    Pravin

    Hi Pravin,

    That's already what I wrote in the doc of training for the installation of XMLp of PT 8.49 on XP. You can try the following to see if the toolbar works in MS Word. (I guess the Version that you are using should be like a similar process as that I mentioned below)

    Try (This guide line, I wrote is for XMLp 8.49 PT, it should be similar you can try):

    1. first PIA connection and go to the following path: HOME-> tools-> XML Publisher Reporting-> Setup-> design assistance * +, then download the Template Designer local Client Tools on your laptop or PC.

    2. Once you have downloaded the plug-in for MS Word, unzip the package and install it to your MS Word application. Once you have installed successfully, you will see the menu add-in in your Word toolbar

    3. If you don't find the Add-in on your Word application toolbar, you can add it manually to supplement your Word. The model of generator file is under the following path if you installed successfully: C:\Program Files\Oracle\XML Publisher Desktop\Template Builder for Word\TemplateBuilder.dot + *.

    Please try step 3 to manually add additional custom in the installed folder of XMLp. Or you can reduce the security of MS Word for Macro, Add-Ins, etc. If this does not work, there may be some problem with your installation, please increase to Oracle for more support.

    I hope this helps.

    Thank you

    IF the table

  • What is the point of XML to format log alerts in 11g?

    DB version: 11.1.0.6.0
    OS: RHEL 5

    What is the point of having XML format log alerts in 11G?


    When I tried to open in Internet Explorer
    Only one top level element is allowed in an XML document. Error processing resource 'file:///D:/Work/FILES/log.xm...
    <msg time='2011-01-27T19:42:53.484+08:00' org_id='oracle' comp_id='rdbms'
    I got an error of similair with FireFox. How did the newspaper alert XML file used in the diagnosis?

    It is used by the ADRCI command line utility:

    http://download.Oracle.com/docs/CD/B28359_01/server.111/b28319/adrci.htm#BGBBBBEA

  • Open the file error xml

    Hello

    I was struck with an error by opening the xml file. Thanks for giving me your entries.

    I use the pl/sql script for outbounding data in .xml format. But after you create the file successfully, I am not able to open it in Solution Explorer. The data with "&" in a column and it will be available in the data in many areas. Where as if I try to create the same report Oracle using "xml" as output, then I don't get this problem. And I am able to open the same in Explorer perfectly.

    Here I am pasting the script that I created

    create or replace the PROCEDURE GETXML_TAG (ERRBUT OUT VARCHAR2,
    RETCODE OUT VARCHAR2,
    P_DIR_NAME VARCHAR2)
    IS
    v_record_data varchar2 (4000): = null;
    v_order_id varchar2 (50): = null;
    v_order_date varchar2 (50): = null;
    v_order_mode varchar2 (50): = null;
    v_order_total varchar2 (50): = null;
    v_file_dir varchar2 (100): = ' / usr/tmp ';

    CURSOR cur_hdr IS
    SELECT DISTINCT MINISTRY_CODE, DEPT_CODE, "ENTITY_CODE
    OF XGBZ_FIN_STAGE_ACS
    WHERE tx_timestamp IS NULL;

    CURSOR cur_line (p_min_code IN VARCHAR2,
    p_dept_code IN VARCHAR2) IS
    SELECT seg_no,
    seg_code,
    TO_CHAR (seg_description) seg_description,
    start_date,
    End_date,
    status,
    disable_flag
    OF xgbz_fin_stage_acs
    WHERE tx_timestamp IS NULL
    AND ministry_code = p_min_code
    AND dept_code = p_dept_code;

    BEGIN
    v_filename: = 'GEBIZ_EPO ' | TO_CHAR (SYSDATE, 'DDMMYYYYHH24MI'): '. XML';
    f_xml_file: = UTL_FILE. FOPEN (v_file_dir, v_filename, 'W');
    v_record_data: = ' <? XML version = "1.0" encoding = "UTF-8"? > ';
    UTL_FILE.put_line (f_XML_FILE, v_RECORD_DATA);
    UTL_FILE.put_line (f_XML_FILE, '< GEBIZ_ACCOUNT_SEGMENT >');
    dbms_output.put_line (' step 1 ' | v_file_dir |) » -'|| v_filename);

    FOR cur_hdr_rec IN cur_hdr
    LOOP
    dbms_output.put_line ('step 2');
    UTL_FILE.put_line (f_XML_FILE, '< HEADER >');
    UTL_FILE.put_line (f_XML_FILE, '< MINISTRY_CODE >' | cur_hdr_rec.ministry_code | / MINISTRY_CODE > ');
    UTL_FILE.put_line (f_XML_FILE, '< DEPT_CODE >' | cur_hdr_rec.dept_code | / DEPT_CODE > ');
    UTL_FILE.put_line (f_XML_FILE, '< ENTITY_CODE >' | cur_hdr_rec.entity_code | / ENTITY_CODE > ');
    UTL_FILE.put_line (f_XML_FILE, ' < / header > ');

    FOR cur_line_rec IN cur_line (cur_hdr_rec.ministry_code, cur_hdr_rec.dept_code)
    LOOP
    dbms_output.put_line ('step 3');
    UTL_FILE.put_line (f_XML_FILE, '< DETAILS >');
    UTL_FILE.put_line (f_XML_FILE, '< SEGEMENT >');
    UTL_FILE.put_line (f_XML_FILE, '< NUMBER >' | cur_line_rec.seg_no |) ("< / NUMBER >");
    UTL_FILE.put_line (f_XML_FILE, '< CODE >' | cur_line_rec.seg_no |) "< code >');
    UTL_FILE.put_line (f_XML_FILE, '< DESCRIPTION >' | cur_line_rec.seg_description | / DESCRIPTION > ');
    UTL_FILE.put_line (f_XML_FILE, '< START_DATE >' | cur_line_rec.start_date | / START_DATE > ');
    UTL_FILE.put_line (f_XML_FILE, '< end_date >' | cur_line_rec.end_date | / end_date > ');
    UTL_FILE.put_line (f_XML_FILE, '< STATUS >' | cur_line_rec.status | / STATUS > ');
    UTL_FILE.put_line (f_XML_FILE, '< DELETE_FLAG >' | cur_line_rec.disable_flag | / DELETE_FLAG > ');
    UTL_FILE.put_line (f_XML_FILE, '< /SEGEMENT >');
    UTL_FILE.put_line (f_XML_FILE, ' < / DETAILS > ');


    END LOOP;

    END LOOP;
    dbms_output.put_line ('step 4');
    UTL_FILE.put_line (f_XML_FILE, ' < / GEBIZ_ACCOUNT_SEGMENT > ');
    UTL_FILE. FCLOSE (f_XML_FILE);

    EXCEPTION
    WHEN UTL_FILE. INVALID_OPERATION THEN
    dbms_output.put_line (' invalid operation for ' | v_filename);
    UTL_FILE. FCLOSE_ALL;

    WHEN UTL_FILE. INVALID_PATH THEN
    dbms_output.put_line (' no access path is valid for ' | v_filename);
    UTL_FILE. FCLOSE_ALL;

    WHEN UTL_FILE. INVALID_MODE THEN
    dbms_output.put_line (' Mode is not valid for ' | v_filename);
    UTL_FILE. FCLOSE_ALL;

    WHEN UTL_FILE. INVALID_FILEHANDLE THEN
    dbms_output.put_line (' invalid file descriptor ' | v_filename);
    UTL_FILE. FCLOSE_ALL;

    WHEN UTL_FILE. WRITE_ERROR THEN
    dbms_output.put_line (' Error Invalid write ' | v_filename);
    UTL_FILE. FCLOSE_ALL;

    WHEN UTL_FILE. READ_ERROR THEN
    dbms_output.put_line ('Invalid Read Error' | v_filename);
    UTL_FILE. FCLOSE_ALL;

    WHEN UTL_FILE. INTERNAL_ERROR THEN
    dbms_output.put_line ("'Internal Error");
    UTL_FILE. FCLOSE_ALL;

    WHILE OTHERS THEN
    dbms_output.put_line (' error ' |') SQL CODE: ' | SQLCODE. ' Message: '. SQLERRM);
    UTL_FILE. FCLOSE_ALL;
    END GETXML_TAG;

    /

    The file that I am generating at the server level:
    EPO150320111915. XML

    <? XML version = "1.0" encoding = "UTF-8"? >
    < GEBIZ_ACCOUNT_SEGMENT >
    < HEADER >
    RPO < MINISTRY_CODE > < / MINISTRY_CODE >
    < DEPT_CODE > 000 < / DEPT_CODE >
    < ENTITY_CODE > < / ENTITY_CODE >
    < / Header >
    < DETAILS >
    < SEGEMENT >
    < NUMBER > 1 < / NB >
    < CODE > 1 </postcode >
    < DESCRIPTION > Republic Polytechnic < / DESCRIPTION >
    < START_DATE > < / START_DATE >
    < end_date > < / end_date >
    A <>STATUS < / STATUS >
    < DELETE_FLAG > < / DELETE_FLAG >
    < / SEGEMENT >
    < / DETAILS >
    < DETAILS >
    < SEGEMENT >
    < NUMBER > 2 < / NB >
    < CODE > < code > 2
    Operating grant < DESCRIPTION > < / DESCRIPTION >
    < START_DATE > < / START_DATE >
    < end_date > < / end_date >
    A <>STATUS < / STATUS >
    < DELETE_FLAG > < / DELETE_FLAG >
    < / SEGEMENT >
    < / DETAILS >
    < DETAILS >
    < SEGEMENT >
    < NUMBER > 2 < / NB >
    < CODE > < code > 2
    < DESCRIPTION > Dev Grant-renovation Campus Temp Temp < / DESCRIPTION >
    < START_DATE > < / START_DATE >
    < end_date > < / end_date >
    A <>STATUS < / STATUS >
    < DELETE_FLAG > < / DELETE_FLAG >
    < / SEGEMENT >
    < / DETAILS >
    < DETAILS >
    < SEGEMENT >
    < NUMBER > 2 < / NB >
    < CODE > < code > 2
    < DESCRIPTION > Dev renovation Grant to hand Campus Temp < / DESCRIPTION >
    < START_DATE > < / START_DATE >
    < end_date > < / end_date >
    A <>STATUS < / STATUS >
    < DELETE_FLAG > < / DELETE_FLAG >
    < / SEGEMENT >
    < / DETAILS >
    < DETAILS >
    < SEGEMENT >
    < NUMBER > 2 < / NB >
    < CODE > < code > 2
    < DESCRIPTION > Dev Grant-IT for Campus Temp < / DESCRIPTION >
    < START_DATE > < / START_DATE >
    < end_date > < / end_date >
    A <>STATUS < / STATUS >
    < DELETE_FLAG > < / DELETE_FLAG >
    < / SEGEMENT >
    < / DETAILS >
    < DETAILS >
    < SEGEMENT >
    < NUMBER > 2 < / NB >
    < CODE > < code > 2
    < DESCRIPTION > Dev Grant-Land Premium for Campus Woodlands < / DESCRIPTION >
    < START_DATE > < / START_DATE >
    < end_date > < / end_date >
    A <>STATUS < / STATUS >
    < DELETE_FLAG > < / DELETE_FLAG >
    < / SEGEMENT >
    < / DETAILS >
    < DETAILS >
    < SEGEMENT >
    < NUMBER > 2 < / NB >
    < CODE > < code > 2
    < DESCRIPTION > Dev-Grant-pre-construction of the Woodlands Campus < / DESCRIPTION >
    < START_DATE > < / START_DATE >
    < end_date > < / end_date >
    A <>STATUS < / STATUS >
    < DELETE_FLAG > < / DELETE_FLAG >
    < / SEGEMENT >
    < / DETAILS >
    < DETAILS >
    < SEGEMENT >
    < NUMBER > 2 < / NB >
    < CODE > < code > 2
    < DESCRIPTION > Dev Grant-FE < / DESCRIPTION >
    < START_DATE > < / START_DATE >
    < end_date > < / end_date >
    A <>STATUS < / STATUS >
    < DELETE_FLAG > < / DELETE_FLAG >
    < / SEGEMENT >
    < / DETAILS >
    < DETAILS >
    < SEGEMENT >
    < NUMBER > 2 < / NB >
    < CODE > < code > 2
    < DESCRIPTION > tax exempt student Dev Welfare Fund < / DESCRIPTION >
    < START_DATE > < / START_DATE >
    < end_date > < / end_date >
    A <>STATUS < / STATUS >
    < DELETE_FLAG > < / DELETE_FLAG >
    < / SEGEMENT >
    < / DETAILS >
    < DETAILS >
    < SEGEMENT >
    < NUMBER > 2 < / NB >
    < CODE > < code > 2
    < DESCRIPTION > funds tax exempt-Dev project < / DESCRIPTION >
    < START_DATE > < / START_DATE >
    < end_date > < / end_date >
    A <>STATUS < / STATUS >
    < DELETE_FLAG > < / DELETE_FLAG >
    < / SEGEMENT >
    < / DETAILS >
    < DETAILS >
    < SEGEMENT >
    < NUMBER > 2 < / NB >
    < CODE > < code > 2
    < DESCRIPTION > reserved finance < / DESCRIPTION >
    < START_DATE > < / START_DATE >
    < end_date > < / end_date >
    A <>STATUS < / STATUS >
    < DELETE_FLAG > < / DELETE_FLAG >
    < / SEGEMENT >
    < / DETAILS >
    < DETAILS >
    < SEGEMENT >
    < NUMBER > 3 < / NB >
    < CODE > < code > 3
    Library < DESCRIPTION > < / DESCRIPTION >
    < START_DATE > < / START_DATE >
    < end_date > < / end_date >
    A <>STATUS < / STATUS >
    < DELETE_FLAG > < / DELETE_FLAG >
    < / SEGEMENT >
    < / DETAILS >
    < DETAILS >
    < SEGEMENT >
    < NUMBER > 3 < / NB >
    < CODE > < code > 3
    < DESCRIPTION > Office of academic affairs < / DESCRIPTION >
    < START_DATE > < / START_DATE >
    < end_date > < / end_date >
    A <>STATUS < / STATUS >
    < DELETE_FLAG > < / DELETE_FLAG >
    < / SEGEMENT >
    < / DETAILS >
    < DETAILS >
    < SEGEMENT >
    < NUMBER > 3 < / NB >
    < CODE > < code > 3
    < DESCRIPTION > the Corporate Communications Office < / DESCRIPTION >
    < START_DATE > < / START_DATE >
    < end_date > < / end_date >
    A <>STATUS < / STATUS >
    < DELETE_FLAG > < / DELETE_FLAG >
    < / SEGEMENT >
    < / DETAILS >
    < DETAILS >
    < SEGEMENT >
    < NUMBER > 3 < / NB >
    < CODE > < code > 3
    Office of the Assistant Director of the < DESCRIPTION > < / DESCRIPTION >
    < START_DATE > < / START_DATE >
    < end_date > < / end_date >
    A <>STATUS < / STATUS >
    < DELETE_FLAG > < / DELETE_FLAG >
    < / SEGEMENT >
    < / DETAILS >
    < DETAILS >
    < SEGEMENT >
    < NUMBER > 3 < / NB >
    < CODE > < code > 3
    < DESCRIPTION > the estates Office < / DESCRIPTION >
    < START_DATE > < / START_DATE >
    < end_date > < / end_date >
    A <>STATUS < / STATUS >
    < DELETE_FLAG > < / DELETE_FLAG >
    < / SEGEMENT >
    < / DETAILS >
    < DETAILS >
    < SEGEMENT >
    < NUMBER > 3 < / NB >
    < CODE > < code > 3
    < DESCRIPTION > finance < / DESCRIPTION >
    < START_DATE > < / START_DATE >
    < end_date > < / end_date >
    A <>STATUS < / STATUS >
    < DELETE_FLAG > < / DELETE_FLAG >
    < / SEGEMENT >
    < / DETAILS >
    < DETAILS >
    < SEGEMENT >
    < NUMBER > 3 < / NB >
    < CODE > < code > 3
    < DESCRIPTION > Office of human resources < / DESCRIPTION >
    < START_DATE > < / START_DATE >
    < end_date > < / end_date >
    A <>STATUS < / STATUS >
    < DELETE_FLAG > < / DELETE_FLAG >
    < / SEGEMENT >
    < / DETAILS >
    < DETAILS >
    < SEGEMENT >
    < NUMBER > 3 < / NB >
    < CODE > < code > 3
    < DESCRIPTION > Office of industrial and international Services < / DESCRIPTION >
    < START_DATE > < / START_DATE >
    < end_date > < / end_date >
    A <>STATUS < / STATUS >
    < DELETE_FLAG > < / DELETE_FLAG >
    < / SEGEMENT >
    < / DETAILS >
    < / GEBIZ_ACCOUNT_SEGMENT >

    -end of file
    I'm able to correctly edit in Notepad, when tried to open, at the level of the Solution Explorer, its not allow me due to '& '.

    Pls confirm what could be the problem.

    Concerning
    Mr. Nagendra

    Hi Nagendra,

    Pls confirm what could be the problem.

    In a document valid XML, characters like <,>, &, "and" must be escaped using entity references if they appear in the text or attribute nodes.
    For example, & must be escaped to "& amp;"

    Did you check my answer on your previous thread on the generation of XML?
    http://forums.Oracle.com/forums/thread.jspa?threadID=2184907&TSTART=30

    The method that you are trying to use is obsolete (since Oracle 9i) and also produces invalid XML content.

    Here, I think that the more flexible method is to use the SQL/XML functions.
    Try the following, based on the example you posted, it should give you the expected result:

    {code}
    DECLARE

    v_out CLOB.
    v_filename VARCHAR2 (300): = 'GEBIZ_EPO ' | TO_CHAR (sysdate, 'DDMMYYYYHH24MI'): '. XML';
    v_prolog VARCHAR2 (40): = '';

    BEGIN

    SELECT xmlserialize (document
    XmlElement ("GEBIZ_ACCOUNT_SEGMENT"
    xmlagg)
    XMLCONCAT (hdr, dtls)
    )
    )
    as dash clob size = 2
    )
    IN v_out
    DE)
    SELECT xmlelement ("HEADER"
    xmlelement ("MINISTRY_CODE", ministry_code)
    xmlelement ("DEPT_CODE", dept_code)
    xmlelement ("ENTITY_CODE", entity_code)
    ) hdr
    xmlagg)
    XmlElement ("DETAILS"
    xmlelement ("SEGMENT"
    xmlelement ("NUMBER", seg_no)
    xmlelement ('CODE', seg_no)
    xmlelement ("DESCRIPTION", seg_description)
    xmlelement ("START_DATE", start_date)
    xmlelement ("end_date", end_date)
    xmlelement ("STATUS", status)
    xmlelement ("DELETE_FLAG", disable_flag)
    )
    )
    ) dtls
    OF xgbz_fin_stage_acs
    WHERE tx_timestamp is null
    GROUP OF ministry_code, dept_code, entity_code
    )
    ;

    DBMS_XSLPROCESSOR.clob2file (v_prolog | v_out, 'TEST_DIR', v_filename, nls_charset_id ('AL32UTF8'));

    END;
    /
    {code}

    -A single SQL query to retrieve data and format in XML (necessary character escape is automatically supported).
    -A single call to DBMS_XSLPROCESSOR.clob2file to create the file in the directory TEST_DIR.

    Hope that helps.

Maybe you are looking for