XMLBeans 2.0 - Problem with derived/extended schema elements
Hi,
I have a schema which takes a list of "Record" types. Each 'Record' is complex type of SenderDetails, Recipientdetails, shipdate, description and Ref elements. The main.xsd is as follows:
<xs:element name="records">
<xs:complexType>
<xs:sequence>
<xs:element name="record" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="SenderDetail" type="cmn:AddressType" />
<xs:element name="Shipdate" type="xs:string"/>
<xs:element name="RecipientDetail" type="cmn:AddressType" />
<xs:element name="Description" type="xs:string"/>
<xs:element name="Ref" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
Now, the SenderDetail and the RecipientDetail may be of type 'Employee' or 'Department'. Employee and Department are both derived from 'AddressType' as shown.
<xs:complexType name="Department">
<xs:complexContent>
<xs:extension base="cmn:AddressType">
<xs:sequence>
<xs:element name="Name" type="xs:string" />
<xs:element name="keyvalues" type="cmn:Valuelist"/>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="Employee">
<xs:complexContent>
<xs:extension base="cmn:AddressType">
<xs:sequence>
<xs:element name="Name" type="xs:string" />
<xs:element name="Title" type="xs:string" />
<xs:element name="Empid" type="xs:string"/>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
After mapping the schema to java objects, here I am using the following code to check whether the 'SenderDetail' in the incoming xml is of type 'Employee' or 'Department'.
'records[]' is the array of records already extracted from incoming xml.
Here the output of "System.out.println( records.getSenderDetail() ); "
Output:
<xml-fragment xsi:type="o:Employee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:p="SomeX/Records"
xmlns:o="SomeX/Stakeholder"
xmlns:c="SomeX/CommonTypes">
<c:street1>456 Oak Lane</c:street1>
<c:street2>Second floor bld I</c:street2>
<c:city>xxx</c:city>
<c:state>xxx</c:state>
<c:country>US</c:country>
<c:zipcode>xxx</c:zipcode>
<c:phone>xxx</c:phone>
<c:comail>xxx</c:comail>
<o:Name>xxx</o:Name>
<o:Title>xxx</o:Title>
<o:Empid>xxx</o:Empid>
</xml-fragment>
Now I am expecting the output of the following code
AddressType p = records[i].getSenderDetail();
if (p instanceof Employee){
System.out.println("Sender is of type Employee");
}else if (p instanceof AddressType){
System.out.println("Sender is of type AddressType");
to be "Sender is of type Employee"
But I am getting "Sender is of type AddressType"
records[i].getSenderDetail().schemaType() on this record is giving me the base schema type "AddressType"
How can I get the derived schema type ? How can i know whether this is a Employee/Department type?
Thank You.
If your query1 is something like
SELECT ...
d.deptno,
FROM
...dept d
WHERE ...
and you want to do query2
SELECT ...
FROM ...
for all departments but then split the output on display by department.
I'd go with the suggestion from the other poster above:
Do your query1 as
SELECT ...Query1Fields,
Query2Fields
FROM Query1Tables, (put query2 here) q2
where q2.deptno = dept.deptno -- or whatever the conditions are
Or use
WITH q2 AS (put query2 here)
SELECT ...Query1Fields,
Query2Fields
FROM Query1Tables, q2
where q2.deptno = dept.deptno -- or whatever the conditions are
That second format should ensure that query2 is done as one whole unit.
Then in the data model drag and drop the query2fields outside the query1 group to form a new group below it. Then in the layout you have a repeating group based on the query1 group and within it a repeating group based on the new "query2" group.
Similar Messages
-
Problems with 11g Global Schema / Java API Test Programs
Hi,
In the process of trying to get the 11g sample java api programs up and running, I've encountered a problem. Having installed without error the sample schemas for documentation and set up the 11g version of the test code, I get this error when I try to run BuildAW11g.java
Created the AW GLOBAL_AWJ
Identifier "GLOBAL.CHANNEL_DIM.TOTAL_ID" is invalid.
at
oracle.olapi.syntax.parser.IdentifierResolver.error(Unknown Source)
at oracle.olapi.syntax.SyntaxObject.validate(Unknown Source)
at oracle.olapi.syntax.SyntaxObject.fromSyntax(Unknown Source)
at oracle.olapi.syntax.SyntaxObject.fromSyntax(Unknown Source)
at oracle.olapi.syntax.SyntaxObject.fromSyntax(Unknown Source)
at oracle.olapi.examples.metadata.BuildAW11g.createDimension(BuildAW11g.java:470)
at oracle.olapi.examples.metadata.BuildAW11g.run(BuildAW11g.java:120)
at oracle.olapi.examples.BaseExample11g.execute(BaseExample11g.java:54)
at oracle.olapi.examples.BaseExample11g.execute(BaseExample11g.java:74)
at oracle.olapi.examples.metadata.BuildAW11g.main(BuildAW11g.java:989)
This seems to indicate that there is a problem with the sample schema - that GLOBAL.CHANNEL_DIM.TOTAL_ID doesn't exist. Is that right?
On the topic of the sample schemas, a quick question. The install script runs without error so presumably the tables described in the readme had been installed, but I'm not sure. How can I verify this? When I connect as global using Oracle SQL Developer and expand 'Tables' in the right hand pane, I don't see any tables at all. I would have (perhaps naively) expected to see the tables listed in the samples schemas readme, eg, CHANNEL_DIM. Should I have? If not, how can I view these tables? Thanks in advance for any input anyone may have.
-exitsAfter a reboot the "DHCP-check" is passed:
INFO: Checking DetectIfDHCPAssignedIP
This is a prerequisite condition to test whether the primary IP address of the system is DHCP-assiged or static.
INFO: Detecting the IP.....:192.168.1.4
INFO: Checking the network interface display name.... :eth0
INFO: Checking the network reference name..... :eth0
INFO: Checking the platform .......46
INFO: Checking the LINUX vendor .... :enterprise
INFO: Inspect interface file :/etc/sysconfig/network-scripts/ifcfg-eth0
INFO: Check complete. The overall result of this check is: Passed
But net configuration assistant is still failing. -
Problems with PHCS6 extended - lighting effects (filters)
What can I do to fix my lighting effects? It blocks the entire program Photoshop CS6 at that moment I click on it.
I've tried reinstalling the software with no results
. I would appreciate any help
Message was edited by: mclariceHi, mjarrott
My system is Windows 7. (GB Ram 8.00 on a Dell Optplex 980) And Photoshop is my newly purchased in Portuguese, because I'm Brazilian. The problem appears when I try to use the Filters menu - finishes - lighting effects.
My old version worked just fine ...
De: mjarrott [email protected]
Enviada em: quinta-feira, 8 de novembro de 2012 16:16
Para: mclarice
Assunto: Problems with PHCS6 extended - lighting effects (filters)
Re: Problems with PHCS6 extended - lighting effects (filters)
created by mjarrott <http://forums.adobe.com/people/mjarrott> in Photoshop for Beginners - View the full discussion <http://forums.adobe.com/message/4833406#4833406 -
I have two web service operations that have the same complex type as their input
parameter. I want to map this type to an existing schema. I can successfully
do this with the first operation using XQuery but when I attempt to do this with
the second operation I get the following error:
ERROR: MyService.jws:715:There are two or more operations with the same schema-element
'ns0:MyNamespace' on the input message in a web service file or callback interface.
ERROR: SUGGESTION: Use different schema-element values for each of those operations.
How can I use different schema-element values? The input parameters are to be
mapped to the same schema and same element since they are the same for both operations....I am having the same problem. How did you resolve this..?? could you please tell me the solution??
Thanks
Shari -
Problem with Photomerge Exposure, Photoshop Elements 13?
Problem with Photomerge Exposure, Photoshop Elements 13?. Why does Photomerge Exposure not give me a finished DONE photo. If I open 2 photos, it will merge then, and when I press DONE I get a new photo file that I can save. However, if I open 3 photos, and go through the same process, the software analyzes the photos, I get a new image, BUT when I press DONE, the new image vanishes???? I can open the same 3 photos in Elements 8 and it works fine. any ideas please.
I, too, am having problems in version 11 with Photomerge Exposure. I can merge the 3 photos successfully with version 10. In version 11 when I click done, I am taken back to the Expert mode of the Editor but the merged photo in the photo bin is not accessible. When I first return to the editor, one of the original images (before merge) is selected. When I double/click on the merged photo it doesn't become the active image. In fact, any image I double click on momentarily becomes the active image and then jumps to another one.
The merged photo is visible in the photo bin but I can't select it.
I am running version 11 on my MacBook running OS 10.6.8
Mary Lou -
Hello, i have a problem with the adobe photoshop elements 10 in the organizer impossible to use the magic mouse, Where can I configure this one?
Thank you.What do you mean by "impossible to use"? I use a magic mouse with PSE all the time. What are you wanting to do that isn't working?
-
Problems with creating SH Schema in exists Database 10.2.0.2
Hello ALL
I have problem with installation SH Demo Schema in exists Oracle Database 10.2.0.2 Enterprise Edition on Windows 2003 EE SP1
First I could try to configure my DB in Oracle Confuguration Assistant but I couldn't to add examles schemas there.
Then I installed Companion 10.2.0.1 with examples schemas in $ORACLE_HOME Database 10.2.0.2 and executed script sh_main.sql under SYS user.
After all SH Schema created in our DB but data exists in only two tables such as COSTS and SALES_TRANSACTIONS_EXT.
I haven't any more data in others tables.
In my log files I see follow :
SQL*Loader-500: Unable to open file (D:\oracle\DB_BI\demo\schema\sales_historydmsal_v3.ctl)
SQL*Loader-553: file not found
SQL*Loader-509: System error: The system cannot find the file specified.
SQL*Loader-500: Unable to open file (D:\oracle\DB_BI\demo\schema\sales_historydem_v3.ctl)
SQL*Loader-553: file not found
SQL*Loader-509: System error: The system cannot find the file specified.
SQL*Loader-500: Unable to open file (D:\oracle\DB_BI\demo\schema\sales_historysale_v3.ctl)
SQL*Loader-553: file not found
SQL*Loader-509: System error: The system cannot find the file specified.
and etc.
Please help me to install SH Schema in exists DB may be anybody resolved this issue.The document you are refering to is OK, but it assumes you already have installed the demo files.
In order for the demo to be installed and working, some requirements must be met.
You must have installed DB10g Enterprise Edition, as demos such as SH require the partitioning option, available only on E.E.
Start a second installation from the companion disk, start your oracle installer, select Database Products, verify the Oracle Home details are the same as those of your Oracle Home, confirm the action and install.
At the end of the installation you must see these directories at the $ORACLE_HOME/demo/schema directory:
bus_intelligence mk_dir.sql.ouibak mkunplug.sql sales_history
human_resources mk_dir.sql.ouibak.1 mkverify.sql shipping
info_exchange mkplug.sql order_entry sted_mkplug.sql.dbl
log mksample.sql product_media
mk_dir.sql mksample.sql.sbs README.txt -
I installed Sonic Extender and at first had no problem with it. Then I connected with a different internet connection and now it will not connect. What is the easiest way to get technical support help. I called and also submitted a request for someone to call me. I had no luck or help with either.
Hi Alex,
I tried the process you described on my machine using LabVIEW 7.1 and could not reproduce the behavior. If you can clarify the version you were using that will be helpful. I will have to clean a test machine and try it again without LabVIEW installed, and get back with you if the problem appears. In the meanwhile, I found the following KB which, while not referring to the exact same problem you are describing, does address the evaluation message issue. You can try to follow the steps at the end of the KB, and let me know if that worked.
http://digital.ni.com/public.nsf/websearch/1E1FB3C19E8E0A9986256F8D0077D0E6?OpenDocument
Regards,
Aluma G.
National Instruments -
Problem with branch authorization scheme
Hello,
I am trying to use 2 non-conditional branches (onsubmit after processing) with different authorization schemes (the first one should be executed for USER, the second - for ADMIN). But it doesn't work - the branch with smaller sequence number is executed in spite of the fact that user has no right because of authorization scheme of this branch (the second one should be executed for this user).
Why do this happens?
Regards,
NikolayWe use our own installation of HTML DB, so it is not on the Oracle site.
The first branch (which is executed in spite of authorization) sets page-item using value of item which is not accessible for this user (using the same authorization scheme as branch). Therefore this value equels null (we don't setup this item for this user) instead of using another branch with another value.
Thanks.
Nikolay -
Problem with display of many elements in IE11
Hi,
After automatic Windows Updates today I am having problems to see correctly many elements in any webpage, this is more notorious in buttons, where I can always see some weird cross.
I attach some screenshots
http://imgur.com/nz6aTBG
http://imgur.com/SsdJyoN
This is very annoying for some sites where this error is everywhere, how can I fix it?
I am using Windows 8.1 x64 with Internet Explorer 11 completely updated.
Regards,
Manuel.Hi Manuel,
Please check in update history if there is any updates for display card.
If so, please remove it and restart the computer the check the results.
If there is no related device driver update, I suspect that the udpates were not installed or configured properly, please perform a system restore back to when the IE 11 work fine, and try to reinstall them one by one.
After each update, restart your computer and then go to next one.
Let's try to find out if one of them cause this issue, and let me know the KB number of this update, I will help to research the root cause.
Kate Li
TechNet Community Support -
Gantt Chart: Problems with more than 39 elements
Hi all,
I have a problem with Gantt Project Chart.
Please have a look at http://tryapexnow.com/apex/f?p=2141:2 (credentials: demo/demo)
If you limit to 39 rows this works fine, but with 40 rows or more the timeline is not in line with the datagrid.
Strange thing is that as soon as you collapse all tasks the timeline is correct.
Uncollapsing brings back wrong display.
Has anybody seen this behaviour before and can help me out on that?
Thanks for help,
Moritz
Edited by: commi235 on 31.05.2011 13:23Hello Moritz,
the "Maximum Rows"-option is as default set to 40.
if you created the chart by "Create Region => Chart => Flash Chart => ..." you can change this value in tab "Chart Series", below the "Build Query"-button.
But I don't know how to change the maximum number of rows, when the chart is created via
"var chart = new AnyChart(''#IMAGE_PREFIX#flashchart/anygantt_4/swf/AnyGantt.swf''); " in a HTML-region.
I'm very interested in finding a solution.
Kirsten -
OBIEE-Answers Problems with NVARCHAR2 data type elements
Hello experts,
After we completed the .rpd development and ported to the real-time environment, when we try to create requests in Answers of Presentation services by selecting certain columns only and try to see results, we are getting an error if the columns are of NVARCHAR type. The error is given below.
This is stopping end users being not able to create any answers/requests. Please suggest how we can resolve this or if any specific things need to be done to solve the problem.
Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
State: HY000. Code: 87720170. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 17001] Oracle Error code: 24328, message: ORA-24328: illegal attribute value at OCI call OCIAttrSet. [nQSError: 17007] Error while executing OCIDefine routines. (HY000)Hello Damon,
Thanks for the response.
We have also tried to query the same data through SQL*Plus and it went well. We had no issues with any data. Also the .RPD is working in our local system with the same data, on windows OS. But when we port the .RPD in the Server (Sun Solaris) we are having problems with the columns which are considered as NVARCHAR2 in the database and VARCHAR in the Physical layer of BI.
We observed there is no NVARCHAR2 data type supported in BI administrator in building the RPD. Is there any other datatype supports the NVARCHAR2 datatype in BI?
Thanks,
Narasimha -
Windows 8.1 having problems with pinter selection using Elements 13.
I am running Windows 8.1 with Elements 13 and am having problems with PRINT. If I select a printer from the PRINTER menu, Elements recognizes the change of selection, allows me to modify the printer's specific setting and, then, when I PRINT seems to not recognize the selected printer and print of whatever was set as the original printer. Then, I delete the "original" printer in Windows 8.1 and attempt to print again with the same general result except I receive a Printer Not Found error from Windows.
How do I modify the "original" printer setting (seems to be associated with the file)? Note the "original" printer is not the default printer.Hatstead,
Thank you.
Yes, all of the print drivers are up to date (re-verified last evening).
Yes, I can print and select the printer as normal for all of the standard applications I use (Visio, PowerPoint, Word, Excel, Outlook, direct print from file (Explorer)).
I shortened the printer names from the standard Microsoft convention (based on some of the BOG comments). There was no change. In fact after the test sequence noted in #5, I re-implemented the "name shortening" yet again (shorter yet). I launched Elements and ran into the same messages noted in #5 (obviously, the "stored" printer did not exist). Yet after I went through the printer selection process (again as in #5) and, after a lag time, Elements redirected the print job what was the "stored" printer which was renamed....I do not know how Elements associated the deleted "Stored" printer with its old name with the newly named printer since no other application could (I checked).
I have closed and restarted the PC numerous times.
I have deleted all of the printers except the one I wanted to use for the specific print job. In this case, Elements came back with a message it could not access the "stored" printer. I then selected the correct printer, Elements acted like it was allowing to set up the selected printer with the specifics of the print job, and, then when I went to print, Elements again tried to redirect the print job to the "stored" printer (even though it did not exist).
The target printer is a "local" printer (USB connected). The apparent "Stored" printer is a network printer. So, I deleted the PC which has the "Stored" printer from the network (actually not only deleted it from the devices on my PC but literally shut the PC down and disconnected it from the network (two different test)) to no avail (still got the test results in #5).
Yes, I have attempted to print from the Editor (my normal mode) and from Organizer.
I have copied, open a new file and, then, pasted the image I wanted to print to no avail.
Is the a "stored" printer associated with the file or with Elements? If so, how to I modify (or dis-associate)?
Again, thank you. -
Problem with version sets in Elements 12
I have just started using elelments 12. I have been having problems with inconsistency in forming version sets. Some sets forms as expected. However, quite often after editing, when returning to Organizer the edited picture is not in a version set with the original and in fact is not even visible. I can get to the edited version only through the "Open" tab in the Editor. I have check the appropriate "Save in version set" in the save menu. Suggestions?
Seems you have the same problem :
http://forums.adobe.com/thread/1309160?start=0&tstart=0
The source of the problem is not clearly found today. It seems that happens on previously converted catalogs.
A workaround seems to have been found : killing the autoanalyzer.exe process in the task manager. -
Hi friends,
[Reports 6i - 6.0.8.20.1 & DB 9.2.0.8 ]
I have problems in one report to rerieve the value of a column in my Query1 in a derived column.
Let's say that we have a query (Q1) that obtain the departments of a company.
And a second query that obtain certain data for each department of Q1 and (this is important) we can't (due to others requirements) use a "link" to join the querys.
So my idea was to create a formula column (FC1) in Q1 where the departement is stored... and, out of the query, create a derived column that would have the value of FC1.
Then ... in design model... I'll have 2 repeating frames... one based on Q1 and other based on Q2..
Q1 Frame is ok and shows all departments... but... Q2 repeating... only shows values for 1 department... So my derived column seems not to change when the value of FC1 changes...
Any ideas?
Thanks,
JoseIf your query1 is something like
SELECT ...
d.deptno,
FROM
...dept d
WHERE ...
and you want to do query2
SELECT ...
FROM ...
for all departments but then split the output on display by department.
I'd go with the suggestion from the other poster above:
Do your query1 as
SELECT ...Query1Fields,
Query2Fields
FROM Query1Tables, (put query2 here) q2
where q2.deptno = dept.deptno -- or whatever the conditions are
Or use
WITH q2 AS (put query2 here)
SELECT ...Query1Fields,
Query2Fields
FROM Query1Tables, q2
where q2.deptno = dept.deptno -- or whatever the conditions are
That second format should ensure that query2 is done as one whole unit.
Then in the data model drag and drop the query2fields outside the query1 group to form a new group below it. Then in the layout you have a repeating group based on the query1 group and within it a repeating group based on the new "query2" group.
Maybe you are looking for
-
Its important that all characters display correctly in my pdf.
When I convert a file to pdf, I always get this error: Cannot extract the embedded font'HWNDJR 83mkhgdligynvro' some characters may not display correctly. What is wrong? Its important that all characters display correctly in my pdf ebook. Please advi
-
Open bookmarks, click on selection, opens but will not show list
I click on bookmarks, a tab opens to the right, i click on the selection i want (with an arrow) to open the list to choose a bookmark, but the list will not open, but others in the list will, i now have several lists that will not open in this way fr
-
Fonts bolded on publish?
Hey Does anyone know why my iWeb pages have normal text when viewed in iWeb but most of the text suddenly appears to be bolded when I view the pages in any of the web browsers I have (Safari, Firefox, Omniweb...). I've tried trashing the preferences,
-
WebLogic Server 9.2/10 Remote MBean Access with Java
Hi - I wrote a monitoring client for WebLogic 8.1 and it was easy to navigate through the MBeans by using the typed classes like "ClusterRunTimeMBean". I would like to update this code to work with WebLogic 10. After reading the docs online I am stil
-
Drag and drop or place multiple images
Hi, I'm working with Photoshop Elements 12 and would like to place multiple images (on different layers) in my project but am only able to place one image with the option "place" at a time. Is there a way to place multiple images at once? Other optio