Help in removing the tag XML! 1

Hi all

I wrote the following query

"SELECT ' < ns0:Employee_Details xmlns:ns0 ="http://BizTalk_Server_Project1.Employee_DesirableFormat">"
|| Chr (10) | dbms_xmlgen.getxmltype ("SELECT xmlforest (emp_id, name, dept_id, xmlforest (add1, add2) AS address, City) as employees
EMPLOYEES WHERE EMP_ID =' | 101) | Chr (10) | ' < / ns0:Employee_Details > ' AS XML
from Dual;

and out put:

-ns:Emp xmlns:ns = "http://BizTalk_Server_Project1.Employee_DesirableFormat" >
-< ROWSET >
-< ROW >
-< EMPLOYEES >
< > 101 EMP_ID < / EMP_ID >
< NAME > KING < / NAME >
< DEPT_ID > 10 < / DEPT_ID >
-< ADDRESS >
< ADD1 > PH-1 < / ADD1 >
2-SEC < ADD2 > < / ADD2 >
< / ADDRESS >
ABCD < CITY > < / CITY >
< / EMPLOYEES >
< / ROW >
< / LINES >
< / ns:Emp >


Now I want to remove the < Rowset > and < r > tag in my result... I can do on top of the query changes... or if there is another way... Please let me know...

Thank you

Now I want to remove the and the tag in my result

Just use EXTARCT:

SQL> select ''
       || dbms_xmlgen.getxmltype (
             'select xmlforest(empno, ename, deptno, xmlforest(job) as job,sal) as employees from emp where empno ='
             || 7788).extract ('ROWSET/ROW/*')
       || '' as xml
  from dual
/
XML
--------------------------------------------------------------------------------

    
        7788
        SCOTT
        20
        
            ANALYST
        
        3000
    


1 row selected.

Tags: Database

Similar Questions

  • Find, edit, and remove the tag XML (Adobe InDesign Server CS5)

    Hi all

    I work with Indesign CS5 server and JavaScript, although having some difficulties to come with a solution to a problem...

    I have to build a script JS (called through SOAP) that will allow me to search for an XML tag in an InDesign file.

    After you find the XML tag, if the variable 'action' is set to remove, it should remove the tag and its content.

    If the action is set to edit, he should change the content of the tag to the user-defined content.

    The main warning is that the XML tag is variable, as is the XML of the InDesign file structure.

    Here's what I have in mind, in pseudocode:

    function findXMLTag (tag, action) {}

    app.searchForTag (tag);

    If {(tagIsFound)

    If (action == 'delete') {}

    tag. Delete;

    } Else if (action == 'edit') {}

    tag.contents = "update content";

    }

    }

    }

    Any help would be greatly appreciated!

    Thank you

    Ben Kay

    'searchForTag' can be implemented as a recursive function.

    Recursion is defined as follows: I thought: "I'll just get this forum for"recursion"." The first post I found was one of my own, which suggests that the poster should search the forum for "recursion".

    Here is an example: find the XML element []

    And another: remove the xml using JS [CS3] element (read carefully, as the OP is stuck on how to remove an item and continue successfully)

    And the other using XML rules - which I am quite familiar with, but may work for you: changing values in XML tags

  • Need to remove the tags file Nullable while generating XML files

    Hello.

    I have a requirement where I have to generate an XML file, but the generated XML file does not display the tags when the column is null. An example below:

    CREATE TABLE emp_tab (emp_id NUMBER PRIMARY KEY
    name VARCHAR2 (20).
    dept_id NUMBER);
    Table created.
    INSERT INTO emp_tab VALUES (30, 'Scott', NULL);
    1 line of creation.
    INSERT INTO emp_tab VALUES (31, 'Mary', NULL);
    1 line of creation.
    INSERT INTO emp_tab VALUES (40, 'John', NULL);
    1 line of creation.
    COMMIT;

    When I generate the XML code, you can find the output like below:
    < EMPLOYEE >
    < EMP_ID > 30 < / EMP_ID >
    Scott < NAME > < / NAME >
    < / EMPLOYEE >

    I just the Worklfow Developer's Guide and the example above was taken from Page 561 and 562 by looking at the DBMS_XMLGEN.setNullHandling using DBMS_XMLGEN procedure. DROP_NULLS as a parameter.

    Now, I understand the concept, but my requirement is a little different. I get a record as my procedure parameter PLSQL type, but requires the choice of a base table, which means maybe I have to insert first the folder I get as parameter in a table of basic and then select in the same when you set the context, which is what I don't want in the DBMS_XMLGEN.newContext. This is an additional burden.

    I've previously planned to use XMLELEMENT and XMLFOREST to generate the XML file (and was rather more simple), but this requirement to remove the tags altogether when the values are NULL led me to believe that maybe I might have to go down the path of using the API DBMS_XMLGEN.

    Can you suggest a better way, replacement to achieve what I want? Or perhaps give an example on how I can get there using XMLDB?


    Thank you and best regards,
    JD

    Can I use just the XMLElement and XMLForest to achieve?

    Sure. As said, XMLForest does not create elements for NULL values:

    http://docs.Oracle.com/CD/E11882_01/AppDev.112/e23094/xdb13gen.htm#ADXDB5006

    If the expression value is null, then no element is created for this expression.

    This is the code I wrote your above mentioned suggestion discussion forum

    Yes, but this solution is taken out of context.
    Here, it is obviously preferable to not generate empty items in the first place:

    SELECT XMLElement("Address"
           , XMLForest(
               lr_addr_rec.account_name     as "AccountName"
             , lr_addr_rec.address_line_1   as "Addressline1"
             , lr_addr_rec.lot_number       as "Addressline1"
             , lr_addr_rec.address_city     as "City"
             , lr_addr_rec.address_state    as "State"
             , lr_addr_rec.address_postcode as "PostCode"
             )
           )
    FROM dual;
    
  • Is it possible to add the tag XML columns in Table

    Hello world!

    I'm the new baby of the indesign forum. I need apply the tag XML to each column of the table (name probably test1, test2...)

    Please help me on this problem or even to correct my codes.

    -yajiviki

    My code.

    var docRef=app.activeDocument;
    var ColLen=app.activeDocument.stories.everyItem().tables.everyItem().columns.length;
    for(i=0; i<ColLen; i++){
        var mySel=app.activeDocument.stories.everyItem().tables.everyItem().columns[i];
        app.activeDocument.xmlElements[0].xmlElements.add({markupTag:"Test"+(i+1), xmlContent:mySel});
    }
    

    Hello

    You can easily mark the table initially with the automatic tag command.

    myTable.autoTag();
    

    Once this is done, you can target the cells in columns and reset the tag applied:

    var xes = myTable.columns[0].cells.everyItem().associatedXMLElement;
    var n = xes.length;
    while ( n-- ) xes[n].markupTag = "foo"
    

    HTH

    Loïc

    www.ozalto.com

  • How can tag photos - I remove the 'Tag' because it's in every picture!

    Remember - this is a public forum so never post private information such as numbers of mail or telephone!

    Ideas: How can I remove the "Tag" I didn't tag each photo. I thought that I have WAS MARKING ALONE.  I can't get rid of the label on each photo

    • You have problems with programs
    • Error messages
    • Recent changes to your computer
    • What you have already tried to solve the problem

    Right click on the tag in the left pane, click on remove, then click Yes. (Windows Photo Gallery)

    Click on the descriptive tag, click on manage tags, right click on the tag you want to delete, then click on delete and then Yes. (Windows Live Photo Gallery)

    teengeek.freehostingcloud.com

  • HP Pavilion g6: Please help me remove the Power On password or administrator password

    Please help me remove the administrator password or power on password. The stop code is: 68478111

    Hello:

    Please see the info on the link below which should solve your dilemma.

    http://h30434.www3.HP.com/T5/notebook-operating-systems-and-software/system-halt-error-message-or-BIOS-password-reset-generator/m-p/5010033

  • Hoax call on notifications about a virus tries to hijack your computer and ask for help to remove the files?

    OT: security.

    Dear community,

    Did anyone out there contacted by "windows" say you they receive notifications about a virus tries to hijack your computer and ask for help to remove the files? Initially, it was an area code 855, but now the number is unavailable. I get a lot of calls.

    any help would be appreciated

    Thank you

    Hello

    It's a scam.

    Here are the tips that we regularly give the posters who receive these types of calls:

    We have all the errors and warnings in our Event Viewer

    Either these so-called "Microsoft" Tech companies want to sell you a worthless software, or remote access to your computer to try to steal your credit card and bank information and also achieve an identity theft on you.

    You are the only person who knows if you gave them remote access.

    If you gave them remote access and you do Internet banking, contact your bank, to explain, and change passwords.

    If you use your online credit card, cancel and get a new one issued to you.

    And the only way that willl you know that you are free to them is to backup your data and do a clean install of your operating system.

    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

    And Microsoft does not contact you unless YOU have made prior arrangements with them to do.

    There is an article in the link I'm you provide at the end of this one

    Read this Information from Microsoft:

    "Avoid scams to phone for tech support.

    http://www.Microsoft.com/security/online-privacy/avoid-phone-scams.aspx

    Don't be fooled of unsolicited calls. Don't provide personal information.

    Here are some of the organizations that cyber criminals claim to come:

    • Helpdesk Windows

    • Windows repair center

    • Microsoft technical support

    • Microsoft technical support

    • Windows Support Group Technical Department

    • Microsoft Research and Development Team (team of Microsoft R & D)

    See you soon.

  • How can I remove the tags in a PDF?

    How to remove all the tags to a PDF document using acrobat pro XI?

    See the images

    1. go on the view menu, and then select Show/Hide > Navigation panels > Tags

    2. click on the Panel tags and right click on tags, and choose the command remove the tags, this will remove all tags.

    To remove tags and expand tags and right click and choose Delete.

    Thank you

  • Remove the attribute xml Tags help please

    Hello

    Can anyone suggest me how I can attribute del keyterm Tags.

    Remove only the attribute olinkend kt-real-zero

    Screen shot 2012-01-11 at 5.54.18 PM.png

    Thank you

    Best regards, snegig

    1. I saw the warning "Content contains characters that cannot be encoded." when importing xml, but have never tracked down what is happening. Or if I have never seen different content in InDesign than what I expected after seeing this warning. Perhaps, it occurs when the imported xml file does not have the attribute of coding on the initial processing instruction, but InDesign figures on the encoding? I do not know.

    2. If you want to remove any olinked attribute on keyterm items, simply modify the XPath in .evaluateXPathExpression to //keyterm[@olinkend] . If you want to match multiple specific values, just do//keyterm[@olinkend = 'KT01401' or @olinkend = 'KT01402' or @olinkend = 'KT01403'].

    Jeff

  • Remove the tags in Windows Photo Gallery

    This question is about the photo gallery Windows on a Vista operating system. My question is about the drop-down auto-liste of tags that grows each time you enter a new tag. Handy if you want to use something you've used before but a nuisance if you want to erase it. I figured out how to remove tags on the pictures still on the computer. My question is about the images that have been deleted and is not recoverable. There is always this tag leftover junk that applied to these photos that I deleted. appears whenever you try to add a new tag and resists all efforts to remove it. I contacted gateway computer people since they installed the operating system and got the solutions really wild just to remove the unnecessary tags. I thought that everything you enter, you should be able to delete... just... but this has proved to be a great puzzle. I hate to have to do a restore to original factory specifications and lose everything I've added to this day to get rid of these pesky tags. In addition, it simply repeats the problem unless I have find how to remove the little monsters.

    I hope someone can help...

    Hi Jo,.

    It's a good thing to be careful when you edit the registry.  In your case, as the registry key seems to be very specific to the Windows Photo Gallery, we can export the folder safely we are change.  Be sure to close the Windows Photo Gallery before you start.

    • Click the ball to Start .
    • Type regedit in the box start the search.
    • Navigate through the folders on the left at the following key:

    HKEY_CURRENT_USER\Software\Microsoft\Windows Gallery\Library\PreviewPane\LabelAssignment\MRU photo

    • Right click on the folder MRU in the left hand window and choose export.
    • Give it a file name (no matter what you name it) and save to the desktop.
    • In the right window, you will see keys named MRU00, MRU02, MRU03 etc...
    • Right-click on these keys and click on delete.

    Once you are finished, close the registry editor by clicking the x in the upper right and restart your computer.  When she returns to the top, open the Windows Photo Gallery and see if the tags are gone.

    If you receive errors of ANY opening of photo gallery, simply, do a right click on the file that you have already saved on the desktop and choose Import.  That will undo any changes that we have made.

    Please let me know if that helps.

    Standard WARNING:
    Change the settings of the REGISTRY can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the REGISTRY settings configuration can be solved. Changes to these settings are at your own risk...

    Brent
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Helps to remove the name of Troj/DocDl-Princeling

    cursor to the iMac began randomly blinking, not allowing the cursor to stay where I clicked and cycling through and menu bars.  I have installed sophos and it has detected a threat that he labeled as 'Troj/DocDl-AUL', sphos has not removed the threat - and the problems continue at random.  F-Secure, Panda or found Malware threat when I ran drive scan using these different programs.  Don't know what else to do.  Any help would be appreciated. OS X El Capitan 10.11.3 running

    According to this:

    Roj https://www.Sophos.com/en-US/Threat-Center/Threat-analyses/viruses-and-Spyware/T ~ DocDl - D.aspx

    It affects Windows. Do you run Windows? If this isn't the case, it is likely contained in / attachment sent by a Windows user. It shouldn't cause any problems on Mac.

    May I suggest that get rid you of all AV software you have installed.

  • Need help to remove the protection of the family off account of girls

    I deleted my daughter from my laptop Microsoft account. I had the protection of the family there. How can I get the protection of the family out of his account because she has another account set up and know it required a code to get on his google account?  So I would like to remove the protection of the family so that it doesn't keep needing a code. If anyone can help me please and thank you.
     
    * This thread has been changed so that they the title is a little clearer. It will be also moved to a more appropriate forum hoping to teach you to someone who can answer your question correctly.  Thank you!

    Hello

    What operating system is installed on the computer?

    In the meantime, you can visit the link provided below to remove a parental control account.

    How can I remove parental control?

    Hope the information helps you resolve the issue.

  • Need help to remove the parental permission on hotmail acct. my child

    I configured a hotmail account for my daughter with the security setting for the family and I would like to delete the setting and the restriction that I have previous game on his hotmail account if she can add contacts freely without the permission of the parents.

    I've done an update on my setting under authorization parental permission/manage / my child in which account I deleted my child account but she did not reflect change of hotmail account of my child which again shows his account restricted with parental consent.  I even changed the year of birth of my child and see if it would be useful, and it did not work.

    We would really like to keep his email address, but it becomes so unpleasant to use with the parental permission setting.  Help, please.  Thank you.

    Hello

    We apologize for the confusion, in order to remove the restriction for the child's account, you must configure it on the web using the parent account. To do this, please follow these steps:

    1. connect to http://fss.live.com using the parent account.
    2. click Edit settings under the name of the child you want to remove the restriction.
    3. click on Contact Management, it is located on the left side of the web page.
    4. under management of Contact for the child's name , check the radio button next to the child manages their own contact list.
    5. click on the button Save to update the settings.

    If you want to remove the parental control completely on your child's account, please follow these steps:

    1. connect to http://fss.live.com using the parent account.
    2. click Edit settings under the name of the child you want to delete in Windows Live Family Safety.
    3. in respect of the accounts for the name of the child , click Remove the link next to the e-mail address of the child's account. It is located on the right-hand side of the bottom of the page.
    4. new instant message will appear for box and then click Delete the ID to remove completely the relationship on the account.

    Let us know the result later.

    Thank you.

  • Helps to remove the HP Pavilion Desktop Hard Drive

    So recently I bought your desktop HP Pavilion from Best Buy a few months ago. Thing was running great until this morning, when the hard drive has suddenly decided to go belly and FRY on me. I called HP Support and they are sending me a free HD to replace the bad, but I need to remove and return them. No problem, I think I'll open the chassis out. Little I didn't know...

    I really don't know who designed this thing inside, but to reach the screws to remove the hard drive is almost impossible for someone like me who has no specialized tools. I got two of the screws, but the front rear one I can barely see and even less to reach, and I don't know there's a fourth that I can't even imagine reaching. I hope someone can give me something special or a detail that I'm missing that will make this possible, if not, I am at a loss how to proceed.

    Here is the info on the machine:

    HP Pavilion Media Center

    Product: KT334AA-ABA

    Model: m8530f

    If it is necessary, I'll post a picture of her womb. If anyone has any info that can help me to disassemble this beast, I would be eternally grateful!

    -Justin

    Message edited by Justin_D on 02/15/2009 16:40

    You must insert the personal media at the front of the computer player. Remove the front panel, remove the screws which fix the cage of the front's personal media players and pull the Green tab by dragging the cage in the front. You will then be able to easily remove the drive.

    Do not hesitate to call HP, they will be happy to help you with the installation of the replacement drive.

  • Help to remove the Blue error screen: 0x0000007e

    Original title; Blue screen - please help

    I'm playing a game recently on windows xp. I keep blue screening after that I tried to load the game. I discovered that what initially is that the user-mode driver framework is a failure. I don't know what it means anyway. my error code is 0x0000007e. Thank you

    Hi, BradMJ,

    How to troubleshoot a Stop error 0x0000007E in Windows XP

    http://support.Microsoft.com/kb/330182

    The Windows User Mode Driver Framework (Wdfmgr.exe) service appears in the Windows Task Manager after you install Windows Media Player 10

    Note The Windows User Mode Driver Framework service is a driver component that is used by Windows Media Player 10. The Windows User Mode Driver Framework service supports synchronization of content with hardware players. For example, an MP3 device is a hardware player.

    http://support.Microsoft.com/kb/892552

    How to remove the Microsoft user-mode driver framework

    http://www.ehow.com/how_5175769_remove-Microsoft-usermode-driver-framework.html

Maybe you are looking for

  • error in pc

    VAIO care has stopped working

  • Start LabView menu

    I have a teststand sequence that uses run asynchronous VI to display output to the camera while the sequence is running. When the sequence runs the first DUT the Menu start of LabView (see attached Image) rises and covers the entry window of the UUT.

  • How I can fiix my thumbnail photo in my documents

    My nail of the thumb for my photos in my documents is gray and they did not used to be like that

  • Emails of memory use

    Hello How can I reduce the frequency at which these emails come out? I get hundreds a day. [Fatal] Use of memory on a machine virtual [ComputerName] has reached 96% of the memory that ESX has granted it.  The following URL to obtain details of the al

  • Why can't connect to a website

    Until a few days ago, I could access internet sites with my 7 month old HP-Compaq Mini CQ10-800 with Intel Atom N455 @1.66/1.67 GHz CPU and 1 GB of memory. But now the browser installed on my computer (IE 9, 11.0 of Mozilla Firefox, Google Chrome, 21