Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9168341
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T15:36:15+00:00 2026-06-17T15:36:15+00:00

SET PAGES 0; SET LINE 1000; SET LONG 9999999; SPOOL C:\pensionnew.xml; col foo format

  • 0
SET PAGES 0;
SET LINE 1000;
SET LONG 9999999;
SPOOL C:\pensionnew.xml;
col foo format a60000
SELECT DBMS_XMLGEN.GETXML('SELECT * FROM DATAAG')foo FROM DUAL;
SPOOL OFF;

i use this code for generating xml.. the answer is:suppose the the column not have value means the tag wont came . i need empty tag for that for that

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T15:36:16+00:00Added an answer on June 17, 2026 at 3:36 pm

    use the API for it, dont use the quick fire getxml(string) version.

    eg:

    SQL> variable xml clob;
    SQL> declare
      2    ctx number;
      3  begin
      4    dbms_lob.createtemporary(:xml, true, dbms_lob.call);
      5    ctx := dbms_xmlgen.newcontext('select * from foo');
      6    dbms_xmlgen.setnullhandling(ctx, dbms_xmlgen.EMPTY_TAG);
      7    dbms_xmlgen.getxml(ctx, :xml);
      8    dbms_xmlgen.closecontext(ctx);
      9  end;
     10  /
    
    PL/SQL procedure successfully completed.
    
    SQL> print xml
    
    XML
    --------------------------------------------------------------------------------
    <?xml version="1.0"?>
    <ROWSET>
     <ROW>
      <ID>1</ID>
      <A>a</A>
     </ROW>
     <ROW>
      <ID>2</ID>
      <A/>
     </ROW>
    </ROWSET>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible to generate a set of wiki pages from XML comment file
I'm building a set of pages where I have a number of GET variables
I want all my inno set up pages to look like below :
I create some documentation in the Trac wiki. I set these pages to all
I'm refactoring a website using MVC. What was a set of huge pages with
Whereas there is a set of richly informative pages describing Visual Studio templates for
Anyone know how to set the custom 404 Error pages that the Visual Studio
I have the pages that I want to set as a goal in Google
So i have just set new Error Handlers in httpd.conf for custom error pages:
I'm currently trying to set up a secured folder with a few pages within

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.