Use of offset to pick character of string
hi all.
i wish to have 3rd and 4th character of a string and would wish to replace with other character.am i doing it correctly?
l_customer1 = l_customer+3(2).
will thisgive me new l_customer with 3rd and 4th character field,
Also suggest if i want to learn offset,replace and translate kind of stuff,how can i research.
thanks in advance.
Try something like this:
DOMParser d = new DOMParser();
String x = "<x/>";
d.parse( new StringReader(x) );
null
Similar Messages
-
Issue: Text offset by -1 character
As a long time Acrobat user I have seen many strange issues come
and go, but this one has me confused and somewhat frustrated.
I have a user who regularly downloads PDFs from vendors which contain sales information. Recently the user began complaining that most of the documents she opens are "garbled." Upon investigation I found that the document was not corrupted (copy and pasting the text into notepad shows the correct information), and opening the documents on any other computer shows correctly. I have uninstalled and reinstalled Acrobat 9, uninstalled that and installed Acrobat Reader 9, uninstalled the fonts, etc. Nothing I do seems to have an affect. The font is Arial (any variations of Arial display correctly).
The odd part is that this is not a traditional "garble" like with the corrupted font issues back in Acrobat 7, the text displayed is offset by -1 character (see below image).
On any other system the text displays normally (see below image).
I have changed display options for viewing text, utilizing local / embedded fonts, etc. Nothing has changed this. Any thoughts would be most appreciated.I would like to say that some of our users (Acrobat 9.0.0 Pro) have recently encountered this problem as well. When they send me the pdf file and I open it using Acrobat 8.2.0 the text is displayed fine. Suggesting update to Acrobat is difficult since users are in remote locations with unreliable connections.
The application generates the PDF via SQL Server Reporting Services, the PDF document properties are as follows:
PDF Producer: Microsoft Reporting Services PDF Rendering Extension 9.0
PDF Version: 1.3 (Acrobat 4.x)
Like the original poster, the font I am having the issues with is Arial. Included is what the user & I see.
Any help is appreciated -
AES256 bit encyption key from 64 character long string
Hi,
I have Oracle 10.2 on Windows 2003. I have recently started working on a project that requires encrypting information before sending it over. I have got 64 character long string to use it as a key.
I am getting ORA-06502: PL/SQL: numeric or value error: raw variable length too long
<pre>
declare
input_string VARCHAR2 (200) := 'SomeText';
output_string VARCHAR2 (200);
encrypted_raw RAW (2000); -- stores encrypted binary text
decrypted_raw RAW (2000); -- stores decrypted binary text
key_bytes_raw RAW (32); -- stores 256-bit encryption key
encryption_type PLS_INTEGER; -- total encryption type
begin
DBMS_OUTPUT.PUT_LINE ('Original string: ' || input_string);
encryption_type := DBMS_CRYPTO.ENCRYPT_AES256 + DBMS_CRYPTO.CHAIN_CBC + DBMS_CRYPTO.PAD_PKCS5;
key_bytes_raw := UTL_I18N.STRING_TO_RAW('eiccmkjd94jfgniw03ljkdlfutcnv3209kfjd67023jlclmxzlmc9543ykflseu6', 'AL32UTF8');
encrypted_raw := DBMS_CRYPTO.ENCRYPT
src => UTL_I18N.STRING_TO_RAW (input_string, 'AL32UTF8'),
typ => encryption_type,
key => key_bytes_raw
-- The encrypted value in the encrypted_raw variable can be used here
decrypted_raw := DBMS_CRYPTO.DECRYPT
src => encrypted_raw,
typ => encryption_type,
key => key_bytes_raw
output_string := UTL_I18N.RAW_TO_CHAR (decrypted_raw, 'AL32UTF8');
DBMS_OUTPUT.PUT_LINE ('Decrypted string: ' || output_string);
end;
Please let me know hot to convert 64 character long string in to 256bit key.
Thanks
-Smithsmith_apex wrote:
My client is using Java and they are saying that they are using this key for their AES256 Encryption and working fine. I have asked them to provide me 32 bytes key as in Oracle 256bit is 32 character string.
Let me see what they have to say.
I was wondering why Java has 64 bytes for 256 AES encryption when Oracle need only 32 bytes for same encryption.I am not sure I completely understand how those built-in packages work but the doc example produces the raw key that is same in length (in terms of number of characters) as the one you are using.
Yet your UTL_I18N packaged function fails for your key but works for the documentation example.
Documentation example:
SQL> select * from v$version ;
BANNER
Oracle Database 10g Release 10.2.0.5.0 - Production
PL/SQL Release 10.2.0.5.0 - Production
CORE 10.2.0.5.0 Production
TNS for Linux: Version 10.2.0.5.0 - Production
NLSRTL Version 10.2.0.5.0 - Production
declare
input_string VARCHAR2 (200) := 'Secret Message';
output_string VARCHAR2 (200);
encrypted_raw RAW (2000); -- stores encrypted binary text
decrypted_raw RAW (2000); -- stores decrypted binary text
num_key_bytes NUMBER := 256/8; -- key length 256 bits (32 bytes)
key_bytes_raw RAW (32); -- stores 256-bit encryption key
encryption_type PLS_INTEGER := -- total encryption type
DBMS_CRYPTO.ENCRYPT_AES256
+ DBMS_CRYPTO.CHAIN_CBC
+ DBMS_CRYPTO.PAD_PKCS5;
begin
DBMS_OUTPUT.PUT_LINE ('Original string: ' || input_string);
DBMS_OUTPUT.PUT_LINE ('Encryption Type: ' || encryption_type);
key_bytes_raw := DBMS_CRYPTO.RANDOMBYTES (num_key_bytes);
DBMS_OUTPUT.PUT_LINE ('Key Bytes(RAW): ' || key_bytes_raw);
encrypted_raw := DBMS_CRYPTO.ENCRYPT
src => UTL_I18N.STRING_TO_RAW (input_string, 'AL32UTF8'),
typ => encryption_type,
key => key_bytes_raw
DBMS_OUTPUT.PUT_LINE ('Encrypted string: ' || encrypted_raw);
-- The encrypted value in the encrypted_raw variable can be used here
decrypted_raw := DBMS_CRYPTO.DECRYPT
src => encrypted_raw,
typ => encryption_type,
key => key_bytes_raw
output_string := UTL_I18N.RAW_TO_CHAR (decrypted_raw, 'AL32UTF8');
DBMS_OUTPUT.PUT_LINE ('Decrypted string: ' || output_string);
end;
32 33 34 /
Original string: Secret Message
Encryption Type: 4360
Key Bytes(RAW): 52EC66508FDF1E5DE5FD38EC2467FAA91009B738A2926AA870E142C080C72EBF
Encrypted string: 0BDDC2B94F7044700D85624297A39025
Decrypted string: Secret Message
PL/SQL procedure successfully completed.
SQL> select length('52EC66508FDF1E5DE5FD38EC2467FAA91009B738A2926AA870E142C080C72EBF') from dual ;
LENGTH('52EC66508FDF1E5DE5FD38EC2467FAA91009B738A2926AA870E142C080C72EBF')
64
SQL> select dump('52EC66508FDF1E5DE5FD38EC2467FAA91009B738A2926AA870E142C080C72EBF') from dual ;
DUMP('52EC66508FDF1E5DE5FD38EC2467FAA91009B738A2926AA870E142C080C72EBF')
Typ=96 Len=64: 53,50,69,67,54,54,53,48,56,70,68,70,49,69,53,68,69,53,70,68,51,56,69,67,50,52,54,55,70,65,65,57,49,48,48,57,66,55,51,56,65,50,57,50,54,65,65,56,55,48,69,49,
52,50,67,48,56,48,67,55,50,69,66,70Your example:
declare
input_string VARCHAR2 (200) := 'SomeText';
output_string VARCHAR2 (200);
encrypted_raw RAW (2000); -- stores encrypted binary text
decrypted_raw RAW (2000); -- stores decrypted binary text
key_bytes_raw RAW (32); -- stores 256-bit encryption key
encryption_type PLS_INTEGER; -- total encryption type
begin
DBMS_OUTPUT.PUT_LINE ('Original string: ' || input_string);
encryption_type := DBMS_CRYPTO.ENCRYPT_AES256 + DBMS_CRYPTO.CHAIN_CBC + DBMS_CRYPTO.PAD_PKCS5;
key_bytes_raw := UTL_I18N.STRING_TO_RAW('eiccmkjd94jfgniw03ljkdlfutcnv3209kfjd67023jlclmxzlmc9543ykflseu6', 'AL32UTF8');
DBMS_OUTPUT.PUT_LINE ('Key Bytes(RAW): ' || key_bytes_raw);
encrypted_raw := DBMS_CRYPTO.ENCRYPT
src => UTL_I18N.STRING_TO_RAW (input_string, 'AL32UTF8'),
typ => encryption_type,
key => key_bytes_raw
-- The encrypted value in the encrypted_raw variable can be used here
decrypted_raw := DBMS_CRYPTO.DECRYPT
src => encrypted_raw,
typ => encryption_type,
key => key_bytes_raw
output_string := UTL_I18N.RAW_TO_CHAR (decrypted_raw, 'AL32UTF8');
DBMS_OUTPUT.PUT_LINE ('Decrypted string: ' || output_string);
end;
27 28 29 30 /
Original string: SomeText
declare
ERROR at line 1:
ORA-06502: PL/SQL: numeric or value error: raw variable length too long
ORA-06512: at line 12
SQL> select length('eiccmkjd94jfgniw03ljkdlfutcnv3209kfjd67023jlclmxzlmc9543ykflseu6') from dual ;
LENGTH('EICCMKJD94JFGNIW03LJKDLFUTCNV3209KFJD67023JLCLMXZLMC9543YKFLSEU6')
64
SQL> select dump('eiccmkjd94jfgniw03ljkdlfutcnv3209kfjd67023jlclmxzlmc9543ykflseu6') from dual ;
DUMP('EICCMKJD94JFGNIW03LJKDLFUTCNV3209KFJD67023JLCLMXZLMC9543YKFLSEU6')
Typ=96 Len=64: 101,105,99,99,109,107,106,100,57,52,106,102,103,110,105,119,48,51,108,106,107,100,108,102,117,116,99,110,118,51,50,48,57,107,102,106,100,54,55,48,50,51,106,
108,99,108,109,120,122,108,109,99,57,53,52,51,121,107,102,108,115,101,117,54 -
Can a single quote be used at the beginning of a query string parameter
Hi all,
I am a relative newbie and have a newbie question.
Can a single quote be used at the beginning of a query string parameter passed to a jsp page? Are there any inherant problems with this? Is there a comprehensive list of characters that must be escaped in a query string parameter?
Example: http://mysite.com/myjsp.jsp?param1='nghdh
ThanksYou'll have to escape most non-letter characters before you can pass them as a URL. I don't know if it's necessary for a single quote, but better safe than sorry.
Either use java.net.URLEncoder(...) or use javax.servlet.http.HttpServletResponse.encodeURL(String). I wouldn't recommend using unescaped characters in your URLs, that might cause pretty funny behavior that's sometimes hard to trace back. Don't worry about decoding it, your JSP/Servlet container will do it when you call javax.servlet.http.HttpServletRequest.getParameter(String). -
Using Excel Active X to Find a String within a column
I am trying to use ActiveX functions to search for a string within a specific column in excel. And return the row index of that string if a match occurs. Any help on that will be appreciated. I used Read then Compare for each cell in that column, but it is too slow. Maybe a search will be faster.
Here are some Vi's that will allow you to do a "find" just like doing the edit find function in excel. There is also a vi in there to do a search and replace.
Joe.
"NOTHING IS EVER EASY"
Attachments:
replace.llb 117 KB -
Using user defined text functions to generate strings on button.
I am new to java programming and am facing a problem.. It would be great if you could help me resolving it..
The problem is:
Is it possible to use user defined functions to generate the string on a button(button name)?
If it is possible please educate me on it..
Thanks..Yes its possible. What you ask is so vague that it can be interpreted in so many ways there are plenty correct answers
public void userDefinedFunction(String aString)
yourButton.setText(aString);
} -
Hi, all
Does have some function can pick number from string.
For example: I have a string like this " **** ** 123 **** ** 45 *** ** 678 *** **", I want to extract the first number (123) from the string.
is there any functions in labview to result ?
Many thanksUse match pattern with [0-9]+ as regular expression. It is in the string palette.
[0-9]+ matches "A sequence of one or more digits". Check the online help for more details.
(see attached example (LabVIEW 7.0)).
Message Edited by altenbach on 10-12-2005 09:11 AM
LabVIEW Champion . Do more with less code and in less time .
Attachments:
MatchNumbers.vi 22 KB -
Problems in using using a calendar to pick up a date in portal form
Hello:
I met some problems in using using a calendar to pick up a date in portal form.
I created a form using "custom layout"
Using Scott/Tiger, emp table HIREDATE put the following anchor next to it in the body text field
<<img src="/images/calendar.gif" width=24 height=22 border=0>
Then, I put the source tag in the header section
<script language="JavaScript1.1" src="/images/date-picker.js"></script> in the Header Text of the Form Text part.
However, for some reasons, after I pciked the date in the calendar,the field in the form could not be updated.
Your help would be highly appreciated.
WeiI just fixed the bug. The data pickup calendar is working now.
The reason is that:
when oracle portal generates a portal form based on a table, the element in the generated form is defined by: [Form Name].[element name].[index#].
e.g.
<INPUT TYPE="BUTTON" NAME="FORM_AREA.DEFAULT.QUERY_TOP.01" VALUE="Query" onClick=" do_event(this.form,this.name,1,'ON_CLICK','');">
The "FORM_AREA.DEFAULT.QUERY_TOP.01" means: A input text box "QUERY_TOP" with index "01" in the form "FORM_AREA" which is located in the "DEFAULT" block.
The problem of my previous codes is that: Javascript could not access the elements on the parent widnow by name for those elements whose names have more than 1 "." sign e.g. "FORM_AREA.DEFAULT.QUERY_TOP.01". So, I accessed them by their locations in the DOM hierarchy. It works now.
e.g.
<a href="javascript:show_calendar('forms[0.elements[23');" onmouseover="window.status='Click to open an Wei's calendar'; return true;" onmouseout="window.status='';return true;">
<img src="/images/calendar.gif" width=24 height=22 border=0>
</a>
Wei Ye -
Adding two cells using the Offset function
Hi There, I would like to use the Offset function to add the value of the cell just to the left of the current cell to the one dirrectly above the current cell. I would also like to do this without using an absolute referance for the base cell
For example the normal SUM formula would be =SUM(A2+B1) with the base cell being B2
Hope that's clear enough, thanks in advance
AliAli,
Before answering your question, I'll comment that adding the value to the left to the value just above, with cell B2 being where the result would be displayed would normally be programmed as:
=A2 + B1
The use of the SUM function is completely unnecessary. It won't hurt, but there is no reason to use SUM.
Using OFFSET, you would write:
=OFFSET(B2, 0, -1) + OFFSET(B2, -1, 0)
In this case, B2 is a relative reference, not an absolute reference.
Jerry -
(261718088) Q: Can you use xm:multiple with Objects other than String?
Q: Can you use xm:multiple with Objects other than Strings?
<br>
A: You bet. Attached find a text file with some code from the example I showed
today, a version of the multipleSayHiTo() method that has a parameter of an Array
of Person objects rather than a parameter of an Array of Strings. The code within
the text file comes from the Greeting.jws file (the Greeting Web Service).
[multiple.txt]So you are saying that the recovery discs I made do include the copy of windows that was originally installed?
Absolutely! They will restore the hard disk to its original out-of-the-box contents. Follow the instructions in the section Restoring from recovery DVDs/media, which begins on p. 73 of the User's Guide.
Satellite A660 Series User’s Guide
maybe i can make a deal with wd to have them swap this drive out for the BEKT instead...
That would be a good idea in any case.
As I said, the 10-fc12-045d error would not be due to the drive's being AFT, but more likely the discs are not being read properly. New discs can be obtained from Toshiba. Scroll down to Get Recovery Media here
-Jerry -
Hi can anyone help me in the game sacra terra I can not use the syringe to pick up the stone eating acid despite the fact the hint shows to do it. Every time I put it to the right place it just returns to its original position. All help appriciated
You really need to take this up with Big Fish Games first (assuming I found the right "Sacra Terra" game), not the iTunes Store. It's the developer's responsibility to address use questions and fix bugs.
http://bigfishgames.custhelp.com/app/answers/detail/a_id/362
You can also ask in their own forums:
http://forums.bigfishgames.com/forums/list.page
If you can't get any help from Big Fish, you can try reporting the problem to the iTunes Store here:
http://www.apple.com/emea/support/itunes/contact.html
but all they would be able to do is provide a refund assuming you paid to unlock the full game. Whether they would do so I don't know, but you can ask. Contact the developer first, though, and then if you get no help from them you can at least tell the iTunes Store that you tried.
Regards. -
Picking character from a string
Hi guys
How to pick each character of a string containing few character without using a loop. Like "LabVIEW" will become a array of string "L","a","b" etc
Thanks in advance
NiladriWhy would you not want to use a loop?
You could use String Subset in a loop to get each byte.
You could alsoe use String to U8 array to get an array of bytes. Then convert that back to individual string characters by using the typecast function in a loop with autoindexing turned on.
Attachments:
Example_VI_BD.png 10 KB -
Printing text using jdk 1.4...only first character in string output
I have read way too many forum postings and still can't get simple ascii to come out my printer. Please don't point me to awt printing samples. I don't want the overhead/baggage of graphics contexts when they shouldn't be needed.
If I create a printer that's a file (set to generic/ascii), then after printing and giving a filename the file contents look ok. So, this seems to be a DocFlavor issue or something.
However when I try to print to a network printer (usb attached), I only get at best a single character on my page.
The following is tracing from my print method (shows text to be printed and doc flavors supported by printer):
PrinterImpl::print(text=hello world)
image/gif; class="[B"
image/gif; class="java.io.InputStream"
image/gif; class="java.net.URL"
image/jpeg; class="[B"
image/jpeg; class="java.io.InputStream"
image/jpeg; class="java.net.URL"
image/png; class="[B"
image/png; class="java.io.InputStream"
image/png; class="java.net.URL"
application/x-java-jvm-local-objectref; class="java.awt.print.Pageable"
application/x-java-jvm-local-objectref; class="java.awt.print.Printable"
application/octet-stream; class="[B"
application/octet-stream; class="java.net.URL"
application/octet-stream; class="java.io.InputStream"
It appears, that besides copious image printing support (why PNG and not TEXT?!?!?!?) I can print Printable's from the awt api, as well as byte arrays and input streams. I wish to not use the awt printing api.
I have tried all mentioned DocFlavors regarding BYTE_ARRAY.AUTOSENSE, etc. Nothing gives me more than a single character of output.
Any ideas? I'm getting a little burnt out on this problem.
Thanks.I cannot comment on the 2 examples you referenced, because I don't have a Postscript printer, but your own example does not work, at least under Win2K, neither on a USB nor an ASCII printer, here is why (aside from the fact that it contains 2 or 3 formal errors).
I am trying desparately to print a simple ASCII file on a USB printer under Win2K since weeks and found 2 problems, but no solution so far.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Java PrintServiceLookup.lookupPrintServices() returns nothing
=============================================================
I want to print a simple ASCII file on a USB printer under Win2K and found 2 problems. Here is the 1st one.
PrintServiceLookup.lookupPrintServices(<DocFlavor>, <AttributeSet>) returns nothing when I specify any AttributeSet:
PrintRequestAttributeSet aset = new HashPrintRequestAttributeSet();
I tried
aset.add(new Copies(1));
or
aset.add(MediaSizeName.ISO_A4);
I tried it with JDK 1.4.2 and with Java 6, same problem.
When I specify null for AttributeSet, I get as many services as I have printers specified in the Printers folder of the Control panel.
I have scanned quite a few contributions about this subject, and it looks like this problem has been around since years, but I haven't found a solution.
But there is a circumvention of the problem for a parallel printer (at least an HP Laserjet 4 Plus): forget lookupPrintServices, just use the default printer. It works. Here are the essential code lines to print a simple ASCII file in Win2K.
//String fileID = = args[0];
FileInputStream textStream = new FileInputStream(fileID);
PrintService defService = PrintServiceLookup.lookupDefaultPrintService();
DocFlavor myFormat = DocFlavor.INPUT_STREAM.AUTOSENSE;
PrintRequestAttributeSet aset = new HashPrintRequestAttributeSet();
aset.add(MediaSizeName.ISO_A4);
DocPrintJob job = defService.createPrintJob();
Doc myDoc = new SimpleDoc(textStream, myFormat, null);
try {
job.print(myDoc, aset);
} catch (PrintException pe) {
System.out.println(pe.toString());
++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Cannot print on a USB printer with Java PrintService
====================================================
I want to print a simple ASCII file on a USB printer under Win2K and
found 2 problems. Here is the 2nd one.
Even though
PrintServiceLookup.lookupPrintServices(<DocFlavor>, <AttributeSet>)
returns nothing when I specify any AttributeSet, I can still print on the default printer, which I get by
PrintService defServicedefService = PrintServiceLookup.lookupDefaultPrintService();
but only on a parallel printer (HP Laserjet 4 Plus), either directly attached or over the network. When I try the very same code on a locally USB-attached printer, the printer is obviously reacting, but nothing is printed.
In case of a Lexmark 730 (an ink printer), the driver even lies, it has printed 100%,
on a Samsung CLP-510 (a color laser) the ready light flashes twice, that's all.
The file to be printed has 5 lines and a "0C"X at the end in order to force a page eject at the end.
I tried it with JDK 1.4.2 and with Java 6, same problem.
I should mention that I can print that little file out of the editor Textpad without any problem.
Edited by: eSchobbert on Jan 30, 2008 7:26 AM
Sorry I forgot to mention, that this post refers to the pretty old post of MartinHilpert of May 22, 2003 2:45 AM -
Retrieve value from element using extract gives ORA-19011: Character string
hi, new to this..i'm trying to do in oracle 11.2.0.1.0, need to store all jobid in a table..
DROP TABLE sox_xmltable_mytest;
CREATE TABLE sox_xmltable_mytest as
SELECT '<?xml version="1.0"?><ROWSET>'|| extract(OBJECT_VALUE, '/ArrayOfJobClass/JobClass/Tasks/TaskClass/JobId').getClobval() ||'</ROWSET>' as JOBID FROM sox_xmltable;
drop TABLE sox_xmltable_tab;
CREATE TABLE sox_xmltable_tab (
poDoc XMLType NOT NULL
insert into sox_xmltable_tab
SELECT XMLType(JOBID)
FROM sox_xmltable_mytest;
commit;
***sample query is ok
SQL> set pages 0 long 100000000
SQL> SELECT e.poDoc.extract('/ROWSET/JobId').getClobval()
2 FROM sox_xmltable_tab e;
<JobId>3deed63a-05a9-4018-8e17-455282c6af83</JobId><JobId>534c7b37-c6d3-454c-962
4-3901887a6163</JobId><JobId>534c7b37-c6d3-454c-9624-3901887a6163</JobId><JobId>
534c7b37-c6d3-454c-9624-3901887a6163</JobId><JobId>534c7b37-c6d3-454c-9624-39018
87a6163</JobId><JobId>821c6b33-6d4a-43e0-aa24-13475da72fd6</JobId><JobId>821c6b3
3-6d4a-43e0-aa24-13475da72fd6</JobId><JobId>821c6b33-6d4a-43e0-aa24-13475da72fd6
</JobId><JobId>821c6b33-6d4a-43e0-aa24-13475da72fd6</JobId><JobId>6c33838b-2966-
4428-a4f6-422a186433f0</JobId><JobId>a70719c2-9d54-49f2-9555-1cf60404468d</JobId
<JobId>4efb985b-0a4b-456c-9b4a-fe9876073208</JobId><JobId>19beaecc-22ac-450d-bccf-2d4ff30bcc80</JobId><JobId>1c33002d-dfd0-4533-99c4-4310a887d528</JobId><JobId
1c33002d-dfd0-4533-99c4-4310a887d528</JobId><JobId>1c33002d-dfd0-4533-99c4-4310a887d528</JobId><JobId>1c33002d-dfd0-4533-99c4-4310a887d528</JobId>
***error when i tried to get jobid
SQL> SELECT e.poDoc.extract('/ROWSET/JobId/text()').getStringval() as ID
2 FROM sox_xmltable_tab e;
SELECT e.poDoc.extract('/ROWSET/JobId/text()').getStringval() as ID
ERROR at line 1:
ORA-19011: Character string buffer too small
ORA-06512: at "SYS.XMLTYPE", line 169user503699 wrote:
This should work for youProbably not.
If I'm not mistaken OP wants each JobId in a separate row.
@OP :
In XMLTable, the main XQuery expression returns a sequence of nodes that will each represent a separate relational row in the final resultset.
If you need JobId in separate rows, then you have to tell the XQuery to return a sequence of JobId.
BTW, you don't have to use multiple intermediate tables either, just query from your base table :
SELECT x.JobId
FROM sox_xmltable t
, XMLTable('/ArrayOfJobClass/JobClass/Tasks/TaskClass/JobId'
passing t.object_value
columns JobId varchar2(100) path '.'
) x
; -
Parsing error with XDP using special character & in string.
When writing an .XDP file from scratch, the following line give a parsing error at the ampersand. What command should I use to convert the ampersand to string?
The XDP line is:
<p3pName>17TH STREET BAR & GRILL</p3pName>
This is the only line that gives a problem.
ThanksThere are five characters which MUST be escaped if they appear in
regular XML text, this is a rule of XML. The characters are ampersand,
single and double quote, less than, and greater than. They can be
replaced by entities like & AMP ; (no spaces, semi-colon is part of
it). If you use an XML library it should take care of it, but home
grown XML programs and scripts should always keep this in mind.
Aandi Inston
Maybe you are looking for
-
How to reduce number of mail boxes on mac
I have 4 active email boxes and would like to reduce this to one. How do I do this please without removing them totally from the Mac?
-
Update a field multiple times, but only if the field is empty
I am having trouble updating a field in my table based upon a set of 7 different rules. I have been scratching my head at this for a few days, and am not sure what exactly is wrong, but am sure there is something small causing me problems. My current
-
I am new to the Macbook Pro OS x 10.7.3 Lion and am having some issues with cross browser becuase I believe I used a windows Vista & XP pc with my Apple ID before I got my new Mac( I just LOVE IT!) It is already too late but should I create a new app
-
I am trying to figure out why movies I purchased (not rented) are no longere in my library. There are quite a few of them missing. Any ideas on how to get them back?
-
Date range to be displayed & Displaying multiple values on the report
Hi, I have date range parameters, but I also need it to be displayed it on the report. Is there any way I can display it. E.G If a parameter is created one can drag and drop it on the report if it needs to be displayed on the report, I tried to do th