question of xsd. several records with different values.
I need help in the creation of xsd.
My data from the file will be as Fallows.
Sample data file
AB xxxx yyyy zzz ttttt
BBB hhh ddd ddd
BBB hhh ddd ddd
BBB hhh ddd ddd
BC xxxx yyyy zzz ttttt
CCC hhh ddd ddd
CCC hhh ddd ddd
CCC hhh ddd ddd
CD xxxx yyyy zzz ttttt
Hhh ddd ddd DDD
Hhh ddd ddd DDD
Hhh ddd ddd DDD
My xsd is as Fallows:
< xsd: element name = "Root Element" >
< xsd: complexType >
< xsd: SEQUENCE >
< xsd: element name = "Element" type = "tns: mainelement" minOccurs = "0" maxOccurs = "unbounded" / >
< / xsd: SEQUENCE >
< / xsd: complexType >
< / xsd: element >
< xsd: complexType name = "mainelement" >
< xsd: SEQUENCE >
< xsd: element name = "Header" type = "tns:HeaderType" maxOccurs = "1" / >
< xsd: element name = "lineitem1" type = "tns:lineitemrecord1" minOccurs = "0" maxOccurs = "unbounded" nxsd:lookAhead = "0" nxsd:lookFor = "" / >
< / xsd: SEQUENCE >
< / xsd: complexType >
< xsd: complexType name = "HeaderTyep" >
< xsd: SEQUENCE >
< xsd: element name = "HeaderData" type = "xsd: String" nxsd:style = "fixedLength.
nxsd:length = "2528" / >
< / xsd: SEQUENCE >
< / xsd: complexType >
< xsd: complexType name = "lineitemrecord1" >
< xsd: SEQUENCE >
< xsd: element name = "RecordData" type = "xsd: String" nxsd:style = "fixedLength" nxsd:length = "161" / >
< / xsd: SEQUENCE >
< / xsd: complexType >
How can differentiate the values in the starting header field by [AB, BC, CD] and record data fields starting with [bbb, ccc, ddd]
I can't use nxsd: lookahead and nxd:lookFor.
Required inputs to process the file. What alteration is suitable for the xsd to run.
Is there a parent - child relationship kind of thing in your file structure?
Row containing sales, purchases etc. is the parent and the tracking records are the child records, until we meet any record type 'Bill of sales, purchases',? In addition, tried to use "conditionValue" and "startsWith" and it did not work... Is it?
Tags: Fusion Middleware
Similar Questions
-
Updated several lines with different values
Hello!
I have a problem. I need to update more than 1000 lines with different values. How can I do?
For exsample I have table:
ID; color, date,
1 red
2 green
3 white
I need to update the date field.
Update table
Set date = '01.02.03'
where id = 1
Update table
Set date = '01.03.03'
where id = 2
Maybe it's how to update multiple rows in a single request?
Sorry for my bad English.
Thank you!Hello
You can try this
UPDATE TABLE SET DATE = CASE WHEN ID = 1 THEN TO_DATE('01-02-03','DD-MM-RR') WHEN ID = 2 THEN TO_DATE('01-03-03','DD-MM-RR') END
see you soon
VT
-
reuse of filters with different values
We have a usage scenario where the same filters will have to be applied several times with different values. Looking the javadocs, it seems like there is no way to change the values of pre-packaged filters (EqualsFilter, GreaterFilter etc.). Is that correct or is there a way to do it? I see that if we use CohQL, we can use bind variables to do this. However, the use cases we should rather just more complex extractors ReflectionFilters.
In addition, there no performance impact by using CohQL against java constructs directly?
Thank you
Manju.Hi Manju,
While it is true that you cannot change values in the built in filters, even if you could it wouldn't make you save a lot on the construction of a new filter every time. I guess that if you build a very large number of filters, then you're going to create more garbage, but that shouldn't be a problem either. Some of the more specialized filters also contain State so that you do not want to resuse them.
The main performance issue I know with CohQL which is only creates extractors of reflection so won't enjoy all serialized POF values you have. If you have indexed each value you want to query on using the same extractors relflection then it would help, but again, this means that everything you deserialization of the values for the query or insert to update the index.
Kind regards
JK -
DAQmx create track (I-current-Basic) 8 channels with different values of Shunt resistance
Hello
I want to measure 8 current channels with different values of Shunt resistance.
Problem: The channel create DAQmx (HAVE current Basic) specifies that a value of Shunt resistance.
How can I set the value of Shunt resistance for each channel individually?
Concerning
Marcel
Hi Marcel_C,
Take a look to get attached.
Best regards
Mencef
-
two rows of delete with different values
Hello
I wouldn't lines with the same id and have values of E and F 10258932.
I would like the following data:
But I have the following lines:A B C D E N -------- -- ------ ----- - - 10258927 1 103,35 0 10258929 3 284,85 89,52 E N 10258929 4 323,85 89,52 E N 10258930 5 478,80 91,53 E N 10258931 6 436,67 78,09 E N
Does anyone have an idea?SQL> with my_table as 2 ( 3 select '10258927' a, '1' b, '103,35' c, '0' d, NULL e from dual union all 4 select '10258928' a, '2' b, '0' c, '15,19' d, 'E' e from dual union all 5 select '10258929' a, '3' b, '284,85' c, '89,52' d, 'E' e from dual union all 6 select '10258929' a, '4' b, '323,85' c, '89,52' d, 'E' e from dual union all 7 select '10258930' a, '5' b, '478,80' c, '91,53' d, 'E' e from dual union all 8 select '10258931' a, '6' b, '436,67' c, '78,09' d, 'E' e from dual union all 9 select '10258932' a, '7' b, '784,88' c, '23,19' d, 'E' e from dual union all 10 select '10258932' a, '8' b, '100,88' c, '11,11' d, 'E' e from dual union all 11 select '10258932' a, '9' b, '300,88' c, '22,22' d, 'F' e from dual union all 12 select '10258932' a, '10' b, '468,25' c, '78,33' d, 'F' e from dual) 13 select a, b, c, d, e, no_ds from 14 ( 15 select a, b, c, d, e, 16 case when c > 0 and e != 'F' 17 then 'N' 18 end no_ds 19 from my_table) 20 where no_ds = 'N' or e is null 21 order by 1 22 / A B C D E N -------- -- ------ ----- - - 10258927 1 103,35 0 10258929 3 284,85 89,52 E N 10258929 4 323,85 89,52 E N 10258930 5 478,80 91,53 E N 10258931 6 436,67 78,09 E N 10258932 7 784,88 23,19 E N 10258932 8 100,88 11,11 E N 7 Zeilen ausgewählt. SQL>
Oh, I read the title again once: 'remove double lines with different values.
If it means that he is not specifically E and F values, but only if there is more than one distinct value, then you can do the following:with my_table as ( select '10258927' a, '1' b, '103,35' c, '0' d, NULL e from dual union all select '10258928' a, '2' b, '0' c, '15,19' d, 'E' e from dual union all select '10258929' a, '3' b, '284,85' c, '89,52' d, 'E' e from dual union all select '10258929' a, '4' b, '323,85' c, '89,52' d, 'E' e from dual union all select '10258930' a, '5' b, '478,80' c, '91,53' d, 'E' e from dual union all select '10258931' a, '6' b, '436,67' c, '78,09' d, 'E' e from dual union all select '10258932' a, '7' b, '784,88' c, '23,19' d, 'E' e from dual union all select '10258932' a, '8' b, '100,88' c, '11,11' d, 'E' e from dual union all select '10258932' a, '9' b, '300,88' c, '22,22' d, 'F' e from dual union all select '10258932' a, '10' b, '468,25' c, '78,33' d, 'F' e from dual ) -- -- end-of-test-data -- select a, b, c, d, e, num_distinct_values from ( select a, b, c, d, e, count(distinct e) over (partition by a) num_distinct_values from my_table) where num_distinct_values <= 1 order by 1 /
The county notes how the distinct non-null values in column e for each one.
Where clause then selects those with count = 0 (this is where e = null) and count = 1.
If the number is greater than 1, different values exist for this id.Choose what fits your condition ;-)
-
I am trying to replace 15 PCs. They all have XP because their BONES, bought with different SPs at different times. They all have been updated to SP3... They have all MS 2003, upgaded to MS 2007. I would use a clone as image. I do not support different key codes? Although the XP are authentic, I may not all key codes. My predessor has not keep good records, and stickers on some had labels of Vista. Even if the PC was bought with XP downgrade. I need to use XP because of some other software requirements.
What is the best way to represent all the PC so that I can get back them to my users?
Hello
I suggest you to refer to this link and check if it helps:
It will be useful.
-
Throw the records with null values columns
Hi all.
Anyone know how to dispose of records containing null column values?
In the target table, I have the set Null option? with "N"... then the process sqlldr load some records. I need to load all of this without the records with null column values. by result, if the field X is null then load the file.
Kind regards.
Published by: ASzo on 05/06/2013 12:37
Published by: ASzo on 05/06/2013 12:38
Published by: ASzo on 05/06/2013 12:42load data
INFILE...
in the table...
When x! = ''
fields completed by...
(x ...) -
Return only the columns with different values.
Hi all
I am trying to solve a seemingly trivial problem but can't seem to get any clear answer anywhere in any forum. Consider a single table with 5 columns and only two lines:
Assume that there is no primary key or any other constraint. Also assume that there are only and only two lines of this table. So I need basically a query that, overall above lines, would return first name and sex, because they are only different columns in two lines, as well as their values. Even if I can get sort of column names that are different and that would be enough that I can easily access the values later. It is also important to remember that I may not know the names of the columns in the columns, so basically, somehow, I use user_tab_columns in the process.row_id first_name last_name age gender 1 John doe 27 M 1 Jane doe 27 F
Any help appreciated.
Published by: 894302 on May 1, 2013 10:35Hello
894302 wrote:
The exact release could be just a varchar variable that lists all the columns that have different values with each column name separated by commas. We'll call the query you want as a QUERY. So, if I do something likeSelect the REQUEST of double; Output should be: 'first_name, equality of the sexes. Is this possible?
In this case:
SELECT RTRIM ( DECODE (a.row_id, b.row_id, NULL, 'row_id,') || DECODE (a.first_name, b.first_name, NULL, 'first_name,') || DECODE (a.last_name, b.last_name, NULL, 'last_name,') || DECODE (a.age, b.age, NULL, 'age,') || DECODE (a.gender, b.gender, NULL, 'gender,') , ',' ) AS different_columns FROM rhit_table_x a JOIN rhit_table_x b ON a.ROWID < b.ROWID ;
Output:
DIFFERENT_COLUMNS --------------------------------------- first_name,gender
This assumes that you have really a table, then you can use ROWID to distinguish the lines, since there is no primary key.
If this isn't the case, you first assign ROW_NUMBER in a subquery. -
Two tables with different values of basic on an analysis filter
Hi guys,.
Let assume that I have an analysis with columns: group_id and sales.
On this basis I would like to create two tables: table1 where group_id = 1 and table2 where group_id = 2.
OBIEE is able to do?
Kind regards
SlaviHi Slavi,
You can do it in a single analysis, but you have to have the column with group_id twice.
Bring, group_id_1, group_id_2 (same column), sale
Now in table 1.
bring group_id_1, sales
Then in the selection steps for group_id_1-> select members-> Action choose keep only-> choose the value of the filter 1
This will filter the table 1 with group_id 1
In table2 group_id_2 porter, sales
Then do the same step for group_id_2 with the value 2.
You now have two reports with different filter in the same report.
If you want you can keep the same name column for the two columns group_id, I just kept group_id_1, group_id_2 for easy reference.
-
Several channels with different frequencies
Hello
I use card NI USB-6221.
The C API using, I need to generate 6 digital output channels, with frequencies of diffrenet and Heavy duty.
To be more precise, the 2 are totally identical, but I need them to be reversed, and the other 4 are similar to another, but should be shifted in time (I.e. There is a delay between each of the channels).
I used the 2 channels of CO that the USB-6221 takes charge for the first two signals, and it works very well (the two signals are synchronized and are reversed).
Now I need an additional 4 channels for the other vague square.
I saw an articale NOR by JohnP web site with the title:
Generate multiple channels of digital output with different frequencies and Heavy Duty
The following example shows how to create and generate a digital with the non-regeneration wave form so that you can change the frequency and the duty cycle on the fly with the M Series DAQ hardware X. The example uses output digital rather than counters to achieve this, so if you need more output than the available counters, it would be a good option (Note: on the materials of the M series an external sample clock must be provided, this may be caused by one of the counters if you want).
that seems to be exactly what I need, but the examples are for LabView which I did not.
Can someone explain how to do this with the C functions?
Best regards
Danny.
Hey Danny,
The important thing to note is that you can clock of arbitrary digital waveform (up to 1 MHz on the 6221). The real data acquisition programming is pretty easy once you have the waveform. My Example LV used LabVIEW Base generating function VIand then converted to a digital waveform to generate the signal from each channel.
The functions of LV helped tremendously with to achieve the waveforms to be updated on the fly (the basic function generator keeps track of phase for you).
If you do not need to be updated on the fly, then the construction of the waveform in C should not be too bad. For example:
P0.0 [1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0] * 1
P0.1 [0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 0 0 0 0] * 2
P0.2 [0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1] * 4
P0.3 [1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1] * 8
[9 9 9 9 9 3 3 3 3 3 6 6 6 6 6 12 12 12 12 12]
The table above U8 would give you 4 output waveform of 50% duty cycle at Fs/20, shifted 90 degrees to eachother. The lines would be p0.0 by p0.3 (the bit rate of the U8 corresponds to what line goes high).
Best regards
-
Update a field with different values of several tables
Hello
I have a table named AAA with 2 fields id and structure.
And then I have other 3 tables with 2 fields id1 and structure1 id2, table1 and table2, id3 and structure3 to table3 organized.2.
The number of AAA id is equal to the sum of the IDS of table1, table2, table3: #id = #id1 + id2 # + #id3).
I want to update the structure of AAA table with values as well as field:
where AAA.id = table1.id1-> AAA.structure = table1.structure1
where AAA.id = table2.id2-> AAA.structure = table2.structure2
where AAA.id = table3.id3-> AAA.structure = table3.structure3
Can someone help me?
I have Oracle11gR2.
Thank you in advance.Oops...
update AAA set structure = (select structure1 from table1 where aaa.id = table1.id1) where aaa.id in (select id1 from table1)
-
loop to generate variables with different values
A quiz, I have answers user saved in a table. At the end of the quiz, I need to extract individual responses to the different variables q1, q2, q3, etc.. The questionnaire can be of different questions so I need to adjust based on total questions inside. How can I use loop to create variables and values to capture?
So, I would change the following:
var q1:int = userAnswersArray [0];
var q2:int = userAnswersArray [1];
var q3:int = userAnswersArray [2];
var q4:int = userAnswersArray [3];
...
to the loop like the one below:
for (i = 0; i < totalQuestion-1; i ++)
{
This ["var var q" + i] + ": int" = "userAnswersArray []" + this [i] + "]";
}
He probably has syntax errors that it does not work.
Thanks for your help.
If evidence of userAnswersArray are always aligned with issue numbers (say, question 1 answer is saved in 0, 2 - position 1, position etc.) maybe work the following:
var urlreq:URLRequest = new URLRequest("subresultpage.asp"); urlreq.method = URLRequestMethod.POST; var urlvars:URLVariables = new URLVariables(); for(var i:int = 0; i < userAnswersArray.length; i++) { urlvars["q" + (i + 1)] = userAnswersArray[i]; }
-
Update records with different IDS
Hello
I am looking for the possibility to update some records using the new id with the column with a different id values
example of
the table contains some these documents:
and I would like to insert the same gross and net of IDS 7-16 column valuesid gross net ======================== 7 0,1 0,0507749 8 0,2 0,1015499 9 0,5 0,2538748 10 0,83 0,4214 11 0,85 0,4315873 12 1,99 1,010422 13 2,44 1,2389094 14 0 0 15 2,59 1,3150719 16 2,99 1,5181718 40 41 42 43 44 45 46 47 48 49
column with the ID of 40 to 49 in the same order.
This is why I would like to get the result that I describe below:
Thanks in advanceid gross net ======================== 7 0,1 0,0507749 8 0,2 0,1015499 9 0,5 0,2538748 10 0,83 0,4214 11 0,85 0,4315873 12 1,99 1,010422 13 2,44 1,2389094 14 0 0 15 2,59 1,3150719 16 2,99 1,5181718 40 0,1 0,0507749 41 0,2 0,1015499 42 0,5 0,2538748 43 0,83 0,4214 44 0,85 0,4315873 45 1,99 1,010422 46 2,44 1,2389094 47 0 0 48 2,59 1,3150719 49 2,99 1,5181718
update
y1 set (gross, net)=(select gross, net from y2 where y2.id=y1.id-33) where y1.id between 40 and 49; You must replace
with your real tablename.
(not tested). -
several circle (with different diameters) on graph xy
Hi, I'm looking for a solution to the problem posted above. I did searches and returns results using "Draw Circle by radius.vi" but I like it to be shown on an XY graph that has many circles with a different RADIUS (a bit like a fly).
I also found an alternative with the loop for which a "PI" multiply with the iteration of loop divided by 50 and the values are passed through Sine and cosine with it functions delivered to be broadcast on graph XY. But I have no idea how to do to control the RADIUS to make it smaller or larger.
Help please
The outputs of the sine and cosine will give you a circle of RADIUS 1. If you want a different RADIUS, then you must multiply the output of your desired RADIUS.
-
Update of digital control with different values with array function
Hello
I have attached my code base. I want to execute the code for 2 sets of digital control with a gap between the two values, then pass it. Something like that
ABC
Initialize the P1 = 10; P2 = 20; P3 = 30; P4 = 40
Run the code
delay = 10ms
Update of P1 = 150; P2 = 200; P3 = 350; P4 = 500
Run the code
jump to abc
I am stuck how can I update the values of P1, P2, P3, P4? I thought about using a function table but couldn't go further.
Thanks for the help,
Ana
Hello Ana,
One way you might achieve what you are looking for is using property nodes. These property nodes will allow you to change the values of the block diagram control. You can set up a structure of case inside your loop that will change control through nodes of property value after a certain number of iterations. Here is a community sample that shows how to use the nodes property to change the Boolean controls:
https://decibel.NI.com/content/docs/doc-22669
-Erik S
Maybe you are looking for
-
Nothing works without problem on my new Satellite C855-12J
Hello A few days ago, I bought (in-store) laptop Toshiba Satellite C855-12J.Parameters:-Win 7 64 bit,-Intel Pentium 2.2 GHz B960,-AMD Radeon 7610M 1 GB.-4 GB of RAM,-500 GB HARD drive,-internet 24Mbps (provider: NETIA).-McAfee antivirus (license 1 mo
-
Alarm calls on multiple phones and iPads. How to stop this?
Recently updated to 9.2 - ring now calls entering mine and phones my husband and iPads. How to prevent that from happening. Never done this before the update...
-
model-hp2000-450 caWindows 7 Edition home premium 64I installed the new hard drive, found most of the drivers to get my internet working. I use my laptop for photography and my card reader does not work, stopped reading. worked before the new HD.mus
-
How fast is the RAM on my Veriton VX275-UD5800W?
Need to add 2 GB of DDR3 extra RAM to my computer, but need to know what speed is for compatibility reasons. I do not have the manual for this computer. Any information would be very appreciated.
-
My Microsoft Office icons are now different
I just shut down my computer and when I turn it on again, the Microsoft file that was posted on my desk is now different and my shortcuts Skype and adobe. I don't know what happened, and I'm worried. They can still be back to normal? I hope someone c