Accessing documents in xml db in browser using xpath not returning results

I have loaded the purchaseorder documents and schema (from Oracle Magazine article (Mar/Apr 2003) "From XML to Storage and Back" article.
I am able to access the LineItems element of the purchaseorder document using:
http://localhost:8080/oradb/SCOTT/PURCHASEORDER/ROW/PurchaseOrder[Reference="ADAMS-20011127121040988PST"]/LineItems
However, I cannot access the indivicual LineItem elements using the ItemNumber attribute:
http://localhost:8080/oradb/SCOTT/PURCHASEORDER/ROW/PurchaseOrder[Reference="ADAMS-20011127121040988PST"]/LineItems/LineItem[@ItemNumber="2"]
I get the following result:
<?xml version="1.0"?>
<ERROR>ORA-00904::invalid identifier</ERROR>
I need to be able to use this and other xpath statements to extract elements from my document. Any suggestions?

I'm including a sample purchase order:
<?xml version="1.0" ?>
- <PurchaseOrder xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://lisdev4db:8080/home/SCOTT/xsd/purchaseOrder.xsd">
<Reference>WARD-20011127121040947PST</Reference>
- <Actions>
- <Action>
<User>BLAKE</User>
</Action>
</Actions>
<Reject />
<Requestor>Stephen B. Ward</Requestor>
<User>WARD</User>
<CostCenter>S30</CostCenter>
- <ShippingInstructions>
<name>Stephen B. Ward</name>
<address>1200 East Forty Seventh Avenue New York NY 10024 USA</address>
<telephone>212 555 1212</telephone>
</ShippingInstructions>
<SpecialInstructions>Ground</SpecialInstructions>
- <LineItems>
- <LineItem ItemNumber="1">
<Description>I Know Where I'm Going</Description>
<Part Id="037429154427" UnitPrice="39.95" Quantity="2" />
</LineItem>
- <LineItem ItemNumber="2">
<Description>The Last Wave</Description>
<Part Id="037429161920" UnitPrice="29.95" Quantity="4" />
</LineItem>
- <LineItem ItemNumber="3">
<Description>The Seven Samurai</Description>
<Part Id="037429121726" UnitPrice="39.95" Quantity="2" />
</LineItem>
- <LineItem ItemNumber="4">
<Description>Unbearable Lightness Of Being</Description>
<Part Id="037429140222" UnitPrice="29.95" Quantity="4" />
</LineItem>
- <LineItem ItemNumber="5">
<Description>Summertime</Description>
<Part Id="037429130728" UnitPrice="29.95" Quantity="4" />
</LineItem>
- <LineItem ItemNumber="6">
<Description>The Naked Kiss</Description>
<Part Id="037429125823" UnitPrice="39.95" Quantity="4" />
</LineItem>
- <LineItem ItemNumber="7">
<Description>Chihuly Over Venice</Description>
<Part Id="037429141229" UnitPrice="29.95" Quantity="3" />
</LineItem>
- <LineItem ItemNumber="8">
<Description>Written on the Wind</Description>
<Part Id="715515011525" UnitPrice="29.95" Quantity="4" />
</LineItem>
- <LineItem ItemNumber="9">
<Description>High and Low</Description>
<Part Id="037429130322" UnitPrice="39.95" Quantity="2" />
</LineItem>
- <LineItem ItemNumber="10">
<Description>Brief Encounter</Description>
<Part Id="037429150726" UnitPrice="39.95" Quantity="2" />
</LineItem>
- <LineItem ItemNumber="11">
<Description>Kwaidan</Description>
<Part Id="037429152027" UnitPrice="29.95" Quantity="4" />
</LineItem>
- <LineItem ItemNumber="12">
<Description>Withnail & I</Description>
<Part Id="715515012225" UnitPrice="29.95" Quantity="1" />
</LineItem>
- <LineItem ItemNumber="13">
<Description>Branded to Kill</Description>
<Part Id="037429136225" UnitPrice="29.95" Quantity="2" />
</LineItem>
- <LineItem ItemNumber="14">
<Description>The Hidden Fortress</Description>
<Part Id="037429135129" UnitPrice="29.95" Quantity="2" />
</LineItem>
- <LineItem ItemNumber="15">
<Description>The Most Dangerous Game</Description>
<Part Id="037429137321" UnitPrice="24.95" Quantity="3" />
</LineItem>
- <LineItem ItemNumber="16">
<Description>All That Heaven Allows</Description>
<Part Id="715515011426" UnitPrice="39.95" Quantity="2" />
</LineItem>
- <LineItem ItemNumber="17">
<Description>The Third Man</Description>
<Part Id="037429141625" UnitPrice="39.95" Quantity="3" />
</LineItem>
- <LineItem ItemNumber="18">
<Description>For All Mankind</Description>
<Part Id="037429139523" UnitPrice="39.95" Quantity="3" />
</LineItem>
- <LineItem ItemNumber="19">
<Description>Charade</Description>
<Part Id="037429139424" UnitPrice="39.95" Quantity="2" />
</LineItem>
- <LineItem ItemNumber="20">
<Description>Picnic at Hanging Rock</Description>
<Part Id="037429126325" UnitPrice="29.95" Quantity="3" />
</LineItem>
- <LineItem ItemNumber="21">
<Description>Christmas Glory From Westminster: An Evening of Christmas Music, Readings and Poetry</Description>
<Part Id="037429161326" UnitPrice="19.95" Quantity="1" />
</LineItem>
- <LineItem ItemNumber="22">
<Description>Samurai Three: Duel at Ganryu Island</Description>
<Part Id="037429125625" UnitPrice="29.95" Quantity="3" />
</LineItem>
- <LineItem ItemNumber="23">
<Description>Nanook of the North</Description>
<Part Id="715515009829" UnitPrice="29.95" Quantity="3" />
</LineItem>
- <LineItem ItemNumber="24">
<Description>My Man Godfrey</Description>
<Part Id="715515011921" UnitPrice="39.95" Quantity="2" />
</LineItem>
- <LineItem ItemNumber="25">
<Description>Discreet Charm of Bourgeoisie</Description>
<Part Id="037429154625" UnitPrice="39.95" Quantity="1" />
</LineItem>
- <LineItem ItemNumber="26">
<Description>The Seventh Seal</Description>
<Part Id="037429124529" UnitPrice="39.95" Quantity="1" />
</LineItem>
- <LineItem ItemNumber="27">
<Description>The Blob</Description>
<Part Id="715515011129" UnitPrice="39.95" Quantity="3" />
</LineItem>
</LineItems>
</PurchaseOrder>

Similar Messages

  • Content scope document library does not return result for non farm administrator

    Hi
    I have a situation where I had to go with a unique permission applied subsite to store 1000 documents in the document library. This site has a set of 50 users. I was able to create content scope and library path for search. It returns results for me(creator/owner/administrator)
    however if I add other users as contributor or full permission, even after full crawling it does not return result for others.
    I saw some article that security broken site wont be indexed normal way and to include and I did that as well but no result for other users. I always get result.
    Please suggest if there are any specific security permissions that I need to include, so the document library target search will return result for others.
    Thanks
    Shri

    Hi Shri,
    For administrator search results, it looks like the documents could be crawled and searched.
    For other users you grant full control permission on subsite with unique permission where you store 1000 dcouments in document library, please make sure these 50 users have access permission(at least view permission) on documents from the
    library, then test again.
    Also test if users search on search center site without search scope, see if it's scope issue or search web part issue.
    If above doesn't work, please check ULS log for related useful information around the time when users search the documents, there should be more info to verify if issue is related to unique permision.
    Thanks,
    Daniel Yang
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Set XML attribute from SetValue using Xpath

    Is there a trick to assigning a value to an attribute of an element in an XML variable using XPATH inside a setValue activity?  When I try something like
    Location
    /process_var/xml_var/test/@ID
    Expression:
    /process_var/test_value
    it complains about the @ sign in the location assignment.  I seem to be able to retrieve attributes just fine.

    Still having this issue.
    If I have an XML process variable which currently contains
    <Document>
        <Title />
        <Author />
        <Date />
    </Document>
    Try this, it fails.
    Location: /process_data/xml/Document/@ID
    Expression: 54
    Try this, it works.
    Location: /process_data/xml/Document/ID
    Expression: 54
    Now, alter the XML by adding an ID attribute
    <Document ID="">
        <Title />
        <Author />
        <Date />
    </Document>
    Try this, it works, where it failed earlier.
    Location: /process_data/xml/Document/@ID
    Expression: 54
    It appears to me, you can ADD a new node, but you can't ADD an attribute

  • Possible bug report: "username in use" error not returned

    When I was creating this account, I got stuck at the page that creates a forum ID to be linked to my Apple ID.
    I would enter my information, check the user agreement box, then hit submit... and the page would reload, having lost data in two fields (computer and operating system).
    No error message was given.
    When I changed the username, the submission went through.
    Hypothesis: there's a missing error message that the forum software was intended to send, saying "username in use, try another."
    Thanks for listening!

    You are correct, the error messaging for that as well as when the terms of use are not agreed to are not appearing. While working on the new enhancements this got put on the back burner, thank you for reminding us about it.
    -Eric

  • How to display XML file in browser using Servlets?

    Hi My XML file is like this:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:purchase_order_MT xmlns:ns0="http://filetohttp.com">
    <ORDER_HEADER_IN>
    <purchase_date/>
    <purchase_group/>
    <purchase_org/>
    </ORDER_HEADER_IN>
    <vendor/>
    <ORDER_ITEMS_IN>
    <item>
    <storage_location/>
    <plant/>
    <quantity/>
    <material/>
    </item>
    </ORDER_ITEMS_IN>
    <ORDER_SCHEDULES_IN>
    <item>
    <delivery_date/>
    </item>
    </ORDER_SCHEDULES_IN>
    </ns0:purchase_order_MT>
    My Servlet receives this XML file and it should display the above XML as it is, How to do that?
    Please help me I have posted same question in many forums but i got no proper reply.
    Thanks a lot

    If you only need to display it, consider your HttpServletRequest just as byte stream. :) Just read from ServletInputStream and write it back into ServletOutputStream of HttpServletResponse.
    If you want to process incoming XML, please give some details first, what exactly you want to do. :)

  • Parse xml for newline chars using xpath

    Hi guys,
    need your help.
    I was curious to how can we use subString-before and subString after function to extracts records based on newline.
    Ex.
    for an strin xml field with data
    1st line
    2nd line
    and want to extract each line as separate record.
    Hope i am clear on req.
    anybody done something similar before?
    Thanks in advance.

    While SOA is based on handling XML messages, it has no relation with a presentation layer. Characters such as new-line, line-feed are processed as whitespace.
    If you want to add specific characters, you must encode this. So a new line would be &#10; This also applies for characters like quote and less-then and greater then.
    You must encode your information into UTF8 format.
    Marc
    http://orasoa.blogspot.com

  • Fetching xml node nth value using Xpath

    HI Experts ,
    with reference to below question, i have one more doubt.
    https://social.msdn.microsoft.com/Forums/en-US/f894e5e2-8926-4604-9171-616da3f00cd7/xpath-to-fetch-value-in-flatfile-schema?forum=biztalkgeneral
    I used below xpath to fetch nth value of full repeating message nodes
    indexStr = System.Convert.ToString(index);DATE=xpath(In_FF, "string(//*[local-name() = 'Details']["+indexStr+"])/*[local-name()='DATE'])");index=index + 1;
    and i got below error, can any help me in this?
    Exception thrown from: segment 2, progress 43
    Inner exception: 'string(//*[local-name() = 'Details'][1])/*[local-name()='DATE'])' has an invalid token.
    Exception type: XPathException
    Source: System.Xml
    Target Site: MS.Internal.Xml.XPath.AstNode ParseXPathExpresion(System.String)
    The following is a stack trace that identifies the location where the exception occured

    your XPATH expression is WRONG.
    it should be
    DATE=xpath(In_FF,
    "string(//*[local-name() = 'Details']["+indexStr+"]/*[local-name()='DATE'])");
    There is NO ")" after ["+indexStr+"].
    The more reliable way is to use a string variable and use the System.String.Format() call as below
    xPathExpr = System.String.Format("string(//*[local-name() = 'Details'][{0}]/*[local-name()='DATE'])", index);
    DATE=xpath(In_FF, xPathExpr);
    The "invalid token" is because of the mismatched ")" in your XPATH Expression.
    Regards.

  • Using do not back key to store the data in document directory how much space allocated, using do not back key to store the data in document directory how much space allocated

    Hi
    i need a clarificaion for the above question

    I can't even figure out what the question is asking...
    Try posting in your native language. The translation to English you posted is pretty much nonsense.

  • Sending a document by  KM "send to" command using lotus notes

    Dear Colleagues,
    We have a Lotus Notes server xyz.wdf.sap.corp and we have some inotes email addresses configured on this server which run with URL xyz.wdf.sap.corp:<Port>/webmailredirect.nsf and we want to configure KM in such a way that "send to" command sends the email notification to the users who have lotus notes email addresses on this server. I created channels etc as mentioned in help.sap.com but it still doesnt send email. I always get an error "mail cannot be sent".
    Can anyone please tell me how can one configure lotus notes email server to send emails.
    Thanks,
    Manish

    Hi Vibhu,
    How are you? Yes I tried from inotes directly it goes fine but not from "send to". I get exception as pasted below.
    If possible can you please give me a call + 49 6227 7 61011 or let me know your number I will call you.
    Thanks,
    Manish
    .5#C000AC1008570016000000160027C45E0003E4CE72250A70#1096000259557#com.sapportals.wcm.WcmException#irj#com.sapportals.wcm.WcmException.WcmException(90)#System#0#####Client_Thread_13##0#0#Error##Plain###EmailChannel: SMTP error while connecting to server for INTERNETCould not connect to SMTP host: p70448.wdf.sap.corp, port: 25;
      nested exception is:
         java.net.ConnectException: Connection timed out javax.mail.MessagingException: Could not connect to SMTP host: p70448.wdf.sap.corp, port: 25;
      nested exception is:
         java.net.ConnectException: Connection timed out
         at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:867)
         at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:156)
         at javax.mail.Service.connect(Service.java:234)
         at javax.mail.Service.connect(Service.java:135)
         at com.sapportals.wcm.util.channels.wcm.EmailChannel.sendSmtp(EmailChannel.java:240)
         at com.sapportals.wcm.util.channels.wcm.EmailChannel.sendTo(EmailChannel.java:498)
         at com.sapportals.wcm.control.collaboration.ResourceSendToControl.onSend(ResourceSendToControl.java:627)
         at java.lang.reflect.Method.invoke(Native Method)
         at com.sapportals.wdf.stack.Control.dispatchHtmlbEvent(Control.java:378)
         at com.sapportals.wdf.WdfEventDispatcher.dispatch(WdfEventDispatcher.java:175)
         at com.sapportals.wdf.BaseDynPage.onWdfEvent(BaseDynPage.java:131)
         at java.lang.reflect.Method.invoke(Native Method)
         at com.sapportals.htmlb.page.DynPage.doProcessCurrentEvent(DynPage.java:172)
         at com.sapportals.htmlb.page.PageProcessor.handleRequest(PageProcessor.java:101)
         at com.sapportals.htmlb.page.PageProcessorServlet.handleRequest(PageProcessorServlet.java:64)
         at com.sapportals.htmlb.page.PageProcessorServlet.doPost(PageProcessorServlet.java:25)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sapportals.wcm.app.servlet.WcmHtmlbBaseServlet.service(WcmHtmlbBaseServlet.java:81)

  • Get-csRgsWorkFlow command does not return result if you are using remote shell

    I am connecting to Lync server remotely using windows powshell.
    When I issue the command locally from the Lync server, I get the correct response. When I do the same command from the remote shell, I get empty response.
    Can you help me why this is happening?

    Have you checked RBAC? 
    "The Get-CsRgsWorkflow cmdlet
    provides a way for you to return information about the workflows configured for use in your organization.
    Who can run this cmdlet: By default, members of the following groups are authorized to run the Get-CsRgsWorkflow cmdlet locally: RTCUniversalServerAdmins. To return a list of all the role-based access control (RBAC) roles this cmdlet
    has been assigned to (including any custom RBAC roles you have created yourself), run the following command from the Windows PowerShell prompt:
    Get-CsAdminRole | Where-Object {$_.Cmdlets –match "Get-CsRgsWorkflow"}
    " - http://technet.microsoft.com/en-us/library/gg425766(v=ocs.14).aspx
    Please mark posts as answers/helpful if it answers your question.
    Blog
    Lync Validator - Used to assist in the validation and documentation of Lync Server 2013.

  • Versioning document in XML type coloumn

    Hi All,
    I have a specific requirement in my product.I have to version the data entered in XML type coloumn. I tried searching in google and oracle 9i doc but I got the information for versioning the document stored under a partcular directory using resource_view not for my set of requiremets.
    Here I am giving more info:
    created a table abcd(int id , xmlcol XMLType)
    and associated a schema for this coloumn.Inserted data in xml format in the coloumn. I need to create different version of this data in xml type coloumn with new id.
    If any of you worked on this / have some idea abt how to proceed will be very helpful to me...
    Thanks in advance,
    Cheers
    Somasekar.

    Hi
    I am looking for some information for versioning the XMLType Column defined in the schema. The data inserted into the XML Type column will adhere to same schema.
    Can anyone help me or point me to some information.
    Thanks

  • TX resets when trying to access documents

    My Palm TX resets whenever I try to access Documents.  I was having other problems so I returned and exchanged the Palm for a new one.
    Problem is this happens on the new one.  I removed the one document I had installed, thinking maybe I had some sort of virus/flaw in it.  Nothing changed, it still resets.
    Any ideas?  Obviously it's not a hardware problem since this one does the same thing.
    tracy 
    Post relates to: Palm TX

    Sounds like you did not precisely follow the upgrade directions that require renaming the Backup folder on your computer before installing the new Desktop/Hotsync and syncing. You will aso have to install the Documents to Go Desktop that is compatible with the version on your TX.
    Hard Reset your TX and follow these directions.
    Post relates to: Palm TX

  • Different ways to return results using a stored proc to calling application

    Hi, Can someone please suggest me different ways of returning results( set of rows and columns) from a stored procedure to calling application.
    Currently I am using sys_refcursor to return results to front end. Stored proc is executed fast, but cursor access and retrieval of results has some overhead.
    So can you suggest the ways which will be faster than this approach.
    Thanks.

    Currently the procedure executes quickly but the results from the ref cursor are returned slowly, this is because the query is slow, for whatever reason.
    Collecting in all the rows in the stored procedure first before returning them will
    a) Make the stored procedure slower taking the same amount of time to execute as current query takes to complete.
    b) Use more memory.
    c) Put more stress on the network as all rows will be transferred at once instead of using the arraysize/fetchsize to to fetch the rows in smaller packets.

  • Window pops up stating"browser error" when trying to access documents using google doc's. Holding shift key and refresh does not clear window. What's next?

    Shut down and restarted computer, "browser error" still pops up when trying to access documents using Google doc's.
    Holding shift key and clicking refresh does not clear window.
    What else can be done to clear the window and gain access to my documents?

    Hi,
    Found a note explaining the significance of these errors.
    It says:
    "NZE-28862: SSL connection failed
    Cause: This error occurred because the peer closed the connection.
    Action: Enable Oracle Net tracing on both sides and examine the trace output. Contact Oracle Customer support with the trace output."
    For further details you may refer the Note: 244527.1 - Explanation of "SSL call to NZ function nzos_Handshake failed" error codes
    Thanks & Regards,
    Sindhiya V.

  • I'm trying to read some XML data from temperature logger over my network. I'm using LabView version 2009 sp1. I'm using the URL Get Document Vi. It works fine when using Internet sites like google or foxnews etc...

    I'm trying to read some XML data from temperature logger over my network.  I'm using LabView version 2009 sp1.  I'm using the URL Get Document Vi.  It works fine when using Internet sites like google or foxnews etc...
    When I use it with my temperature logger most of the time I get an Error 66...but some times it does work and actually retrieves the document. 
    I can use the same address "http://172.22.21.68/XMLfeed.rb" (Internet Explorer or Google Chrome) in my browser and get a response every time.  When accessing from my browser the server in the temperature logger does take around 6 seconds to respond, but it does respond every time. 
    Is the URL Get Document Vi exceeding a timeout?  If so, where can I set it to wait longer?
    Attachments:
    Error 66.jpg ‏183 KB

    It looks like the TCP Buffered Read has a 2.5 sec timeout, I believe that is where I had trouble as well.  Try creating your own URL Get HTTP Doc vi in which you call URL Get Document in normal mode, with an appropriate number of characters to fetch (enough characters so that you capture all the important data in the XML file).
    Attachments:
    ex1.PNG ‏33 KB

Maybe you are looking for