Blank field in XML file

Hi Friends,
I have a requirement where in I have to create an XML file using deep structure.  Now some fields of the structure may have data and some fields may not. But the XML file generated should contain both blank fields as well as fields with data.
To create it, I am using:
  g_ixml = cl_ixml=>create ( ).
  m_document = g_ixml->create_document( ).
Then with the function modules, the XML file gets created.
SDIXML_DATA_TO_DOM
SDIXML_DOM_TO_XML
But the fields without values are not added in the XML file.
Please help .. It is very urgent ..
Rdgs,
Namita.

Hi Tony,
We just released a new version 1.1.0 of XMLSQL utility which
takes care of empty tags. i.e. leaving out the tag would be the
same as having an empty <name></name> field for scalars.
Thx
Murali
Tony (guest) wrote:
: Hi:
: It seems to me that in xml file, if there is a blank field,
such
: as <name/> or <name></name>, then OracleXMLSave.insertXML
wound
: not work. I know that you may try use dummy values or if the
: field is blank, then leave the field out of the xml file. Any
: other work around? Is my claim that <name/> and <name></name>
: wound not work righ?
: Please help!
: Thanks.
: Tony
Oracle Technology Network
http://technet.oracle.com
null

Similar Messages

  • Fields of .xml file sent to Device Controller

    Hi all,
    Does anybody know how we can specify more fields in the .xml file that is sent to the device controller?
    At this moment, when we do ‘Comission Tag’ action, the .xml file only contains EPC data as we show you here below:
        <?xml version="1.0" encoding="UTF-8" ?>
      - <Command xmlns:xsi="http://www.w3.org/2001/XMLSchema-  instance" xsi:noNamespaceSchemaLocation="Command.xsd">
      - <WriteTagData readerID="D_WRITER_02">
      - <Item>
      - <FieldList>
        <Field name="EPC">311604295400000114000000</Field>
        </FieldList>
        </Item>
        </WriteTagData>
        </Command>
    We would like to indicate in this .xml fields like:
    DOCUMENT_NO, DOCUMENT_TYPE, EPC_TYPE, EPC_URN, EPC_URN_NO_HEADER, GTIN, PRODUCT, PRODUCT_DESCRIPTION.
    How we can achieve this?
    Thanks in advance.
    Kind regards,
    Xavier

    Hi Mitesh,
    Thank you for indicating us the documentation. It is indicated the different fields that can be included in the WriteTagData command with configuration and how to make it.
    Thank you very much!!
    Kind regards,
    Xavier
    Message was edited by: Xavier Ester Duxans

  • How to Suppress Empty Field in XML File

    My xml file sometimes has fields that are empty. No problem
    in ie, but in Firefox the Spry tabbed panel displays the data as
    "undefined".
    Any suggestions would be helpful.
    Thanks!

    You can check for it:
    <span spry:if=" '{your_dataref}' !=
    undefined">{your_dataref}</span>
    You may have to put 'undefined' in single quotes. I can never
    remember...

  • Exporting fields to XML file in SAP 4.6c

    Hi
    Has anyone been able to export data from SAP 4.6c into an XML file.
    What are the options in 4.6c?
    Any example code would be appreciated.
    Many thanks
    Daniel

    hai sharan,
    iam also facing the same problem of activating cl_ixml. if u received any coding regarding activating that class plz send me my mail id is [email protected]
    anil.

  • Facing issue in Bulk Load Post Process in case of blank fields in csv file

    Hi,
    I ran command line bulk utility to create users in OIM through CSV file. I left few columns as blank which were not mandatory. After executing the bulk utility, user got successfully created in OIM but after that when i ran "Bulk Load Post Process" for LDAP sync then it changed the user's organisation to default organisation "Xellerate User" which is a major issue. It is happening only when i am leaving some column blank. Any idea why it is happening and how to resolve this problem? Need some urgent help!!

    Hi ,
    Thanks for your reply, the issue was we can not use DOD=Y due to the dependency of the Standard Version where other program fetches data from the same XML structure,
    Any way we resolved this issue by re doing below post installation steps. And used a new schema with updated DTD and point that with the same logical schema.
    1) Created a new schema for XML external database
    2) Change the DTD file, keep it in the same location
    3) Change properties file with new schema name
    4) Test with the new schema for XML connection
    5) Reverse engineer the BaseModel ITEMBRANCH only (Where we added additional XML Tags)
    6) Bounce back ODI agent and Client
    Thanks,
    Pc

  • How to read the contents of XML file from my java code

    All,
    I created an rtf report for one of my EBS reports. Now I want to email this report to several people. Using Tim's blog I implemented the email part. I am sending emails to myself based on the USERID logic.
    However I want to email to different people other then me. My email addresses are in the XML file.
    From the java program which sends the email, how can I read the fields from XML file. If any one has done this, Please point me to the right examples.
    Please let me know if there are any exmaples/BLOG's which explain how to do this(basically read the contents of XML file in the Java program).
    Thank You,
    Padma

    Ike,
    Do you have a sample. I am searched so much in this forum for samples. I looked on SAX Parser. I did not find any samples.
    Please help me.
    Thank you for your posting.
    Padma.

  • Reading XML file from package!!

    HI,
    I have an xml file with two HIERARCHY levels with Global and local
    <global1> company</global1>
    <global2> address </global2>
    <global3>name </global3>
    <global4>position</global4>
    and
    -- *<loca1l/>*
    <local2> CEO</local2>
    -- *<local3/>*
    <local4> supervisior</local4>
    Now i have a package which reads this file and loads into the table.
    My Question :- In the unknown Local depth 1 and local Depth 3 i want to display company(global depth 1). So when package reads the XML file, if there is any unknown tags then it should load company or read company of the gloabl depth 1 into the table. Any idea or logic would be great helpful.
    I appricate it thank you so much!!

    If i get any unknown field in XML file of Local depth 1 and local Depth 3 i want to replace with global depth 1 and depth 3 fieldWhats wrong if you do it like this:
    SQL>  with t as (
    select xmltype('<data>
                        <global1>company</global1>
                        <global2> address </global2>
                        <global3>name </global3>
                        <global4>position</global4>
                        <local1/>
                        <local2> CEO</local2>
                        <local3/>
                        <local4> supervisior</local4>
                     </data>') xml from dual
    select x.column_value.getstringval()
    from t,
          xmltable('for $i in data/*
                     return
                        if (contains($i/name(), "local") and empty($i/text()))
                        then
                          element {$i/name()} {$i/../*[name()=concat("global",ora:replace($i/name(),"local",""))]/text()}                     
                        else $i' passing xml) x
    X.COLUMN_VALUE.GETSTRINGVAL()                                                  
    <global1>company</global1>                                                     
    <global2> address </global2>                                                   
    <global3>name </global3>                                                       
    <global4>position</global4>                                                    
    <local1>company</local1>                                                       
    <local2> CEO</local2>                                                          
    <local3>name </local3>                                                         
    <local4> supervisior</local4>                                                  
    8 rows selected.?

  • How to rename the XML file generated during payment run

    Hi,
    We have a requirement to rename the XML file during payment run, format some fields of XML file and upload it onto Application server with the new XML file name. All these activities need to be performed during payment run F110.
    Please let know if there is any User exit or Enahancement to achieve these functionalities.
    Thanks !
    Regards,
    Ravinder

    Hi,
    We have achieved the second functionality also i.e. populating the additional nodes or custom nodes of an extended tree.
    This is what we have done...
    We have copied the standard exit FM: DMEE_EXIT_TEMPLATE_EXTEND_ABA into a custom one and assigned it to each (custom) node in 'Source' tab. Line item text FPAYP-SGTXT will not be returned via this FM, so we fetched it explicitly from BSEG table using the input FPAYP-DOC2R (this field will have the company code, document number, fiscal year and item no, all concatenated).
    Thanks,
    /Ravinder

  • How to retrive data from .XML file to JMS

    hi friends.. this is vamsi from india.. i have been working on jsp, java bean, xml, jms, message driven bean , ejb and database from last couple of days. but i am not able to retrieve data from fields in xml file to jms. can any one help me out in retrieving the data from xml to jms..
    thanking you,
    vamsi.

    Database but we are not able to retrieve the values
    from XML to JMS."We are not able to" is too vague a statement. An answer to this could well be "Did you turn your computer on?"
    So again, please post formatted code showing what you have done and where you are stuck.
    Perhaps an error message and/or a stack trace if appropriate.

  • Assigning Name to XML file

    Hi Y'all,
    I'd like the XML file name being submitted with "Submit via Email" button be value entered in one of the required text fields.
    In current case name of the field is ClubNumber. For xample if user entered 22155 in the field, the XML file would be named 22155.xml.
    How can I do that?
    Thanks,

    You can set the subject line using the ?subject= parameter in the mailto target. For example:
    if (SCODAchievementsData.rawValue != null)
    var oSubmitTarget = this.resolveNode("#event.#submit").target;
    var nLoc = oSubmitTarget.indexOf("?subject=");
    if (nLoc > -1)
    var target = oSubmitTarget.substring(0, nLoc);
    this.resolveNode("#event.#submit").target = target + "?subject=" + SCODAchievementsData.rawValue;

  • Mapping IDOC to CSV file - Missing blank field values in CSV file

    Hello:
    I am mapping an IDOC to a .csv file, using File Content Conversion.  I specify comma as the value for the parameter 'fieldSeparator'.  I get a .csv file, but blank field values are missing in the .csv file.
    For example, if the .csv file format is <field1>,<field2>,<field3>
    and if <field2> is blank, then the .csv file contains
    <field1>,<field3>

    Hi Bac,
    As long as the XML that goes to your File Receiver Channel contains the elements, even if they don't contain values, it should work fine.
    For example:
    <field1>data</field1>
    <field2></field2>
    <field3>data2</field3>
    I suspect that your XML looks like the following:
    <field1>data</field1>
    <field3>data2</field3>
    If this is the case you can update your map. You shouldn't need to put a space, just make sure the element gets created.
    Thanks,
    Jesse

  • Numbers 09 not working - I can open the program but only a few files are available, missing blank, checklist and many others. e.g  when I click on a file I get this error: The document "nmbtemplate is invalid. The index.xml file is missing. help.

    Please let me know what I can do to get my Numbers (iWork 09) working properly again.
    Here is what is going on:
    Numbers in iWork 09 not working can't access Blank, Checklist and many other files within Numbers.   I can open the program but only a few files are available. When I click on the file (which also has no icon just the name of the file) this warning appears:
    The document "Blank.nmbtemplate" is invalid.  The index.xml file is missing.
    I recently had to get a new hard drive installed and had the system upgraded and more memory put in by a Mac certified specialist recommended to me from the Apple store in Northbrook because this was the 3rd time my drive went bad but this time it was to old (I got the IMAC- in 2007) and the Apple store could no longer work on it this time so they recommended a few places that had certified Mac specialists.  Since then Numbers is not working right.
    I'm sure it's something simple to fix, but I've tried re installing it and that didn't work.  Appreciate any help.
    Thanks
    AppMare

    There is one way its getting fixed. Once I update my Adobe Illustrator CC to Adobe Illustrator CC 2014 it is further allowing me to go into the system folder and allocate the font to the file so that it can replace it. My only concern now is that our MAC partners who will receive these files back from us have Adobe CS6. We will down save it to CS6 but I hope they won't experience any font issues because of us using CC 2014? Any light you can shed on this?

  • Creating xml file from fields of a fmb

    Hi,
    What i want to do is to create a "generic" button (which can work for all forms of my application) which ables the application to create a xml file completed with all fields on my form. The matter is that i can't know by advance all fields of my 1100 forms!
    Is there a solution?
    Kind regards
    PS: i have forms6 but soon forms10
    PS2: sorry for my poor english

    Hello,
    It is easy to loop through all items of a form.
    Have a look at the Dynamic Color Customization white paper on OTN. get the sources code and study the COLOR.PLL functions.
    http://www.oracle.com/technology/products/forms/pdf/10g/community_colors.zip
    Francois

  • Inserting a value from page field into an xml file

    Hi there,
    I have added a field 'Comments' on a create vacancy page.
    There are other fields on that page and the values from those fields are getting stored in an xml file.
    This xml file is getting stored in TRANSACTION_DOCUMENT column of table HR_API_TRANSACTIONS.
    Is it possible to add the value from the field (that I've added on the page) into the same xml file?
    If yes, please tell me how
    and if no, tell me what should I do to store that value.
    Regards,
    Gaurav.

    Hi Gaurav,
    You need to check in seeded files for the logic of generation of XML file and setting it in DB column. May be in PLSQL API this code would exist.
    Once you get that logic you can append your column value in XML tag (need to create new tag) if you are allowed to modify seeded API. Otherwise use free additional attributes of the table.
    Hope I am clear.
    Regards,
    Mukesh Uchaniya

  • How to customize the XML file name from user entered field value when submitting

    How can I customize the name of an HTTP submitted XML file from data entered by the user in a text field?
    The field in question contains user identification information and would ease the sorting of files received for easy identification.
    Thank you,

    How can I customize the name of an HTTP submitted XML file from data entered by the user in a text field?
    The field in question contains user identification information and would ease the sorting of files received for easy identification.
    Thank you,

Maybe you are looking for