XML parsing - Thanks Andrew Clarke,info you wanted to answer

Andrew ,
First of all thanks for responding.It was indeed very helpful of you.I have put your questions here just and have answered it
" This is a tricky thing to do. Parsing and processing a document in the database is relatively straightforward. Allowing the user to make changes to it is slightly stickier.
Before we can be of any help you need to give us some more info:
Which version of the database are you using? (9i has lots more functionality)
How are you intending to display the information to the user?
Is your user going to be editing the XML tags or just the content?
Are you using XML SCHEMA or DTD?
Do you know there's an XML forum? (Check the jump to any forum drop down)
1)I am using database :- info
Connected to:
Oracle8i Enterprise Edition Release 8.1.7.0.0 - Production
With the Partitioning option
JServer Release 8.1.7.0.0 - Production
I hope this information is enough.Another thing i wanted to know is how to check for oracle jvm intallation.Because it is needed for oracle xdk installation.
2) I intend to parse the xml file stored as a blob object in the backend and display the information in the front end ( Oracle forms6i) interface.
3) The user sees only the content and can edit only the content ,issuing save command writes back this data into the xml file and saves it back to the database as the blob object.
Yes i know XML discussion forum,but please can you guide me a little in my direction ,i thought it would be more useful to write in this forum (deals with pl/sql).Atleast a lead is enough.
Can you please suggest some help for the questions that i have:-
1)I don't know whether i have oracle JVM installed.The oracle xdk kit install notes say so.So how to check it and get it.Help notes say that a xdk kit for 9i version will also work with 8i version( backward compatibility ).Can you offer some advice on this whether this is possible( The xdkload utility says so.)
2)Is it possible to,after having build a tree thro' parsing process and to go through it accessing the nodes and the values .Also is it possible to write to this tree at the particular point and have the tree saved back to xml document.This will save me a lot of job.Please feel free to help me or atleast suggest some lead points if you know if this can be done.A hyper link ,if you know,which details these steps are also enough.
Regarding the XML schema or DTD ,please give me some more time.
One last question(if i am not bugging you) when the xdkload utility loads the xdk pl/sql package with -dbver to 8i ,will it support all the command in it to be executed on the 8i backend.
(http://technet.oracle.com/support/tech/xml/xdk_plsql/ softwares section)
Andrew ,i will feel really grateful if you can help me with these issues.Anyway Thanks for taking so much efforts in giving me some tips.
Regards
gopal

I hope this information is enough.Another thing i wanted to know is how to check for oracle jvm intallation.Because it is needed for oracle xdk installation.The banner that comes up when you log on shows you that you are running:
JServer Release 8.1.7.0.0 - Production so that means Java is enabled. A good start.
Help notes say that a xdk kit for 9i version will also work with 8i version( backward compatibility ).We are running with XDK 9i in 8173 databases without any major issues. n fact I recommend it, as there are a couple of nasty bugs in the 8i XDK that render it virtually unusable. However there is a whole bunch of functionality in the 9i XDK that relies on the XML datatype that was introduced in the 9i database.
2) I intend to parse the xml file stored as a blob object in the backend and display the information in the front end ( Oracle forms6i) interface.
3) The user sees only the content and can edit only the content ,issuing save command writes back this data into the xml file and saves it back to the database as the blob object.Why not store the data in tables? It is much, much easier to build Forms applications using tables than to build them using XML documents. Disassembling XML documents into tables is relatively straightforward and so is re-constituting them if you ever need to show someone the XML. In Oracle 9i r2 this is what Oracle does by default with the XML datatype.
2)Is it possible to,after having build a tree thro' parsing process and to go through it accessing the nodes and the values .You build the tree using xmlparser.parseClob() followed by xmlparser.getDocument().
You walk the DOM using the methods in the XMLDom package to navigate to any given node. Then you use xmldom.getNodeValue(} to retrieve the data in that node. This only works for nodes of type xmldom.text_node, so you'll need to test for that. It also fails if the node has a null value. Finally bear it mind that according to DOM principles the content of a node is a child[i] of that node.
Given this fragment:
<employee>
    <empno>1234</empno>
</employee>I want to get the employee number. So:[list]
[*]I generate a list of empno nodes using node_list := xmldom.getElementsByTagName(x_doc, 'empno');[*]I navigate to the node I want using el := xmldom.item(node_list, 1)};[*]I then navigate to the text using text_node := xmldom.getFirstChild(el);[*]I navigate to the node I want using emp_no := xmldom.getNodeValue(text_node};[list]
There may be whizzier ways of doing it but this way is clear and it works.
Although the documentation that comes with the XDK isn't that bad you will find some additional info in the onlineshttp://technet.oracle.com/docs/products/oracle9i/doc_library/release2/appdev.920/a96621/adx20ppl.htm#1656. have a look at the domsample.sql script. It's actually quite helpful.
Also is it possible to write to this tree at the particular point and have the tree saved back to xml document.I haven't done this myself, but I would have thought you would write stuff using the method outlined above but using xmldom.setNodeValue. There are various WriteTo... in the xmldom package.
Now for the bad news. None of this works with BLOBs. You have to use CLOBs, VARCHAR2s or external OS files. Sorry.
Good luck, APC

Similar Messages

  • What info you want to be in the FAQ?

    Hi all,
    It's one month I have not updated the P4 Neo FAQ here :  P4 Neo Unofficial Guide
    Please suggest anything you wish to see in the FAQ.
    Thanks.

    VGA guide is out of context.   We are talking on Intel P4 board here

  • Help Menu - selecting on topic that you want an answer to

    I am trying to find the answer to a question that I have.
    I click on the help menu and get some topics related to my keyword; however, when I try to click on it to bring up the answer, nothing comes up. In other words, I was searching for the topic "screen capture" and came up with several things. I wanted to get the info on one, but when I clicked on it, the explanation did not come up.

    Hi,
    Try deleting these files.
    com.apple.help.plist
    com.apple.helpviewer.plist
    /Users/YourName/Library/Preferences. Drag those files from the Preferences folder to the Trash, empty the Trash and restart your Mac.
    Also, could you please click My Settings on the right side of this page and tell us which Mac OS X version your MacBook is running? If you aren't certain, click the Apple Menu /About This Mac. The version number will be displayed there. Thanks. We have no way of knowing if you are running Tiger or Leopard and sometimes the trouble shooting advice depends on that.
    Carolyn

  • I told my Boss "You Want What!?"

    Hi Everyone,
    My Boss came into my office today and asked me to add a
    feature to a web application I am working on. Apparently some of
    the management types that have to interact with tihs program are
    uncomfortable interacting with a website via browser.
    Apparently they are very comfortable issuing commands via
    email. So I set it up with links in the email that allowed them to
    execute boolean and multiple choice commands by supplying various
    links for them to click on in their emails. This has kept them away
    from using their browser to actually interact with the system until
    today. My boss now wants the management types to be able to enter
    free form text response to questions. my program should pick up
    their comments and store them in the database
    I have no idea where to begin.. Do I need to build some kind
    of pop3 or smtp functionality into my program? Anybody got any
    ideas?
    Thanks in advance!
    John McDonald

    johnbmcdonald wrote:
    > Hi Everyone,
    >
    > My Boss came into my office today and asked me to add a
    feature to a web
    > application I am working on. Apparently some of the
    management types that have
    > to interact with tihs program are uncomfortable
    interacting with a website via
    > browser.
    >
    > Apparently they are very comfortable issuing commands
    via email. So I set it
    > up with links in the email that allowed them to execute
    boolean and multiple
    > choice commands by supplying various links for them to
    click on in their
    > emails. This has kept them away from using their browser
    to actually interact
    > with the system until today. My boss now wants the
    management types to be able
    > to enter free form text response to questions. my
    program should pick up their
    > comments and store them in the database
    >
    > I have no idea where to begin.. Do I need to build some
    kind of pop3 or smtp
    > functionality into my program? Anybody got any ideas?
    >
    > Thanks in advance!
    > John McDonald
    >
    >
    You should be able to (relatively) easily set up a mailbox on
    a mail
    server that would receive these emails, and then you can use
    cfpop to
    download the emails from this account. Then you'd just have
    to parse the
    emails to get the info you want and stick it in a database or
    whatever
    else you need to do with it.
    Matt
    Matt Woodward
    [email protected]
    Adobe Community Expert - ColdFusion

  • How can I use a 3rd party XML parser such as xerces with OC4J ?

    Hi all tech experts,
    I am using Oracle Application Server 10g Release 2 (10.1.2) and i have
    installed Portal and Wireless and OracleAS Infrastructure on the same
    computer.
    i tried all the solutions on this thread
    Use of Xerces Parser in out application with Oracle App Server 9.0.4
    but still fighting.
    I have also posted this query on OTN on following thread
    How can I use a 3rd party XML parser such as xerces with OC4J?
    but no reply....
    Please help me on this issue.
    Since OC4J is preconfigured to use the Oracle XML parser which is xmlparserv2.jar.
    i have read the following article which states that
    OC4J is preconfigured to use the Oracle XML parser. The Oracle XML parser is fully JAXP 1.1 compatible and will serve the needs of applications which require JAXP functionality. This approach does not require the download, installation, and configuration of additional XML parsers.
    The Oracle XML parser (xmlparserv2.jar) is configured to load as a system level library of OC4J through it's inclusion as an entry in the Class-Path entry of the oc4j.jar Manifest.mf file. This results in the Oracle XML parser being used for all common deployment and packaging situations. You are not permitted to modify the Manifest.mf file of oc4j.jar.
    It must be noted that configuring OC4J to run with any additional XML parser or JDBC library is not a supported configuration. We do know customers who have managed to successfully replace the system level XML parser and the Oracle JDBC drivers that ship with the product, but we do not support this type of configuration due to the possibility of unexpected system behavior and system errors that might occur from replacing the tested and certified libraries.
    If you absolutely must use an additional XML parser such as xerces, then you have to start OC4J such that the xerces.jar file is loaded at a level above the OC4J system classpath. This can be accomplished using the -Xbootclasspath flag of the JRE.
    i have also run the following command
    java -Xbootclasspath/a:d:\xerces\xerces.jar -jar oc4j.jar
    but no success.
    How could i utilize my jar's like xerces.jar and xalan.jar for parsing instead of OC4J in-built parser ?
    All reply will be highly appreciated.
    Thnx in advance to all.
    Neeraj Sidhaye
    try_catch_finally @ Y !

    Hi Neeraj Sidhaye,
    I am trying to deploy a sample xform application to the Oracle Application Server (10.1.3). However, I encountered the class loader issue that is similar to your stuation. I tried all the three solutions but the application is still use the Oracle xml paser class. I am wondering if you have any insight about this?
    Thanks for your help.
    Xingsheng Qian
    iPass Inc.
    Here is the error message I got.
    Message:
    java.lang.ClassCastException: oracle.xml.parser.v2.XMLElement
    Stack Trace:
    org.chiba.xml.xforms.exception.XFormsException: java.lang.ClassCastException: oracle.xml.parser.v2.XMLElement
         at org.chiba.xml.xforms.Container.dispatch(Unknown Source)
         at org.chiba.xml.xforms.Container.dispatch(Unknown Source)
         at org.chiba.xml.xforms.Container.initModels(Unknown Source)
         at org.chiba.xml.xforms.Container.init(Unknown Source)
         at org.chiba.xml.xforms.ChibaBean.init(Unknown Source)
         at org.chiba.adapter.servlet.ServletAdapter.init(ServletAdapter.java:153)
         at org.chiba.adapter.servlet.ChibaServlet.doGet(ChibaServlet.java:303)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:719)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:376)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:870)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:299)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:187)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: java.lang.ClassCastException: oracle.xml.parser.v2.XMLElement
         at org.chiba.xml.xforms.Instance.iterateModelItems(Unknown Source)
         at org.chiba.xml.xforms.Bind.initializeModelItems(Unknown Source)
         at org.chiba.xml.xforms.Bind.init(Unknown Source)
         at org.chiba.xml.xforms.Initializer.initializeBindElements(Unknown Source)
         at org.chiba.xml.xforms.Model.modelConstruct(Unknown Source)
         at org.chiba.xml.xforms.Model.performDefault(Unknown Source)
         at org.chiba.xml.xforms.XFormsDocument.performDefault(Unknown Source)
         at org.chiba.xml.xforms.XFormsDocument.dispatchEvent(Unknown Source)
         at org.apache.xerces.dom.NodeImpl.dispatchEvent(Unknown Source)
         ... 18 more

  • Hi Everyone, Just wanted to seek your assistance. We're using and Adobe InDesign CS6. The XMedia UI Plugin for it, will it allow you to open .xml files in InDesign or that plugin is just used for Importing XML? Thanks in advance.

    Hi Everyone, Just wanted to seek your assistance. We're using and Adobe InDesign CS6. The XMedia UI Plugin for it, will it allow you to open .xml files in InDesign or that plugin is just used for Importing XML? Thanks in advance.

    I've moved your question to the InDesign forum.

  • HT5557 Using IBook, I can't seem to figure out how to insert a blank page inbetween pages that are already set up, like if you want to add some pictures or something.  Anyone have any tips on this?  Thanks, Mark

    Using IBook, I can't seem to figure out how to insert a blank page inbetween pages that are already set up, like if you want to add some pictures or something.  Anyone have any tips on this?  Thanks, Mark

    To enable the form to be signed in Reader you will need to open the form in Acrobat; goto Advanced>Enable Usage Rights and then save this copy of the form for sending out to the users.
    The user should then be able to edit and digitally sign the form. They can then email the signed/saved pdf as a browsed for attachment or via the email icon in the toolbar. Note - if you have created an email submit button on the form, then unless they have Acrobat they could only return an xml file.
    The other way to do this however is to create a dataset by 'distributing' the form. This time the Email Return button will send back a full version of the form. During the distribution setup you will have the option to email the form directly or to save it and send it later,so you can send to users as and when or even post it to a website or intranet.
    When you receive and open the returned form it will ask whether you want to add it to the predetermined dataset (or if you want to categorise the returns into geographical areas for example, you could create new additional datasets at this point). If the form is data heavy however, the dataset will become very large and unwieldy pretty quickly, but you can export the data from it (including signatures) in xml format and import this into an Excel spreadsheet.
    To simplify the Excel xml import process I'd recommend you carefully structure your form in the hierarchy (LiveCycle) into the order you would want the data items to appear in your spreadsheet and switch off those data items that you will not need by setting the default binding for the irrelevant fields to "None".
    Clear as mud? Hope this helps.

  • Why do you want all our info when will you put a box for what coulore pants i am wearing

    why do you want all our info when will you put a box for what coulore pants i am wearing
    The only reason I can see you want this info for each install of office 365/2013 is so you know what every person in the world is upto sort it out microsoft

    Hi,
    Thank you for your post. Please briefly explain your query so it will be easy for us to give our best.
    Whenever you encounter any issues about our products, you can post in corresponding forum. Our technical support engineers will be happy to help you.
    Also, please be assured that Microsoft is committed to protect your privacy (Office 2013 Privacy Statement).
    Regards,
    Ethan Hua CHN
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • I have created an extensive slideshow w/music on my MacBook Pro iPhoto. How do I export a slideshow so that I can burn a DVD from it? "Help" does not offer info for this request, only if you want to export to another Apple device.   Help!!!

    I have created a lengthy slideshow with music on my MacBook Pro under Iphoto.   What steps do I need to take in order to burn a DVD copy of this slideshow?     "Help" does not offer info for this transaction, only if you want to export to another Apple device and it shows that you must first export to Itunes.  Can anyone help me with information on just copying to a DVD?  I don't want to email it or show it on another Apple device.  I want to be able to burn multiple copies on DVDs as a gift......    Can it be done?   I'm not real computer savvy

    Connect the device to the computer.
    In iTunes, select the content desired to sync.
    Sync.
    This is all described in the User's Guide, reading it may be a good place to start.

  • I have a problem to open my Number Program. this message appear when i try to open"The last time you opened Numbers, it unexpectedly quit while reopening windows. Do you want to try to reopen its windows again" I would be thankful if you could help me?

    I have a problem to open my Number Program. this message appear when i try to open"The last time you opened Numbers, it unexpectedly quit while reopening windows. Do you want to try to reopen its windows again" then I tried to open it but nothing happened.... I would be thankful if you could help me..
    Process:         Numbers [1021]
    Path:            /Applications/Numbers.app/Contents/MacOS/Numbers
    Identifier:      com.apple.iWork.Numbers
    Version:         3.0 (1470)
    Date/Time:       2014-06-27 16:13:23.405 +0100
    OS Version:      Mac OS X 10.9.3 (13D65)
    Report Version:  11
    Anonymous UUID:  243D9264-54B7-E9AE-2F83-D11098965D14

    I have a problem to open my Number Program. this message appear when i try to open"The last time you opened Numbers, it unexpectedly quit while reopening windows. Do you want to try to reopen its windows again" then I tried to open it but nothing happened.... I would be thankful if you could help me..
    Process:         Numbers [1021]
    Path:            /Applications/Numbers.app/Contents/MacOS/Numbers
    Identifier:      com.apple.iWork.Numbers
    Version:         3.0 (1470)
    Date/Time:       2014-06-27 16:13:23.405 +0100
    OS Version:      Mac OS X 10.9.3 (13D65)
    Report Version:  11
    Anonymous UUID:  243D9264-54B7-E9AE-2F83-D11098965D14

  • Hi there, can anyone tell me how to make make Garageband ignore HDMI as an audio output-device on a 2013 Mac Mini? Now it keeps on prompting me: Do you want want to use the HDMI device (monitor without audio) for audio output? Thanks in advance, Grtz T.

    Hi there,
    Can anyone tell me how to make make Garageband ignore HDMI as an audio output-device on a 2013 Mac mini i7 using an Apogee jam as an input for bass and a Behringer USB DAC with RCA audio output? Now it keeps on prompting me: Do you want want to use the HDMI device (monitor without audio) for audio output? I'm also suffering massive audio lag issues with the Apogee jam after waking the mini from sleepmode, wich pretty much renders it useless.
    Thanks in advance,
    Grtz T.

    I think the easiest way to do this is to have the EyeTV app running in one user account and sent via HDMI to the TV, and use a separate user account for Screen Sharing. Both logins can be active at the same time and with Lion you can connect via screen sharing to which ever login you need.
    With regards to the Mac video resolution changing, when it is not the current input on your AV receiver. This is 'normal', if the Mac sees no signal it drops down the a lower level. What you need is to buy a HDMI Detective Plus which tricks the Mac in to always seeing a signal and hence it will not drop down the resolution. See http://www.gefen.com/kvm/dproduct.jsp?prod_id=8005
    The Mac mini does have an IR receiver. This can be used with the EyeTV app, iTunes, and similar. Yes I believe EyeTV would run for prolonged periods quite happily, it is has been around for a long time and had most of the rough edges polished off. However one issue you will have to deal with is that it does not automatically update its program guide data. For this you might have to write or modify an AppleScript. Elgato support or their user forums will be a lot of help.
    You can set EyeTV to convert recordings to an iTunes (Apple TV) compatible format and then delete them from EyeTV.
    The HDMI Detective should solve your handshaking problems.

  • In FM9, can you turn off xml parsing messages for non-structured generated files?

    Hi folks,
    In Frame9, we finally are able to gather books containing xml files and update the book's xrefs and numbering, hoorah.  This works great.
    The issue is that we have generated TOCs and Indexes that are not structured but are part of the book. We have no need to structure them, as they are used in PDFs only and are not required when we go to html.  When we update a book, we get an error logged...
    The Application configured for the XML book component is not available.
    ...for every single chapter in the book. I am assuming this is because there is no structured app that is relevant to the TOC and Index, which just appear in the structured view as "BOOK-COMPONENT".
    This error is not a show-stopper but it mucks up our processing, and we'd like to turn it off.  Does anyone know if that is possible?
    Thanks in advance for any help,
    Shelley Hoose
    Rogue Wave Software

    Hi Shelley,
    The error... "The Application configured for the XML book component is not available."
    is seen when the XML files in your books do not have an Application associated with them. You would will always see this mesaage when you update the Book if the Application is not set.
    To set Application to use for an XML file inside a book in FrameMaker9-
    Select XML File in book > Right Click-Select Properties.
    Select Application in the Use Structured Application dialog.
    Select continue to associate the XML file with an Application.
    You might find this blog post helpful if you use XML files in books- XML Authoring Projects using Hierarchical Books
    Regards,
    Nakshatra

  • Hi. i have break the screen of my iphone 4.If i want to by a regenerated iphone 4, how much it cost?thanks a lot. see you soon. Luca

    hi. i have break the screen of my iphone 4.If i want to by a regenerated iphone 4, how much it cost?thanks a lot. see you soon. Luca

    http://support.apple.com/kb/index?page=servicefaq&geo=United_States&product=ipho ne
    Click the drop down for the country and select your country.
    Select "Warranty & Service Pricing".
    Select "My iPhone is not eligible for warranty service. What are my service options?"

  • HT4859 I have back-up in I-Cloud on 2 phones that I no longer have, but when I try to delete those 2  it says do you want to delete and turn off back-up, does that mean just on that phone or my new phone also? Thanks

    I have I-Cloud back up on 2 phones that I no longer have, when I go to delete its says do you want to delete and turn off back.  Does that mean turn off back up on  the phone I use now or just that phone that I no longer use? Thanks for any advice, Buckspc

    Not a big issue : Just delete the old backups and if the backup option turns off o your current device, then just turn it on again.

  • I have Dreamweaver CS5.5 and all of a sudden I can't open it says XML parsing fatel error.  Invalid Document Structure  What do I do?  Thanks

    I have Dreamweaver CS5.5 and all of a sudden I can't open it says XML parsing fatel error.  Invalid Document Structure  What do I do?  Thanks

    You need to rename the Configuration folder to Configuration_BU.
    The folder can be found by following this http://www.dmxzone.com/go/16740/clearing-dreamweaver-s-cache/

Maybe you are looking for

  • How do I change the phone number for iMessage on my iPad with a shared iTunes account

    Any suggestions?

  • How to specify the type of table in the form parameters

    How to specify the type of table in the form parameters. for example, how to specify the type of table "vacancies". FORM getcertainday                    USING                    vacancies TYPE STANDARD TABLE                    efirstday LIKE hrp9200

  • Problem with dell s2440

    Hello, I am trying to connect my Dell s2440 to my Macbook pro (OS Lion, 2011 version). It only works at 720p and 1080i (which is very flickering). The monitor is supposed to be full 1080p but I can't seem to get that resolution working with the macbo

  • Problem: Input must be in the format _____ in SPAD

    Hello everyone .. (sorry for my english) I want to create a new page format with size in decimal, for example: width = 255.5 mm .. but i get error : Input must be in the format _____ ... I am going to TX SU01 and click in tab Defaults, i probe with a

  • Urgent help with Updating data

    I have two tables D.S of table1 is invoice date vendor 2233 11/1/2003 Microsoft 2244 11/1/2003 IBM 2255 11/1/2003 APPLE a2233 11/1/2003 PCS The primary key is the invoice and vendor. This has like 100 rows. Then the other table has id invoice referno