Topic: Incorrect Tag:Multiple Attributes with Same Collection Type

I have an Object Type that contains multiple attributes with the same collection type. When I use OracleXML getXML to generate xml, the tag for all elements created for any of the matching types is the tag for the 1st of the similar attributes.
work_t_v is an object view of a relational schema
SQL> desc work_t_v
Name Null? Type
WORK_ID NUMBER(38)
TITLE_OF_WORK VARCHAR2(512)
MESH_HEADINGS MESH_HEADINGS_T
AUTHORS AUTHORS_T
COMMENT_ON WORK_REFERENCES_T
COMMENT_IN WORK_REFERENCES_T
ERRATUM_IN WORK_REFERENCES_T
REPUBLISHED_FROM WORK_REFERENCES_T
REPUBLISHED_IN WORK_REFERENCES_T
SQL> desc work_references_t
work_references_t TABLE OF WORK_REFERENCE_T
Name Null? Type
REFSOURCE VARCHAR2(255)
NOTE VARCHAR2(255)select
work.work_id,
work.title_of_work,
work.comment_on comment_on,
work.comment_in comment_in,
work.erratum_in erratum_in,
work.republished_from republished_from,
work.republished_in republished_in
from work_t_v work
where work_id = 99350984
results in tag of <comment_on> for all the elements built from the work_references_t type (i.e., there are no <comment_in>, <erratum_in>, <republished_from> or <republished_in> elements)
sample result is:
<COMMENT_ON>
<COMMENT_ON_ITEM>
<REFSOURCE>J Infect Dis 1998 Aug;178(2):601 [CommentOn]</REFSOURCE>
</COMMENT_ON_ITEM>
</COMMENT_ON>
<COMMENT_ON>
<COMMENT_ON_ITEM>
<REFSOURCE>J Infect Dis 1998 Aug;178(2):601 [CommentIn]</REFSOURCE>
</COMMENT_ON_ITEM>
</COMMENT_ON>
<COMMENT_ON>
<COMMENT_ON_ITEM>
<REFSOURCE>J Infect Dis 1998 Aug;178(2):601 [ErratumIn]</REFSOURCE>
</COMMENT_ON_ITEM>
</COMMENT_ON>
<COMMENT_ON>
<COMMENT_ON_ITEM>
<REFSOURCE>J Infect Dis 1998 Aug;178(2):601 [RepublishedFrom]</REFSOURCE>
</COMMENT_ON_ITEM>
</COMMENT_ON>
<COMMENT_ON>
<COMMENT_ON_ITEM>
<REFSOURCE>J Infect Dis 1998 Aug;178(2):601 [RepublishedIn]</REFSOURCE>
</COMMENT_ON_ITEM>
</COMMENT_ON>
The above xml should be:
<COMMENT_ON>
<COMMENT_ON_ITEM>
<REFSOURCE>J Infect Dis 1998 Aug;178(2):601 [CommentOn]</REFSOURCE>
</COMMENT_ON_ITEM>
</COMMENT_ON>
<COMMENT_IN>
<COMMENT_IN_ITEM>
<REFSOURCE>J Infect Dis 1998 Aug;178(2):601 [CommentIn]</REFSOURCE>
</COMMENT_IN_ITEM>
</ERRATUM_IN>
<COMMENT_ON>
<ERRATUM_IN_ITEM>
<REFSOURCE>J Infect Dis 1998 Aug;178(2):601 [ErratumIn]</REFSOURCE>
</ERRATUM_IN_ITEM>
</ERRATUM_IN>
<REPUBLISHED_FROM>
<REPUBLISHED_FROM_ITEM>
<REFSOURCE>J Infect Dis 1998 Aug;178(2):601 [RepublishedFrom]</REFSOURCE>
</REPUBLISHED_FROM_ITEM>
</REPUBLISHED_FROM>
<REPUBLISHED_IN>
<REPUBLISHED_IN_ITEM>
<REFSOURCE>J Infect Dis 1998 Aug;178(2):601 [RepublishedIn]</REFSOURCE>
</REPUBLISHED_IN_ITEM>
</REPUBLISHED_IN>bracketed portion [] is contained within the refsource string to indicate what type of reference it should be displayed as.
I also found that if I use the -withDTD parameter to include the dtd, the dtd includes the appropriate elements (comment_in, erratum_in, republished_from and republished_in). However, it incorrectly defines refsource and note multiple times (once for each WORK_REFERENCES_T attribute).
Are these known problems? Will they be fixed? I'm more concerned about the XML problem than the DTD problem.
Thanks! -- John Butler
null

Using the version of XML SQL Utility that comes with the next XSQL Servlet release 0.9.8.6 I did the following:
create type foo as object (a number);
create type foolist as table of foo;
create view fooview
as select
cast(multiset(
select sal from emp where rownum < 2)
as foolist) list1,
cast(multiset(
select sal from emp where rownum < 2)
as foolist) list2
from dual;
When I request a "SELECT * FROM FOOVIEW"
through getXML I get:
<?xml version="1.0"?>
<ROWSET>
<ROW num="1">
<LIST1>
<LIST1_ITEM>
<A>800</A>
</LIST1_ITEM>
</LIST1>
<LIST2>
<LIST2_ITEM>
<A>800</A>
</LIST2_ITEM>
</LIST2>
</ROW>
</ROWSET>
So this appears fixed in the next code drop.
In the interim, I'll email you the new JAR file until (since it won't be on OTN for a few more days).
null

Similar Messages

  • Incorrect Tag:Multiple Attributes with Same Collection Type

    I have an Object Type that contains multiple attributes with the
    same collection type. When I use OracleXML getXML to generate
    xml, the tag for all elements created for any of the matching
    types is the tag for the 1st of the similar attributes.
    work_t_v is an object view of a relational schema
    SQL> desc work_t_v
    Name Null? Type
    WORK_ID NUMBER(38)
    TITLE_OF_WORK VARCHAR2(512)
    MESH_HEADINGS MESH_HEADINGS_T
    AUTHORS AUTHORS_T
    COMMENT_ON WORK_REFERENCES_T
    COMMENT_IN WORK_REFERENCES_T
    ERRATUM_IN WORK_REFERENCES_T
    REPUBLISHED_FROM WORK_REFERENCES_T
    REPUBLISHED_IN WORK_REFERENCES_T
    SQL> desc work_references_t
    work_references_t TABLE OF WORK_REFERENCE_T
    Name Null? Type
    REFSOURCE VARCHAR2(255)
    NOTE VARCHAR2(255)
    select
    work.work_id,
    work.title_of_work,
    work.comment_on comment_on,
    work.comment_in comment_in,
    work.erratum_in erratum_in,
    work.republished_from republished_from,
    work.republished_in republished_in
    from work_t_v work
    where work_id = 99350984
    results in tag of <comment_on> for all the elements built from
    the work_references_t type (i.e., there are no <comment_in>,
    <erratum_in>, <republished_from> or <republished_in> elements)
    <COMMENT_ON>
    <COMMENT_ON_ITEM>
    <REFSOURCE>J Infect Dis 1998 Aug;178(2):601
    [CommentOn]</REFSOURCE>
    </COMMENT_ON_ITEM>
    </COMMENT_ON>
    <COMMENT_ON>
    <COMMENT_ON_ITEM>
    <REFSOURCE>J Infect Dis 1998 Aug;178(2):601
    [CommentIn]</REFSOURCE>
    </COMMENT_ON_ITEM>
    </COMMENT_ON>
    <COMMENT_ON>
    <COMMENT_ON_ITEM>
    <REFSOURCE>J Infect Dis 1998 Aug;178(2):601
    [ErratumIn]</REFSOURCE>
    </COMMENT_ON_ITEM>
    </COMMENT_ON>
    <COMMENT_ON>
    <COMMENT_ON_ITEM>
    <REFSOURCE>J Infect Dis 1998 Aug;178(2):601
    [RepublishedFrom]</REFSOURCE>
    </COMMENT_ON_ITEM>
    </COMMENT_ON>
    <COMMENT_ON>
    <COMMENT_ON_ITEM>
    <REFSOURCE>J Infect Dis 1998 Aug;178(2):601
    [RepublishedIn]</REFSOURCE>
    </COMMENT_ON_ITEM>
    </COMMENT_ON>
    bracketed portion [] is contained within the refsource string to
    indicate what type of reference it should be displayed as.
    I also found that if I use the -withDTD parameter to include the
    dtd, the dtd includes the appropriate elements (comment_in,
    erratum_in, republished_from and republished_in). However, it
    incorrectly defines refsource and note multiple times (once for
    each WORK_REFERENCES_T attribute).
    Are these known problems? Will they be fixed? I'm more
    concerned about the XML problem than the DTD problem.
    Thanks! -- John Butler
    null

    Using the version of XML SQL Utility that comes with the next XSQL Servlet release 0.9.8.6 I did the following:
    create type foo as object (a number);
    create type foolist as table of foo;
    create view fooview
    as select
    cast(multiset(
    select sal from emp where rownum < 2)
    as foolist) list1,
    cast(multiset(
    select sal from emp where rownum < 2)
    as foolist) list2
    from dual;
    When I request a "SELECT * FROM FOOVIEW"
    through getXML I get:
    <?xml version="1.0"?>
    <ROWSET>
    <ROW num="1">
    <LIST1>
    <LIST1_ITEM>
    <A>800</A>
    </LIST1_ITEM>
    </LIST1>
    <LIST2>
    <LIST2_ITEM>
    <A>800</A>
    </LIST2_ITEM>
    </LIST2>
    </ROW>
    </ROWSET>
    So this appears fixed in the next code drop.
    In the interim, I'll email you the new JAR file until (since it won't be on OTN for a few more days).
    null

  • Multiple files (with same message type) into a single file

    Dear All,
    I am having multiple files(same message type) with details like header data and its line item details in each file. The structure of all the files will be:
    File1    File2   File3
    H1        H2      H3
    L1         L1      L1
    L2        
    L3
    Now my requirement is that after every 10 hours all the files should be picked and merged (append) into a single file as target file. The structure of output file will be now like
    H1
    L1
    L2
    L3
    H2
    L1
    H3
    L1
    Kindly guide on how to proceed on this with BPM or without BPM
    Regards,
    NJ

    Now my requirement is that after every 10 hours all the files should be picked and merged
    (append) into a single file as target file.
    Check the use of "Availability Time Planning" of the adapter in your case
    /people/shabarish.vijayakumar/blog/2006/11/26/adapter-scheduling--hail-sp-19-
    If your requirement is to append you can do so by using the File Construction mode as Append in receiver File adapter
    If your req is to do a N:1 mapping (i.e. merger) then develop a mapping program accordingly...
    Regards,
    Abhishek.
    Edited by: abhishek salvi on Jun 3, 2009 10:30 AM

  • Multiple MHD with same message type

    Hi,
    Can seeburger handle the following Tradacom EDI standards
    MHD: ORDHDR
    MHD:ORDHDR
    Is it normally allowed for seeburger to do such a mapping.  I believe that any normal EDI file should have only one MHD:order header file with orders.
    Regards
    Krish

    Now my requirement is that after every 10 hours all the files should be picked and merged
    (append) into a single file as target file.
    Check the use of "Availability Time Planning" of the adapter in your case
    /people/shabarish.vijayakumar/blog/2006/11/26/adapter-scheduling--hail-sp-19-
    If your requirement is to append you can do so by using the File Construction mode as Append in receiver File adapter
    If your req is to do a N:1 mapping (i.e. merger) then develop a mapping program accordingly...
    Regards,
    Abhishek.
    Edited by: abhishek salvi on Jun 3, 2009 10:30 AM

  • Read multiples files with same extension

    how to read multiples files with same extension in java.
    for ex : i would like to read all .DAT files from C drive using java.
    How is it done

    - You create the filter
    - You get the list of files
    - You open and read each file.
    For the first two above you look at java.io.File and listFiles(FileFilter filter).
    For the third you find whatever input stream is appropriate from java.io.*

  • Multiple accounts with same email

    I have multiple accounts with same email
    The one that has all my contacts is the one attached to FB but for some odd reason I can no longer access this specific account
    When I try to reset my password, it only keeps asking me to change my FB password
    Once I try logging in on Skype, it keeps asking my FB to connect to the other 2 Skype accounts, completely diffente usernames
    I am only interested in the one that originally connected to my FB as it has all my contacts
    As my other 2 accounts are my old Skype accounts and have my old contacts from years ago

    Actually this morning I was able to log on the account from an iPad with no fuss but the pc refuses to sign in^^^!???! "Skype couldn't connect" - What is going on???
    I also found out that I could sign in via a browser but not via skype program... So I uninstalled it and installed it again and it's working now...
    I have now changed the email so I don't have 3 accounts with the same primary email as Skype seems to not being able to handle multiple accounts with same email!!!

  • Multiple members with same alias

    I have multiple members with same alias name. Are there anyway to build dimension members with same alias name?

    Typically I will concatinate the member name (as either a prefix or suffix ) to the Alias to make it unique

  • Mounting multiple directories with same name on different severs to a single mount point on another server

    We have a requirement where in we have multiple solaris servers and each solaris server has a directory with the same name.
    The files in these directories will be different.
    These same name directories on multiple severs has to be mounted to a single directory on another sever.
    We are planning to use NFS, but it seems we can not mount multiple directories with same name on different severs to a single mount point using NFS, and we need to create multiple mount points.
    Is there any way we can achieve this so that all the directories can be mounted to a single mount point?

    You can try to mount all these mount points via NFS in one additional server and then export this new tree again via NFS to all your servers.
    No sure if this works. If this works, then you will have in this case just an additional level in the tree.

  • Multiple accounts with same email can't acces original account

    ok, so i created a new skype. I was messing with skype account on my desktop and wound up unlinking and re linking the account basically i made 2 extra accounts and they have my live: random.namehere_1 and live: random.namehere_2 and i cant log into my original one anymore also when i try to do a recovery it says i have 2-3 skype accounts on my email and i cant log into my accounts by typing in the live:random.namehere and the  password it just says ooops something went wrong basicallly saying the pw and account name are wrong when they arent i made sure of it. so how do i eliminate the cloned accounts and log into the main one.  

    Actually this morning I was able to log on the account from an iPad with no fuss but the pc refuses to sign in^^^!???! "Skype couldn't connect" - What is going on???
    I also found out that I could sign in via a browser but not via skype program... So I uninstalled it and installed it again and it's working now...
    I have now changed the email so I don't have 3 accounts with the same primary email as Skype seems to not being able to handle multiple accounts with same email!!!

  • Invoice split with same document type

    Hi Experts,
    Kindly suggest on following issue:-
    Currently we are using two billing types ZBBL  for division 11 & ZDBL for division 12.
    Whenever we do invoice with billing type ZBBL(manual entry) with reference to delivery for 12, system gives error message i.e. ZBBL can not be processed with division 12 & vice versa.  This is OK .
    But if we do VF01 for two delivery document one with division 11 & other with division 12-billing document ZBBL(manual entry) , system splits the invoces. It create two invoices. Again its a standard process.
    So my problem is system is creating two different invoices , one for division 11 & other for 12-but with same billing type.
    How can I make setting so that if system splits into two invoices ,it should create one invoice with ZBBL & other with ZDBL.
    Please advise.
    Thanks in advance.
    Regards,
    Dharminder dalal

    There can be many reasons why your invoices with same sales area are getting split. It many based on:
    - Billing type
    - Billing date
    - Payer
    - Billing unit
    - Terms of payment
    - Incoterms
    - Letter of credit
    Further, if you want analysis, on what bases system is splitting these in invoice. Try following steps:
    - Try using Tcode VF04. Opt for delivery related billing.
    - Select the desired delivery docs in Billing due list. (Press Ctrl Key from keyboard to select multiple lines).
    - Then click on simulation button.
    - Billing Doc Simulate: Billing Doc Overview Screen
    - Select all lines.
    - There first go for Logs, by pressing Log button.
    - If log is fine then, click on Split Analysis button to get split analysis.
    For further reference on Invoice split. Refer SAP Note 11162 - Invoice split criteria in billing document
    So, how to handle this?
    Based on the split analysis amend your copying control for Delivery to Billing in TCode VTFL.
    There many be a possibility that you might need to create customized routine with help of a tech consultant to suffice your requirement.
    Also, refer link - multiple delivery but single invoice for reference/understanding.
    Then to combine the billing. Follow following steps:
    1. Use Tcode VF04. Opt for delivery related billing.
    2. Select the desired delivery docs in Billing due list. (Press Ctrl Key from keyboard to select multiple lines).
    3. Then click on Collective Billing button.
    Regards
    JP

  • How to transfer one file to multi sap with same IDOC Type?

    Hi all!
    I need your help..
    My senario is tansfer one xml-file to multi-sap server
    with same IDOC type.
    IS it possible to transfer without BPM?
    I think that the way not using bpm is impossble,
    because the file is deleted by sender adapter.
    If I'm using BPM, how to design?
    I consider 'fork' or 'switch',
    but, I guess,
    Idoc is will be initialized by other branch at last step.
    I hope good information.
    Regards.

    Hi,
    you can create using BPM .
    IR
    you need to create source for one interface and trager for two differnent interfaces.
    suppose if you are doing message mapping in message tab source is one interface targer is multiple interface..so that source can map multiple interfaces...
    create the Interface mapping one source two are target interfaces.
    Create the Integration proces...
    First step is receive step next use the Transformation Step that means source message it will conver two targets...then use the Fork step Recever Determination step goes to the first Send step..
    again drag the another receiver determination and use tge send step..close the FORK step.
    regards,
    venu.

  • SES Filter - Adding Multiple Filters with same custom attribute

    Hi,
    I have added custom search attributes and am able to add a filter to the doOracleSearch method.
    filter[0] = new Filter(new Integer(100), "NUMBER", "equals", 10020);
    Now I have to add another filter for same search attribute with or condition, how can I do that..
    I tried following..
    filter[0] = new Filter(new Integer(100), "NUMBER", "equals",10020);
    filter[1] = new Filter(new Integer(100), "NUMBER", "equals", 10049);
    But how do I specify it is or and the above code is not working.
    Thank you.
    Vasu.

    Here is an example of this using 11g. Note you will need to login programatically if data is secured.
    // Create search service and set SOAP URL
    OracleSearchService searchService = new OracleSearchService();
    searchService.setSoapURL("http://myserver:7777/search/query/OracleSearch");
    // Get data group to search
    DataGroup dataGroup = new DataGroup();
    dataGroup.setGroupName("MyGroup");
    DataGroup[] dataGroups = new DataGroup[1];
    dataGroups[0] = dataGroup;
    // Get list of all attributes to fetch
    Attribute[] attributesAll = searchService.getAllAttributes("en");
    ArrayList<Integer> attributeIds = new ArrayList<Integer>();
    for(Attribute a: attributesAll)
         attributeIds.add(a.getId());
    Integer attributeIdArrayAll[] = new Integer[attributeIds.size()];
    attributeIdArrayAll = attributeIds.toArray(attributeIdArrayAll);
    // Create filters (BE SURE THE FILTER ID IS CORRECT - I do not suggest you hard-code it but rather iterate through list of all attributes above and get ID that way)
    Filter[] myFilters = new Filter[2];
    myFilters[0] = new Filter(124, "Number", "EQUALS", "129224");
    myFilters[1] = new Filter(124, "Number", "EQUALS", "123730");
    // Query (BE SURE TO USE "or" as the operator between filters)
    OracleSearchResult result = searchService.doOracleSearch("", 0, 50, false, false, dataGroups, "en", null, true, "or", myFilters, attributeIdArrayAll);
    // Get count
    int hits = result.getEstimatedHitCount().intValue();
    // Print results
    ResultElement[] resElements = result.getResultElements();
    for(int i = 0; i < resElements.length; i++)
    // Get document
    ResultElement doc = resElements;
    Hope this helps!

  • Bridge CS4 won't output to pdf multiple images with same filename

    Hiya...my googling efforts have thus far failed!
    I've got CS4, and in Bridge, I created a New Smart Collection to find all filenames in a folder containing "." or ".jpg" - which in turn searched through all the subfolders like what you used to be able to do in Photoshop CS3.  Very simple stuff, but all the images are jpg's, but in multiple folders (I don't want to move them out of the folders, as the files came from an external source, and there are heaps of folders, and I don't want to pdf each subfolder seperately as it will take forever).
    The problem is that some of the files have the same filenames (again I'd prefer not to rename, as it happens a lot on this project, and they are all over the place).  So whilst Bridge will show the thumbnail images correctly in the content tabbed screen in my New Smart Collection, but once I've done the Output to PDF thing, for example, instead of showing both different images it has pdf only the first image but repeated it twice.  And this happens multiple times throughout the pdf, the more times the same filename is used, the more times the first image gets repeated.
    I know that it is messy to have multiple similar filenames, but why can't bridge just place the image anyway?  It allocated a space for it on the pdf and does show it in bridge, it just doesn't seem to survive the transfer to pdf well.
    The only other thing that I have done is use the below link (which was posted on another adobe forum thread) to create a custom pdf output template (nothing too fancy, just number of rows / columns, size, font etc).  But I've tried using the standard bridge templates and it does the same thing.
    http://www.proficiografik.com/2009/08/03/save-custom-pdf-output-template-in-adobe-bridge-c s4.html
    Any help would be appreciated...even if to tell me that I am being unreasonable!
    UPDATE 16/11/09
    Just to let you know that I seem to have resolved the bug inadvertently with one of the Adobe updates. The below is the link for the AdobeOutputModule-2.1-mul-AdobeUpdate.zip which was released on 2/19/2009 - which allows for headers & footers to be placed in the Ouput pdf. I finally installed it today, and everything seems to be working fine now (i.e. I can pdf multiple images with the same filenames and the pdf will actually show each different image rather than repeating only 1 of the images).
    Must have been a fix installed in the contact sheet templates that get installed with the update - not sure why the original version was corrupted, but I've left that with the Adobe guys (I submitted a bug report - and they were able to replicate the problem but hadn't fixed it as yet).
    http://www.adobe.com/support/downloads/detail.jsp?ftpID=4228
    Message was edited by: djtun71 (16/11/09)

    When I click import from disc I am asked to choose a disc and then I get this message:
    The following photos will not be imported because they are already present in the catalog. To see these photos in the catalog select 'Show in Library' (the import will be canceled).
    This is followed by a long list of images. If I click 'Show in Library' I can see all the images with the same filename. And then they start to automatically write over those images with images from the disc. However they keep the same metadata and keywords from the previous images. If I click on Import and deselect the "don't reimport suspected duplicates" box, it imports only the images that don't share filenames and none of the images that do.
    Is there a way of setting the "Don't reimport suspected duplicates" box in preferences?

  • Podcast synching on multiple macs with same account

    How do I get my podcasts to synch on multiple macs and therefore ipods with same itunes authorized account, ie the subscriptions I have on home computer don't show up on my work itunes account and therefore when I'ved watched flying one way, when I land I want to load the next set of episodes, but find the need to create entirely new subscriptions?
    Thanks
    george

    I was able to resolve the problem using addMessageCountListener and messagesAdded method, as suggested by you.
    I am now facing another problem. Whenever a new message is received, code inside messagesAdded method gets executed. Here I am trying to spawn another thread and do some stuff. But this new thread is not starting at all. It goes into some JavaMail:EventQueue and does nothing. What is the concept of EventQueue here? How can I get this new thread executed?
    Also will there be synchronization problems in messagesAdded method. Say I received a message and I am processing it in the messagesAdded method. In the mean time another message comes up. How will this behave.

  • To create multiple files with same content but with different names

    Hi SapAll.
    here i have got a tricky situation on Idoc to File Scenario.
    in my interface of an Idoc to file ,there  is requirement to create multiple files with different file names but with same content based on one Idoc Segment.
    which means there will be one Zsegment with two fields in the idoc,where one field with (content refers to the name which file name should start with .so lets say if this segment is repeated for 3 times then PI should create 3 files in the same directory with same content but with different file names (from the filed).
    so here for now iam using one reciever file communication channel.
    can any body give me the quick answer.
    regards.
    Varma

    What do you mean by different names?
    when i make proper setting in the Receiver Channel....on how to create the filename (what to append) like add Timestamp, counter, date, messageid.....even in this case you will ahve file with different names and that too from same File channel.
    You can perform multi-mapping in XI/ PI and then your File channel will place the files in the target folder with relevant names. You cannot use Dynamic Configuration with Multi-Mapping!
    If you intend to use different File channels, then do the configuration as required (normal)...even over here you can follow multi-mapping.
    Do not use a BPM!
    Regards,
    Abhishek.

Maybe you are looking for