SQLException while selecting only part of XML document
Hi,
I'm newbie in oracle XML DB. I'm trying to make an example application but I'm still getting an SQLException while selecting only part of my XML document. I'm using oracle 11g release 1.
I have following XML document:
<?xml version = '1.0' encoding = 'UTF-8'?>
<CATALOG>
<CD>
<TITLE>Empire Burlesque</TITLE>
<ARTIST>Bob Dylan</ARTIST>
<COUNTRY>USA</COUNTRY>
<COMPANY>Columbia</COMPANY>
<PRICE>10.90</PRICE>
<YEAR>1985</YEAR>
</CD>
<CD>
<TITLE>Hide your heart</TITLE>
<ARTIST>Bonnie Tyler</ARTIST>
<COUNTRY>UK</COUNTRY>
<COMPANY>CBS Records</COMPANY>
<PRICE>9.90</PRICE>
<YEAR>1988</YEAR>
</CD>
</CATALOG>
and following java code:
import oracle.jdbc.OraclePreparedStatement;
import oracle.jdbc.OracleResultSet;
import oracle.xdb.XMLType;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
public class Select {
private static String SQL_1 = "SELECT OBJECT_VALUE FROM CATALOG";
private static String SQL_2 = "SELECT extract(OBJECT_VALUE,'/CATALOG/CD/ARTIST') FROM CATALOG";
public static void main(String[] args) throws SQLException {
Connection conn = createConnection();
OraclePreparedStatement stmt = (OraclePreparedStatement) conn.prepareStatement(SQL_1);
OracleResultSet orset = (OracleResultSet)stmt.executeQuery();
while (orset.next()) {
// get the XMLType
XMLType poxml = XMLType.createXML(orset.getOPAQUE(1));
// get the XMLDocument as a string...
System.out.println(poxml.getStringVal());
conn.close();
private static Connection createConnection() {
try {
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
Connection conn =
DriverManager.getConnection("jdbc:oracle:thin:@hruby.marbes.cz:1521:oracle", "hruby", "password");
return conn;
} catch (SQLException e) {
e.printStackTrace();
return null;
While executing SQL_1 statement everything goes well and I get whole document.
While executing SQL_2 statement I get following exception:
Exception in thread "main" java.sql.SQLException: Only LOB or String Storage is supported in Thin XMLType
at oracle.xdb.XMLType.processThin(XMLType.java:2817)
at oracle.xdb.XMLType.<init>(XMLType.java:1238)
at oracle.xdb.XMLType.createXML(XMLType.java:698)
at oracle.xdb.XMLType.createXML(XMLType.java:676)
at Select.main(Select.java:27)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)
I expect to get such result:
<ARTIST>Bob Dylan</ARTIST>
<ARTIST>Bonnie Tyler</ARTIST>
any suggestion???
Thanks
OBJECT_VALUE in this case refers to an XMLType datatype (fragment due to the use of "extract"). Convert it on "the fly" to a CLOB using getCLOBVal(). Then pick it up in java as a LOB.
Similar Messages
-
Hello,
I currently having a series of errors (18 issues) that are occurring under the below Correlation ID ad1a22f5-1ddb-4fa5-8487-143cb6fd0f9d
I have listed (3) that are in the Web Parts category, this error/issue is causing several timed job to no longer work properly I have been trying to find the root cause for about a week now. If anyone has encountered a issue
such as this one I'm open for suggestions.
(1)
Error while executing web part: System.Xml.Xsl.XslLoadException: XSLT compile error. An error occurred at (1,475). ---> System.Net.WebException: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.
---> System.Security.Authentication.AuthenticationException: The remote certificate is invalid according to the validation procedure. at System.Net.Security.SslState.StartSendAuthResetSignal(ProtocolToken message, AsyncProtocolRequest
asyncRequest, Exception exception) at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer,
AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer,
AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer,
AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.ForceAuthentication(Boolean receiveFirst, Byte[] buffer, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.ProcessAuthentication(LazyAsyncResult
lazyResult) at System.Threading.ExecutionContext.runTryCode(Object userData) at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Net.TlsStream.ProcessAuthentication(LazyAsyncResult result) at System.Net.TlsStream.Write(Byte[]
buffer, Int32 offset, Int32 size) at System.Net.PooledStream.Write(Byte[] buffer, Int32 offset, Int32 size) at System.Net.ConnectStream.WriteHeaders(Boolean async) --- End of inner exception
stack trace --- at System.Net.HttpWebRequest.GetResponse() at System.Xml.XmlDownloadManager.GetNonFileStream(Uri uri, ICredentials credentials) at System.Xml.XmlUrlResolver.GetEntity(Uri
absoluteUri, String role, Type ofObjectToReturn) at Microsoft.SharePoint.WebPartPages.WSSXmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn) at System.Xml.Xsl.Xslt.XsltLoader.CreateReader(Uri
uri, XmlResolver xmlResolver) at System.Xml.Xsl.Xslt.XsltLoader.LoadStylesheet(Uri uri, Boolean include) at System.Xml.Xsl.Xslt.XsltLoader.LoadStylesheet(XmlReader reader, Boolean include)
--- End of inner exception stack trace --- at System.Xml.Xsl.Xslt.XsltLoader.LoadStylesheet(XmlReader reader, Boolean include) at System.Xml.Xsl.Xslt.XsltLoader.Load(Compiler compiler, Object stylesheet, XmlResolver
xmlResolver) at System.Xml.Xsl.Xslt.Compiler.Compile(Object stylesheet, XmlResolver xmlResolver, QilExpression& qil) at System.Xml.Xsl.XslCompiledTransform.CompileXsltToQil(Object stylesheet, XsltSettings
settings, XmlResolver stylesheetResolver) at System.Xml.Xsl.XslCompiledTransform.LoadInternal(Object stylesheet, XsltSettings settings, XmlResolver stylesheetResolver) at System.Xml.Xsl.XslCompiledTransform.Load(XmlReader
stylesheet, XsltSettings settings, XmlResolver stylesheetResolver) at Microsoft.SharePoint.WebPartPages.DataFormWebPart.LoadXslCompiledTransform(WSSXmlUrlResolver someXmlResolver) at Microsoft.SharePoint.WebPartPages.DataFormWebPart.GetXslCompiledTransform()
at Microsoft.SharePoint.WebPartPages.DataFormWebPart.PrepareAndPerformTransform(Boolean bDeferExecuteTransform)
(2)
InnerException 1: System.Net.WebException: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. ---> System.Security.Authentication.AuthenticationException: The remote certificate is invalid according
to the validation procedure. at System.Net.Security.SslState.StartSendAuthResetSignal(ProtocolToken message, AsyncProtocolRequest asyncRequest, Exception exception) at System.Net.Security.SslState.ProcessReceivedBlob(Byte[]
buffer, Int32 count, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.ProcessReceivedBlob(Byte[]
buffer, Int32 count, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.ProcessReceivedBlob(Byte[]
buffer, Int32 count, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.ForceAuthentication(Boolean
receiveFirst, Byte[] buffer, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.ProcessAuthentication(LazyAsyncResult lazyResult) at System.Threading.ExecutionContext.runTryCode(Object userData)
at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback,
Object state) at System.Net.TlsStream.ProcessAuthentication(LazyAsyncResult result) at System.Net.TlsStream.Write(Byte[] buffer, Int32 offset, Int32 size) at System.Net.PooledStream.Write(Byte[]
buffer, Int32 offset, Int32 size) at System.Net.ConnectStream.WriteHeaders(Boolean async) --- End of inner exception stack trace --- at System.Net.HttpWebRequest.GetResponse()
at System.Xml.XmlDownloadManager.GetNonFileStream(Uri uri, ICredentials credentials) at System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn) at Microsoft.SharePoint.WebPartPages.WSSXmlUrlResolver.GetEntity(Uri
absoluteUri, String role, Type ofObjectToReturn) at System.Xml.Xsl.Xslt.XsltLoader.CreateReader(Uri uri, XmlResolver xmlResolver) at System.Xml.Xsl.Xslt.XsltLoader.LoadStylesheet(Uri uri, Boolean include)
at System.Xml.Xsl.Xslt.XsltLoader.LoadStylesheet(XmlReader reader, Boolean include)
(3)
InnerException 2: System.Security.Authentication.AuthenticationException: The remote certificate is invalid according to the validation procedure. at System.Net.Security.SslState.StartSendAuthResetSignal(ProtocolToken message, AsyncProtocolRequest
asyncRequest, Exception exception) at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer,
AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer,
AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer,
AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.ForceAuthentication(Boolean receiveFirst, Byte[] buffer, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.ProcessAuthentication(LazyAsyncResult
lazyResult) at System.Threading.ExecutionContext.runTryCode(Object userData) at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Net.TlsStream.ProcessAuthentication(LazyAsyncResult result) at System.Net.TlsStream.Write(Byte[]
buffer, Int32 offset, Int32 size) at System.Net.PooledStream.Write(Byte[] buffer, Int32 offset, Int32 size) at System.Net.ConnectStream.WriteHeaders(Boolean async)Hello,
It seems that issue is related to certificate. Could you please upload certificate to central admin and make it trust.
Just try this and see the result:
http://social.technet.microsoft.com/Forums/en-US/cbc58585-1673-4c91-b8c1-1b95c339bbb7/could-not-establish-trust-relationship-for-the-ssltls-secure-channel?forum=fastsharepoint
http://social.msdn.microsoft.com/Forums/en-US/7a7e56ba-6e95-4a84-9384-791818cce89d/the-underlying-connection-was-closed-could-not-establish-trust-relationship-for-the-ssltls-secure?forum=sharepointdevelopmentprevious
http://www.infotext.com/help/sharepoint-could-not-estabilish-trust-relationship-for-the-ssltls-secure-channel-when-crawling-ssl-enabled-websites/
If still face the issue then tell us more about your webparts and also confirm if you are facing same problem to other page and site.
Hemendra:Yesterday is just a memory,Tomorrow we may never see
Please remember to mark the replies as answers if they help and unmark them if they provide no help -
How to retrieve a part of XML document
Dear Everyone
I am using
Oracle: Berkeley DB XML 2.4.16: (October 21, 2008)
Berkeley DB 4.6.21: (September 27, 2007)
with python api on mac OSX.
I want to copy a part of XML document within the document.
For example, assume that we have the following XML in dbxml.
<A>
<B id="1">
<C>hello</C>
<D>hi</D>
</B>
</A>
I want to copy <B> with different "id" like,
<A>
<B id="1">
<C>hello</C>
<D>hi</D>
</B>
<B id="2">
<C>hello</C>
<D>hi</D>
</B>
</A>
How can I do this?
One more question. I want to retrieve a part of XML as string.
For example,
I want to have a string ' <B id="1"><C>hello</C><D>hi</D></B>'
How can I do this?
Thank you very much for your kind help in advance.
Best regards,
-YoshiHi,
I couldn't add a document like you described:
dbxml
dbxml> createC test.dbxml
dbxml> putD "mydoc" "<C>hello</C><D>hi</D>" "s"
stdin:5: putDocument failed, Error: Error: XML Indexer: Fatal Parse error in document at line 1, char 13. Parser message: Expected comment or processing instruction (Document: mydoc)
but, if I fix it and make it well formed it worked, so for
the experiment I did that:
dbxml> putD "mydoc" "<mydoc><C>hello</C><D>hi</D></mydoc>" "s"
Document added, name = mydoc
I could have added as two separate documents, document 1: <C>hello</C>,
document 2: <D>hi</D>, but, I don't know what you are trying to do, so
I'll stick with this example to the first.
Then I ran a query to show what you did:
dbxml> query 'collection("test.dbxml")/mydoc/*'
2 objects returned for eager expression 'collection("test.dbxml")/mydoc/*'
dbxml> print
<C>hello</C>
<D>hi</D>
I can do the same thing using a query that returns something:
dbxml> query 'for $i in collection("test.dbxml")/mydoc/* return $i'
2 objects returned for eager expression 'for $i in collection("test.dbxml")/mydoc/* return $i'
dbxml> print
<C>hello</C>
<D>hi</D>
This duplicates, but the wrong way:
dbxml> query 'for $i in collection("test.dbxml")/mydoc/* return ($i,$i)'
4 objects returned for eager expression 'for $i in collection("test.dbxml")/mydoc/* return ($i,$i)'
dbxml> print
<C>hello</C>
<C>hello</C>
<D>hi</D>
<D>hi</D>
dbxml> query 'for $j in (1,2) for $i in collection("test.dbxml")/mydoc/* return $i'
4 objects returned for eager expression 'for $j in (1,2) for $i in collection("test.dbxml")/mydoc/* return $i'
dbxml> print
<C>hello</C>
<D>hi</D>
<C>hello</C>
<D>hi</D>
And, finally, for your last string example:
dbxml> query 'for $i in collection("test.dbxml")/mydoc/C for $j in collection("test.dbxml")/mydoc/D return concat("<C>",$i,"</C>", "<D>", $j, "</D>")'
1 objects returned for eager expression 'for $i in collection("test.dbxml")/mydoc/C for $j in collection("test.dbxml")/mydoc/D return concat("<C>",$i,"</C>", "<D>", $j, "</D>")'
dbxml> print
<C>hello</C><D>hi</D>
I don't get the 'id' change though.
I hope this helps.
-g -
Read only part of a document with Stax
Hi,
I have some huge documents (~5GB) and I use Stax to read them.
My problem: I want to load only a part of the document.
I know the location that I should put the inputStream, so I skip half of the file.
Then I push data using xmlReader.hasNext(). After the first iteration though, I get the exception ->
javax.xml.stream.XMLStreamException: ParseError at [row,col]:[34,4]
Message: The markup in the document following the root element must be well-formed.
The original xml is like that:
<root>
<element id=1>
</element>
<element id=2>
</element>
<element id=3>
</element>
</root>And I pass to the xmlStreamReader
<element id=2>
</element>
<element id=3>
</element>So, I know why I get it. Because I include in the input stream only a part.
When it tries to read the element with id=3 , it says not well formed document.
which on one hand is correct, but on the other hand not important for me.
any possible solutions? How to disable the check of xmlstream reader or I don't what.
no, I cannot wrap a part of a 5Gb file to something else...That's not the point. It will be to slow...
That why I want to skip so much data in first place, to make it quick.
The problem is so annoying and a little bit stupid.
A solution would be to write my own parser, instead of using the XMLStreamReader, but then again, this is stupid, dirty, and duplicate of efforts...
-------part of the code--------
FileInputStream inputStream = new FileInputStream(filename);
inputStream.skip(skipBytes);
xmlReader = xmlif.createXMLStreamReader(filename, inputStream);
while (xmlReader.hasNext() && parsingComplete == false) {
xmlReader.next();
if (xmlReader.isStartElement()) {
parseStartElement(xmlReader);
continue;
}Thanks for the help and any opinions.
AndreasFollowing the tip about creating a new input stream, I've create a class that extends the FileInputStream, and now it works.
Extending just the InputStream was really slow. (remember the documents are huge "string" files)
The code:
XMLInputFactory xmlif = XMLInputFactory.newInstance();
xmlif.setProperty(XMLInputFactory.IS_COALESCING, Boolean.TRUE);
RootElementAppenderFileInputStream skippedInputStream = new RootElementAppenderFileInputStream(file, skipBytes);
xmlReader = xmlif.createXMLStreamReader(file.getAbsolutePath(), skippedInputStream);
while (xmlReader.hasNext() && parsingComplete == false) {
xmlReader.next();
if (xmlReader.isStartElement()) {
parseStartElement(xmlReader);
public class RootElementAppenderFileInputStream extends FileInputStream {
private ByteArrayInputStream rootElemStreamStart;
private boolean readingRoot = true;
public RootElementAppenderFileInputStream(File file, long skipBytes) throws FileNotFoundException, IOException {
super(file);
this.rootElemStreamStart = new ByteArrayInputStream("<O>".getBytes());
this.skip(skipBytes);
public int read() throws IOException {
if (readingRoot) {
int result = rootElemStreamStart.read();
if (result == -1) {
readingRoot = false;
} else {
return result;
return super.read();
} -
How to set only part of the document as "read-only"?
Hi,
I am using SharePoint 2010. I would like to set some of the columns as "read-only" while some of them are still editable. If I use Advanced Settigns>Item-Level Permissions, I can only set the whole document as "read-only".
Is there a way I can do what I wannt?
Thanks a lot!Hi,
There is no OOTB way to set a column as read-only. I think you want to make some of the fields as Read-Only in the EditForm.aspx. If so, then you can use the Javascript to do.
Add a Content editor webpart to the Editform.aspx page and place the javascript method to make a field read-only.
You can use the _spBodyOnLoadFunctionNames.push("MakeReadOnly()") method to assocaite your method to the EditForm.
Here are the links which will help you.
http://dishasharepointworld.blogspot.in/2011/08/read-only-field-in-sharepoint.html
http://nishantrana.wordpress.com/2009/01/30/read-only-field-in-sharepoint-editformaspx/
http://www.jbmurphy.com/2010/06/01/how-to-make-a-field-in-a-sharepoint-edit-form-readonly/
*******Don't forgot to MARK AS ANSWER / VOTE AS HELPFUL if it really helps************
R.Mani http://rmanimaran.wordpress.com -
Group by field while selecting only highest rownum
Need code to group by F1 but grab only the rownums with the greatest value. row number is not an actual field. sample table below and required query results below.
RowNum F1 F2
1 1 1
2 1 2
3 1 3
4 1 4
5 1 5
6 1 6
7 1 7
8 2 1
9 2 2
10 2 5
11 2 4
12 2 3
Code would generate:
RowNum F1 F2
7 1 7
12 2 3
Any help would be appreciated. Thanks![url http://download.oracle.com/docs/cd/E11882_01/server.112/e17118/pseudocolumns009.htm#i1006297]ROWNUM pseudocolumn is a counter in a query result set. It is only incremented when data is returned.
This example is nonsense code and will never work:
select *
from table
where rownum in (5,12) /* this is nonsense */You say:
>
Each time an application is updated a new record is created at the bottom of the table.
>
That is also a misunderstanding. There is no such thing as "the bottom of the table." A record is inserted into a table - it can be inserted whereever there is empty room in that table.
You say:
>
I am not aware of any field in that particular table that would indicate which record was most recent.
>
If your application does not have a field (timestamp or sequence value or similar) to indicate the order of insertion, then it is impossible to get the most recent record.
You may get approximate results by doing something like this:
select
APPLICATION_NO
,NBU_ID
,PURPOSE_OF_LOAN
from (
SELECT
APPLICATION_NO
,NBU_ID
,PURPOSE_OF_LOAN
,row_number() over (partition by APPLICATION_NO order by ROWID DESC) rn
FROM tman_application
where rn = 1You could be lucky that your ROWID continually increases if you never delete records from this table, and you never let that table get data segments in another datafile, (and a whole bunch of other assumptions.)
But BEWARE this is NOT a true solution that will give you the most recently added record for each application_no !!! This is a dangerous approximation.
To properly solve your requirement you have to add a column to the table that indicates insertion order - either a timestamp or a column populated by a sequence.
(And even with timestamps or sequences you cannot guarantee the order completely if more than one user inserts at approximately same time...) -
Spry Table - way to select only parts of the dataset to be displayed?
I have been enjoying putting together a simple spry table (DW CS3) that pulls data from an xml file. At this point when the table loads it pulls all rows from the dataset and displays them in the table. My question: is it possible to create a link or some way to pull only certain rows to be displayed. For instance if the data was about donuts and included, 4 chocolate, 6 glazed and 5 plain, is there a way to only display the 6 glazed? I have thirty rows of data and it is just a bit too much for people to be able to go through with ease and would love to have the ability to "sort" by asking for only certain types of data and then having those types displayed.
Is there a way to do this?
Thanks
TomYou can apply filters to your data set.
These samples might help you out:
Filtering with XPath
Multiple Non-Destructive Filters
Multiple Non-Destructive Filters Mode
Non-destructive Filter
XPath filtering with URL Params
URL Utils with Spry Data
Hopes this helps -
HP 576dw printer prints only part of document
A multipage document is sent to printer, Word or PDF. The printer prints only part of the document. For example, in an 80 page document being printed double sided, only 56 pages actually print.
HP print software indicates no new updates are available.Hello pchancel,
Welcome to the HP Forums.
I see that you are having some printing issues when printing documents.
So I can better assist you, please respond with which Operating System you are running:
Which Windows Operating System am I running?
Mac OS X: How Do I Find Which Mac OS X Version Is on My Computer?
Write me back when you have time and I will be happy to help.
Cheers,
Click the “Kudos Thumbs Up" at the bottom of this post to say “Thanks” for helping!
Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
W a t e r b o y 71
I work on behalf of HP -
How do i query attributes from xml documents
I want to to query only details in Issue id="705230" (id is an attribute)
I tried this, but does not help. I should be able to query the value of core_org_id attribute
select extract(CLOB_DATA, 'PcrDocument/PcrOrganization/core_org_id) CORE_ORG_ID from from pcr_files where existsNode(CLOB_DATA, 'PcrDocument/PcrOrganization/Issues/Issue[@id="705230"]')=1;
-- does not return anything....
I tried to extract value for R_DATE & R_REVIEW_DATE for issue id=705230, but iam not able to.
Data for all the issues is retured.
Here is the query used...
select extract(CLOB_DATA, 'PcrDocument/PcrOrganization/Issues/Issue') ISSUE from pcr_files where existsNode(CLOB_DATA, 'PcrDocument/PcrOrganization/Issues/Issue[@id="705230"]')=1;
Here is the part of XML document iam querying on...
- <ns1:PcrDocument id="PCR-13562" title="EU Disclosures - EC 1060/2009" version="1" pcrPublishDate="2012-01-11T12:49:02" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns1="http://integration.mysite.com/ServiceSchema/v3">
- <ns1:PcrOrganization core_org_id="345840">
<ns1:PcrLinkedTo value="ISSUE" />
- <ns1:AdditionalInfo>
<ns1:Info type="AdditionalInfo_QuartelyReport_URL"><br></br>MGH</ns1:Info>
</ns1:AdditionalInfo>
- <ns1:Issues>
- <ns1:Issue id="705230">
- <ns1:AdditionalInfo>
<ns1:Info type="R_DATE">Credit Release Date: 09-Apr-2010</ns1:Info>
<ns1:Info type="R_REVIEW_DATE">Credit Last Review Date: 12-Oct-2011</ns1:Info>
<ns1:Info type="AdditionalInfo_QuartelyReport_URL"><br></br>MGH</ns1:Info>
</ns1:AdditionalInfo>
- <ns1:IssueDetail id="114766798">
- <ns1:AdditionalInfo>
<ns1:Info type="R_DATE">Credit Release Date: 09-Apr-2010</ns1:Info>
<ns1:Info type="R_REVIEW_DATE">Credit Last Review Date: 12-Oct-2011</ns1:Info>
<ns1:Info type="AdditionalInfo_QuartelyReport_URL"><br></br>MGH</ns1:Info>
</ns1:AdditionalInfo>
</ns1:IssueDetail>
</ns1:Issue>
- <ns1:Issue id="727193">
- <ns1:AdditionalInfo>
<ns1:Info type="R_DATE">Credit Release Date: 09-Apr-2010</ns1:Info>
<ns1:Info type="R_REVIEW_DATE">Credit Last Review Date: 12-Oct-2011</ns1:Info>
<ns1:Info type="AdditionalInfo_QuartelyReport_URL"><br></br>MGH</ns1:Info>
</ns1:AdditionalInfo>
- <ns1:IssueDetail id="117994574">
- <ns1:AdditionalInfo>
<ns1:Info type="R_DATE">Credit Release Date: 09-Apr-2010</ns1:Info>
<ns1:Info type="R_REVIEW_DATE">Credit Last Review Date: 12-Oct-2011</ns1:Info>
<ns1:Info type="AdditionalInfo_QuartelyReport_URL"><br></br>MGH</ns1:Info>
</ns1:AdditionalInfo>
</ns1:IssueDetail>
</ns1:Issue>
</ns1:Issues>
</ns1:PcrOrganization>
</ns1:PcrDocument>I did not include the name space declaration for it is working fine. Really? Then I suppose you must be using a schema-based XMLType column?
Is it Object-Relational or Binary XML storage?
You mentioned it is depricated in 11.2, but iam able to run it on 11.2.Deprecated doesn't mean it ceases functioning.
Any suggestions to covert this to XMLTable/XMLQuery format please..If you read the documentation, it covers this part too ;)
Example :
create table tmp_xml of xmltype;
insert into tmp_xml values(
xmltype('<ns1:PcrDocument id="PCR-13562" title="EU Disclosures - EC 1060/2009" version="1" pcrPublishDate="2012-01-11T12:49:02" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns1="http://integration.mysite.com/ServiceSchema/v3">
<ns1:PcrRatingDetails>
<ns1:LeadAnalyst>
<ns1:FirstName>xxxxx</ns1:FirstName>
<ns1:MiddleName/>
<ns1:LastName>xxxxxx</ns1:LastName>
<ns1:Title>Director</ns1:Title>
<ns1:Label>Primary Analyst</ns1:Label>
<ns1:Telephone>xxxxxxxxxxxx</ns1:Telephone>
<ns1:Email>[email protected]</ns1:Email>
<ns1:Address>
<ns1:Line1>Main Tower</ns1:Line1>
<ns1:Line2>Neue Mainzer Strasse</ns1:Line2>
<ns1:City>FFT</ns1:City>
<ns1:State/>
<ns1:ZipCode>99999</ns1:ZipCode>
<ns1:Country>Germany</ns1:Country>
</ns1:Address>
</ns1:LeadAnalyst>
<ns1:RatingApprover>
<ns1:FirstName>Nick</ns1:FirstName>
<ns1:MiddleName/>
<ns1:LastName>Mate</ns1:LastName>
</ns1:RatingApprover>
</ns1:PcrRatingDetails>
<ns1:PcrOrganization core_org_id="345840">
<ns1:PcrLinkedTo value="ISSUE"/>
<ns1:AdditionalInfo>
<ns1:Info type="AdditionalInfo_QuartelyReport_URL">
<br/>
<A href="http://www.mysite.com/rts/articles/en/us/?articleType=HTML&assetID=1245321070686" target="_blank">MGH</A>
</ns1:Info>
</ns1:AdditionalInfo>
<ns1:Issues>
<ns1:Issue id="705230">
<ns1:AdditionalInfo>
<ns1:Info type="R_DATE">Credit Release Date: 09-Apr-2010</ns1:Info>
<ns1:Info type="R_REVIEW_DATE">Credit Last Review Date: 12-Oct-2011</ns1:Info>
<ns1:Info type="AdditionalInfo_QuartelyReport_URL">
<br/>
<A href="http://www.mysite.com/rts/articles/en/us/?articleType=HTML&assetID=1245321070686" target="_blank">MGH</A>
</ns1:Info>
</ns1:AdditionalInfo>
<ns1:IssueDetail id="114766798">
<ns1:AdditionalInfo>
<ns1:Info type="R_DATE">Credit Release Date: 09-Apr-2010</ns1:Info>
<ns1:Info type="R_REVIEW_DATE">Credit Last Review Date: 12-Oct-2011</ns1:Info>
<ns1:Info type="AdditionalInfo_QuartelyReport_URL">
<br/>
<A href="http://www.mysite.com/rts/articles/en/us/?articleType=HTML&assetID=1245321070686" target="_blank">MGH</A>
</ns1:Info>
</ns1:AdditionalInfo>
</ns1:IssueDetail>
</ns1:Issue>
<ns1:Issue id="727193">
<ns1:AdditionalInfo>
<ns1:Info type="R_DATE">Credit Release Date: 09-Apr-2010</ns1:Info>
<ns1:Info type="R_REVIEW_DATE">Credit Last Review Date: 12-Oct-2011</ns1:Info>
<ns1:Info type="AdditionalInfo_QuartelyReport_URL">
<br/>
<A href="http://www.mysite.com/rts/articles/en/us/?articleType=HTML&assetID=1245321070686" target="_blank">MGH</A>
</ns1:Info>
</ns1:AdditionalInfo>
<ns1:IssueDetail id="117994574">
<ns1:AdditionalInfo>
<ns1:Info type="R_DATE">Credit Release Date: 09-Apr-2010</ns1:Info>
<ns1:Info type="R_REVIEW_DATE">Credit Last Review Date: 12-Oct-2011</ns1:Info>
<ns1:Info type="AdditionalInfo_QuartelyReport_URL">
<br/>
<A href="http://www.mysite.com/rts/articles/en/us/?articleType=HTML&assetID=1245321070686" target="_blank">MGH</A>
</ns1:Info>
</ns1:AdditionalInfo>
</ns1:IssueDetail>
</ns1:Issue>
</ns1:Issues>
</ns1:PcrOrganization>
</ns1:PcrDocument>')
SQL> set long 10000
SQL>
SQL> select x1.analyst
2 , x1.chair
3 , x1.core_org_id
4 , x2.*
5 from tmp_xml t
6 , xmltable(
7 xmlnamespaces(default 'http://integration.mysite.com/ServiceSchema/v3')
8 , '/PcrDocument'
9 passing t.object_value
10 columns analyst xmltype path 'PcrRatingDetails/LeadAnalyst'
11 , chair xmltype path 'PcrRatingDetails/RatingApprover'
12 , core_org_id number path 'PcrOrganization/@core_org_id'
13 , issues xmltype path 'PcrOrganization/Issues/Issue'
14 ) x1
15 , xmltable(
16 xmlnamespaces(default 'http://integration.mysite.com/ServiceSchema/v3')
17 , '/Issue'
18 passing x1.issues
19 columns issue number path '@id'
20 , rating_date varchar2(40) path 'AdditionalInfo/Info[@type="R_DATE"]'
21 , rating_review_date varchar2(40) path 'AdditionalInfo/Info[@type="R_REVIEW_DATE"]'
22 , issue_detail number path 'IssueDetail/@id'
23 , id_rating_date varchar2(40) path 'IssueDetail/AdditionalInfo/Info[@type="R_DATE"]'
24 , id_rating_review_date varchar2(40) path 'IssueDetail/AdditionalInfo/Info[@type="R_REVIEW_DATE"]'
25 ) x2
26 where x2.issue = 705230
27 ;
ANALYST CHAIR CORE_ORG_ID ISSUE RATING_DATE RATING_REVIEW_DATE ISSUE_DETAIL ID_RATING_DATE ID_RATING_REVIEW_DATE
<LeadAnalyst xmlns="http://integration.mysite.com/ServiceSchema/v3"> <RatingApprover xmlns="http://integration.mysite.com/ServiceSchema/v3"> 345840 705230 Credit Release Date: 09-Apr-2010 Credit Last Review Date: 12-Oct-2011 114766798 Credit Release Date: 09-Apr-2010 Credit Last Review Date: 12-Oct-2011
<FirstName>xxxxx</FirstName> <FirstName>Nick</FirstName>
<MiddleName/> <MiddleName/>
<LastName>xxxxxx</LastName> <LastName>Mate</LastName>
<Title>Director</Title> </RatingApprover>
<Label>Primary Analyst</Label>
<Telephone>xxxxxxxxxxxx</Telephone>
<Email>[email protected]</Email>
<Address>
<Line1>Main Tower</Line1>
<Line2>Neue Mainzer Strasse</Line2>
<City>FFT</City>
<State/>
<ZipCode>99999</ZipCode>
<Country>Germany</Country>
</Address>
</LeadAnalyst> -
"Only Part I" for Goods receipt (MIGO) in excise invoice tab
Dear Gurus,
I have configured a material with all CIN configuration setting, while doing goods receipt for that material I want to capture excise invoice through excise invoice tab, for which i need to select " Only Part 1" in the invoice tab.
But in my currrent senario while posting goods recipt, In excise invoice tab, I am not detting " Only part 1" option when i select excise invoice tab.
How to configure "only part 1" option to appear in excise invoice tab.
Kindly help...
Regards,
Prashanth PaiHi,
Check in
Tax on Goods Movements - India - Business Transactions - Incoming Excise Invoices - Specify Which Movement Types Involve Excise Invoices -
ensure that RG23A & RG23 C Register is maintained against the movement types you are using.
Regards,
Vikas -
Excise Goods Receipt Without Only Part I
Hi,
We have done a goods receipt for an excisable material.
At the time of goods receipt, we could not select "Only Part I"
Now we want to post the Vendor Excise Invoice,
I just ran the T Code J1I5 with Classification ROP and I am able to update the RG Part I Register,
Now I want to post the excise value using T Code J1IH. Here I am confused which button to select . Here we get options like Additional excise, Other adjustment.
Request you to please guide.
What is the best way to handle this type of situation.
Regards,Hi PK,
The amount what u are seeing in the top is the cumulative amount for that month. What u have to do before doing the MMPV that select the value based on the account for e.g RG23BED then select the line and press the create menu button in the tool bar and then it ask in which account need to post it (i.e) at the bottom account. u have to select the top and bottom are the same one then if u save it once the system take entire amount in the top and deduct the same from the bottom account.
That means the amount in the register will get reduce. The amount what ever u did the utilisation that will go and sit in the PLA account. From the PLA account the amount will be disbursed to the excise department. If u have not done then your PLA account will be more that means u have to pay more to your excise department without set-off amount.Loss to company.
a. we are in back-log mode right now, if we don't run J2IUN, what will happen?. Is this statutory? Or will it impact our financial?
Not a problem all back -log can be utilised at one shot and if u not run the J2IUn your set-off amount cannot be get back from excise.It is statutory.Yes it will impact your financial means your paying the both input and out put tax to the excise.
b. what if I run J2IUN after we complete all the backlogs or year end?
You have to do as a monthly basis not a year basis.Last financial year back log cannot be utllised for this year.
c. What query should I put across to our client to know about their existing process?
Whether they have a set-off process (Earlier they used to call Modvet) or all input taxes are inventories. Only this transaction is right for all the set-off invoices.i am sure all the OEM will have the set-off requirement
d What query should I put across to our FI Consultant regarding this T Code.
Ask him whether he checked all the GL balance for all these registers for ex RG23ABED get Zero. whether he is checking the PLA account. The output tax and input tax is properly got off-set.All the Excise GL Need to be reconcile at the month end. This is very very important activities.
e. Is this the job of MM User or FI User (so that I can accordingly impart the KT)
Utilisation is MM activity but FI consultant need to be with u because the posting date what ever u are giving in the input selection screen for the J2iUN that he has to tell . What ever date u give them system will post the accounting doc for that period. so be carfrul.
Thanks
Ganesh -
Trying to sync part of a library on one device and all of the library on another. Not finding any options to select only parts of a library to be sync'ed. Any help appreciated.
In ipod menu in iTunes, tick the "manually manage music and videos" then select the items that you want to sync. Cheers!
-
Hello,
I try to write a portal component, that provides an XML document. The component must be reachable via a URL. It generates an XML document from portal content. The generated XML document must be available using the URL.
I tried to solve this by implementing an AbstractPortalComponent iView. Inside the doContent method I write the XML document into the IPortalComponentResponse. The problem is, that the response does not only include the XML document, but the XML data is included inside an HTML document. I already set the EPCFLevel in component-profile to 0. So there is very few JavaScript left inside the HTML document. But I don't want any HTML at all. I want only the pure XML document inside the HTTP response.
Does anybody know a way to make a plain XML document available at an URL?
Thanks, best regards, OliverTry something like this in the docontent method
HttpServletResponse resp = request.getServletResponse(true);
resp.setContentType("text/xml");
resp.getOutputStream().write(bytes); -
Multiple XML documents in one SWF
Hi, i'm trying to create a mix and match clothing application
using flash for a school project but am having trouble with xml
documents. Using an online tutorial, i found it was quite easy to
load up one xml document, example of code below.
I thought it would be as simple as copying all the code and
changing the variable names to load a second xml document but i
find when i run the code, that only the last xml document in the
code loads, could anyone give me any tips? Thanks
function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;
image = [];
description = [];
total = xmlNode.childNodes.length;
for (i=0; i<total; i++) {
image
= xmlNode.childNodes.childNodes[0].firstChild.nodeValue;
description
= xmlNode.childNodes.childNodes[1].firstChild.nodeValue;
firstImage();
} else {
content = "file not loaded!";
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("images.xml");Hi, i checked my text and description boxes in my document,
and it is in fact loading the separate xml document, the problem
seems to stem from the fact that it is not displaying the xml image
within the movie clip.
I have two separate mc's on the stage, with different
instance names, flash displays the description of each separate xml
document, however, it only shows one of the movie clips images, if
i delete one from the actionscript, it shows the other, so it must
be something to do with them overwriting each other, i used a
trace, so i know the data is in flash for the images which arent
being shown, it just isn't showing for some reason. -
Is it possible to select only what part of a document you want to print
How can I print only the areas that I need from a document or an email?Is there a way to select part of the document and print only that? Thanks.
HI , Welcome to the HP Support Forums! I see that you're wondering how to print certain parts of a document to your HP Officejet 7200 Printer. I would like to help you with this. In order form me to assist you better, I may require more information. What operating system are you using? How to Find the Windows Edition and Version on Your Computer.What operating system are you using? Mac OS X: How Do I Find Which Mac OS X Version Is on My Computer? Are you using a web based email? In the meantime, here are some helpful tips: Printing on Mac OSX from Safari, please view this post. The best you could do is: select the text, Click SAFARI (Top Left) and Services/TextEdit/New Window Containing selection. Then print what you have. Text edit should retain the formatting provided you have it set to rich text.
If you want to print a section of the screen, press CMD+SHIFT+4 and then using the cursor, click and drag a box area that you want. This will copy the screen selection to your desktop which you can then print. Printing from Mac OSX on Google Chrome or FireFox, please review this page.Printing from Windows OS on Google Chrome or FireFox, please review this page. Source If you're printing from another application and need more specific instructions, please reply to his post with more details.
Hope this answers your question. Thank you for posting!
Maybe you are looking for
-
Hi, When you run a report in Answers, you can have the "Download" link at the bottom of the Page. Which privilege grants the option, so when a user runs a report, he can "Download" it to Excel, PowerPoint etc.? Thanks, rkingmdu
-
Syn-Asyn Bridge and correlation
Regarding Sync-Asyn ,I have gone thru these blogs... Demonstrating Use of Synchronous-Asynchronous Bridge to Integrate Synchronous and Asynchronous systems using ccBPM in SAP Xi - Use of Synch - Asynch bridge in ccBPM https://www.sdn.sap.com/irj/sdn/
-
Since I installed the newest version of Firefox I am missing several options that I had before. 1) No Refresh Button (I was using it a lot) 2) Can't set the home page I want (It's always Firefox) 3) Can't do an Add-On (Action Not Responding) 4) Bookm
-
Share for Windows Media Player? (.wmv)
I've a client who wants to play my project in Windows Media Player. Any ready-made share templates in FCPX for .wmv? More importantly, any suggestions on file size? Do I output as a Master File and then throw it into Compressor? (In which case, I sho
-
I need to know how do i get a date on the printed paper it always did but then i had my pc upgraded
Please can you tell me how does one get a date printed will printing a document