XML Newbe -- Please Help
Hi,
In most of the OTN XML samples, the data was entered by SQL scripts.
In real life, is it possible to maintain enterprise information /data by only using XML/XSQL technology without using Java applets? Is it at all possible ?
As a newbe I am looking for some simple XML sample application.
If I can find on the basis of SCOTT schema
complete XML application through which I can INSERT/UPDATE/DELETE record including the error handling for primary key violation and so on ... would be great!
I think such kind of application will help many of us to understand the basics!
Thanks in advance!
Nadeem
null
My Building Oracle XML Applications book contains 800 pages of examples, covering this and many, many more subjects. It would be pretty difficult to post a complete working example here on the discussion forum.
Similar Messages
-
Hi, I want to display the number of Passed / failed tests in Testtand xml report , please help me.
My requirement is later i should be able to display these number of passed/failed test in report header too.
Solved!
Go to Solution.I have attached a sequence to give you an idea of how to get the Result count (I didn't check it's working ), I have used "SequenceFilePostResultListEntry" callback to calculate the Result Count,
and the Result Count is passed to the "ModifyReportHeader" through File Globals, where you can edit the XML file to show it in the Repot (follow the link in my previous post).
Hope this helps
AshwiN,
Attachments:
Get Result Count.seq 8 KB -
XML Files - PLEASE help!!
Hi guys!
Am desperately seeking some help on an XML issue please!!
Am just wondering if anyone knows any limitations of having large XML files within B2B applications. Everywhere I look seems to suggest that there's no limit on the size of an XML file - this is grand, but is anyone aware of a performance downgrade when dealing with large files? And if so, what is the maximum recommended file size before performance is affected. Are there any other issues upon which file size would have a negative impact? Sorry if this sounds like a bit of a silly question but am a newbie to the design implications of XML and am in bad need of assistance!
thanks a mill for all your help
cheers
bronniebeeWell no, there's no limit on the size of an XML file by the specification, but in practice you will find that you almost always have to load the XML file into memory. This means that the larger the file, (a) the longer it takes to load and (b) the more likely it is you will run out of memory. I have seen it suggested that 10 megabytes is a practical upper limit for the size of an XML file to be processed in this way, but of course that would be just a rough guideline. If you have files much larger than that, you will have to use a SAX parser (which processes the XML sequentially) if you want to be able to handle it.
But if you are talking about B2B, then most of your XML files will be transaction packets, right? Probably you wouldn't have a purchase order that large, for example. And you will be processing them asynchronously, right? (Nobody sitting at the browser waiting for a response.) That simplifies things because you don't have response time as an overriding requirement. -
For Oracle XML Team:please help
hi,
I have been trying to run my java code using XSQLRequest from inside the stored procedure for past couple of days and i have had a couple of queries which were answered successfully.Thanks for that.
But so far i have not been able to execute the code from inside the stored procedure which works fine if executed from commandline or thro a normal java application.
It is always some problem or other and since there is no one except for this forum I end up submitting my queries in here.
IS there any way i can get in touch with someone from ur side and may be figure out if i can do the way i 'm doing right now or i'm just wasting my time for nothing.I'm already done with the project schedule so i have to answer my PL.
I have loaded the oraclexsql.jar file and the corresponding parserv2.jar and oraclexmlsql.jar file in my database.
and i did load the XSQLConfig.xml file in the database file as well n which i'm using oracle:jdbc:thin:@10.0.0.70:1521:xdp as my <dburl>.
now when i try to call the stored procedure i get the following error:
Oracle XSQL Programmatic Page Processor 0.9.8.6 (Technology Preview)
XSQL-007: Cannot acquire a database connection to process page.
No suitable driver.
I did find that inorder to make the database connection from inside the stored procedure we have to use jdbc.oracle.kprb driver
and that thin and oci are not supported.
Does this mean i have to specify the same in my <dburl> for the config file.
I infact did try to use this but it wont work and i got the same error.
Can u please help me with this.
This is extremely important for me that i come to a conclusion.
Thanks a lot
Aman
(if it is possible that i can talk to someone frm ur side it 'll be reallly great.)
nullTry using Oracle XML SQL Utility from
inside the DB. XSQL is just calling that
utility. -
I keep getting this message. Can someone please help me out. I am totally clueless!!
*ERROR MESSAGE:*
_"You can't use this version of the application Mail with this version of Mac OS X.You have Mail 3.6."_It works now!
Here is what I did...
In spotlight I typed "mail", I opened up a "message", and it opened. I looked on my desktop and there was an "iMail" icon that was not there before. I was then able to access the mail normally as i would with Leopard. I deleted the old shortcut on my desktop and placed the new icon in the lower toolbar.
Worked as good as new.. -
Jsp newbie, please help about @include
I am new to JSP.
I have two jsp files, say , jsp1 and jsp2.
JSP2 is perfectly working. I want to display the result of jsp2 with the result of jsp1.
But I additionally want to supply a value from jsp1 to a variable in jsp2 before calling jsp2.
The result of jsp2 depends on the value supplied.
I couldn't figure out how to do this. A simple @include directive like
<%@ include file="jsp2.jsp" %> doesn't seem to be suitable here.
What options are available here? Please help.
Thank you.Thank you friends for the suggestion. I have yet to try your suggestions.
Before that I came across another problem. Would someone help please?
Why the jsp fails when I include the same JSP page twice in another jsp page?
Of the following two jsp files, the upper one is OK, but the lower one complains that it cannot compile (org.apache.jasper.JasperException).
test1.jsp:
<html><head><title></title></head>
<body>
<table>
<tr><td><%@ include file="single.jsp" %></td></tr>
</table>
</body>
</html>
test2.jsp:
<html><head><title></title></head>
<body>
<table>
<tr>
<td><%@ include file="single.jsp" %></td>
<td><%@ include file="single.jsp" %></td>
</tr>
</table>
</body>
</html>
I want to populate the cells of an HTML table with the results from the same jsp file, by supplying different values to a variable in the jsp file so that its results will be different for each cell. Am I being to foolish here?
Thanks. -
Database Dropdown Population - Newbie, please help
Hi,
I am having problems populating a dropdown list in a jsp page with
mulitple entries from a database. Can anyone please help me with the
code or point me in the right direction. Im am using the oreily custom
tags. The page is as follows.
<%@ page language="java" contentType="text/html" %>
<%@ page import="java.util.*" %>
<%@ page import="com.ora.jsp.util.*" %>
<%@ taglib uri="/orataglib" prefix="ora" %>
<HTML>
<BODY>
<ora:sqlQuery id="sqlAdminDropdown" dataSource="AileenDB"
scope="session">
SELECT AdminName From Aministrator
</ora:sqlQuery>
<TABLE>
<TR>
<TD>
** Need to put the dropdown populated with ALL the
AdminName here **
</TD>
</TR>
</TABLE>
</BODY>
</HTML>
I have tried things like the following but dont have a clue:
<html:select name="session">
<html:optionsCollection name="sqlAdminDropdown"
property="sqlAdminDropdown" labelProperty="AdminName"/>
</html:select>Hi,
I am having problems populating a dropdown list in a jsp page with
mulitple entries from a database. Can anyone please help me with the
code or point me in the right direction. Im am using the oreily custom
tags. The page is as follows.
<%@ page language="java" contentType="text/html" %>
<%@ page import="java.util.*" %>
<%@ page import="com.ora.jsp.util.*" %>
<%@ taglib uri="/orataglib" prefix="ora" %>
<HTML>
<BODY>
<ora:sqlQuery id="sqlAdminDropdown" dataSource="AileenDB"
scope="session">
SELECT AdminName From Aministrator
</ora:sqlQuery>
<TABLE>
<TR>
<TD>
** Need to put the dropdown populated with ALL the
AdminName here **
</TD>
</TR>
</TABLE>
</BODY>
</HTML>
I have tried things like the following but dont have a clue:
<html:select name="session">
<html:optionsCollection name="sqlAdminDropdown"
property="sqlAdminDropdown" labelProperty="AdminName"/>
</html:select> -
NEWBIE PLEASE HELP..!! Problem Opening a MIDI file
Hi all.
Does anyone have any advice on this strange problem..??? On the Logic Pro 8 Manual it says that : +"When you open a MIDI file in Logic Pro 8, software instrument tracks are automatically created for each MIDI track"+
My problem is that when I open a MIDI file, (Standard MIDI file) some tracks get assigned to external MIDI instruments, others get assigned to Software instruments. I can't figure out how this might happen.
I really want to use the software instruments for each MIDI track, not the Quicktime Synthesizer...
PLEASE HELP ME FIX THIS...!!!!
ThanksWell, the thing is that I only want Logic to automatically create the software instruments tracks (EXS, EXS24, Garageband sounds, etc) every time I open a MIDI file
As a matter of fact I have a Macbook with 10.4 OSX with Logic Pro 8 and this one DOES what it says in the manual (creating the W/W instrument tracks) I just open a MIDI file and the program does all the rest..it assigns a SW instrument for each track... However, I can't do that with my iMac....
This problem is really driving me insane ....I'm a switcher from Cakewalk SONAR and I really want to use Logic....Please Help..!! -
Is there a very simple step by step complete instructions out there
to completely update my Zenworks Imaging Lenux kernel drivers etc...
to the most currant of system configs these days. My background was
all Microsoft till now. At the moment I am forced to use ZFD4 and just
hoping I can find the instructions for the latest drivers and updated kernel to support the new Dell GX series. Not forced but would like to find the solution using only my windows XP workstation. Running Netware 6 and ZFD4 for PXE Imaging Works great with legacy systems. Please help.....s23wins wrote:
>
> Is there a very simple step by step complete instructions out there
> to completely update my Zenworks Imaging Lenux kernel drivers etc...
> to the most currant of system configs these days. My background was
> all Microsoft till now. At the moment I am forced to use ZFD4 and just
> hoping I can find the instructions for the latest drivers and updated
> kernel to support the new Dell GX series. Not forced but would like to
> find the solution using only my windows XP workstation. Running Netware
> 6 and ZFD4 for PXE Imaging Works great with legacy systems. Please
> help.....
Easiest first step is to apply the latest updates to ZFD4, see if that
helps.
then for manually updating drivers, this looks promising,
http://support.novell.com/docs/Tids/.../10070123.html
-sk -
Newbie, Please help, How do I add CDATA to exsting xml flash asset
Hi, I am a front end web designer/developer and
analyst...struggling with putting an accordian flash xml menu
together. I have it done except I need to add a simple trademark
symbol circle with r. I am struggling with how to do this since I
am not savvy in actioncript. I assume the best way is to add it is
with a CDATA child node, but do not know how or whatever is the
best way to get this done since am on a tight deadline. I need
someone to explain step by step what I have to do to get this
simple addition resolved. Attached are the links to home page and
code for the xml file. The left navigation is the asset that I need
to add the trademark symbol under about, about ADHERE. Thanks so
much in advance!!!!!!
[URL=http://www.nodcreative.com/natrecor_sliced/natrecor_index.html]index
page with flash xml menu asset[/URL]
xml code:
<?xml version="1.0" encoding="UTF-8"?>
<accodion>
<item name="HOME">
</item>
<item name="ABOUT">
<item name= "ABOUT
ADHERE<![CDATA[write]]>"></item>
<item name="Medical Information" url="
http://www.jnj.com?ref=Random">
</item>
<item name="About SCIOS" url="
http://www.jnj.com?ref=Random">
</item>
</item>
<item name="INTERACTIVE DOSING INFORMATION">
<item name="Indications and Usage" url="
http://www.jnj.com?ref=Random"></item>
<item name="Contraindications" url="
http://www.jnj.com?ref=Random"></item>
<item name="Warnings" url="
http://www.jnj.com?ref=Random"></item>
<item name="Dosage and Administration" url="
http://www.jnj.com?ref=Random"></item>
</item>
<item name="RESOURCES AND TOOLS">
<item name="NATRECOR PI" url="
http://www.jnj.com?ref=Random"></item>
<item name="About Heart Failure" url="
http://www.jnj.com?ref=Random"></item>
<item name="Stages of Heart Failure" url="
http://www.jnj.com?ref=Random"></item>
<item name="NATRECOR Dosing Information" url="
http://www.jnj.com?ref=Random"></item>
<item name="Patient Management Resources" url="
http://www.jnj.com?ref=Random"></item>
</item>
<item name="US PRESCRIBING INFORMATION">
</item>
<item name="IMPORTANT SAFETY INFORMATION
ref=http://www.jnj.com">
</item>
<item name="REGISTRATION ref=http://www.jnj.com">
</item>
</accodion>
FLASH actionscript is as follows:
// The accordion
var accordion = this
// The item list
var itemList = []
// SETTINGS
//-------------PROPERTIES----------------
// Separation between the buttons
var separation = 1.5
// Tabulation between the buttons and the margin
var tabulation = 10
// if true, it cant be more than one items opened at the same
time (only for the first buttons, POWERFUL, MENU ,ACCORDION, ets).
var autoClose = true
// if true, it cant be more than one subItems opened at the
same time.
var subItemAutoClose = true
// if true, open and close all the subItems at the same time.
var openAll = false
// The height of the button
var itemHeight = 21
// The width of the button
var itemWidth = 230
// If true, show the light over the button
var light = true
// The ease of the menu opening
var openEase = 2.5
// The ease of the menu closing
var closeEase = 2.5
// The rollOut color fade speed
var rollOutFade = 8
//-------------COLORS----------------
// The color of the button
var buttonColor = 0xa
// The roll over color
var rollOverColor = 0xCCCCCC
// The arrow color
var arrowColor = 0xCCCCCC
// The arrow color on roll over
var rollOverArrowColor = 0x000000
// The text color
var TextColor = 0xFFFFFF
// The text color on roll over
var rollOverText = 0x000000
// LOADING XML
// The xml data
var xmlSource:XML = new XML
// Loading the xml
xmlSource.onLoad = function(success:Boolean):Void {
// When the load finishs...
if (success) {
// The first node of the xml
xmlRoot = xmlSource.firstChild
// The item nodes
xmlItems = xmlRoot.childNodes
// The total of items
total = xmlItems.length
// Creating the buttons
for (i=0; i<total; i++){
// Attaching the buttons
accordion.attachMovie("item", "item" + i, i)
// The button reference
itemList
= accordion["item"+i]
// The first node of the item node
itemList.xmlRoot = xmlItems
// The separation between subitems
itemList.separation = separation
// Tabulation between the subitems and the margin
itemList
.tabulation = tabulation
// subItems auto close
itemList.subItemAutoClose = subItemAutoClose
// The subitems height
itemList
.itemHeight = itemHeight
// The subitems width
itemList.itemWidth = itemWidth
// shows/hides the subitems light
itemList
.light = light
// The subitems color
itemList.buttonColor = buttonColor
// The roll over color
itemList
.rollOverColor = rollOverColor
// The arrow color
itemList.arrowColor = arrowColor
// the arrow color on roll over
itemList
.rollOverArrowColor = rollOverArrowColor
// The text color
itemList.TextColor = TextColor
// The roll over text color
itemList
.rollOverText = rollOverText
// the opening easing
itemList.openEase = openEase
// The closing easing
itemList
.closeEase = closeEase
// The roll over fade speed
itemList.rollOutFade = rollOutFade
// open all
itemList
.openAll = openAll
// ignore white
xmlSource.ignoreWhite = true;
// Loads the .xml file
xmlSource.load("accordion.xml");
// Aligning the items each one below the other
this.onEnterFrame=function(){
// Does the align to ALL the items
for (i=1; i<total; i++){
// Aligning the items
itemList._y = itemList[i-1]._y +
itemList[i-1].mask._height + itemList[i-1].button._height +
separation
// The cursor position
cursor._x = _xmouse
cursor._y = _ymouse
// Opens the items
onMouseDown = function (){
// Does this to all the buttons
for (i=0; i<total; i++){
// If is clicked
if (itemList
.button.hitTest(cursor)){
// Shows the current item
showCurrent(itemList)
// Shows the button clicked
showCurrent=function(current){
// Does this to all the buttons
for (i=0; i<total; i++){
// Does this to all the buttons exept the clicked
if (itemList
!=current){
// Close the other items if autoclose = true
if (autoClose){
// Close the other items
itemList.openBox=false
// fades the roll over effect of the other items
itemList
.over = false
//Does this to the clcked item only
} else {
// If it has sub items
if (total>0){
//Hides them if its open
if (itemList.openBox){
itemList
.openBox=false
//Shows them if its closed
} else {
itemList.openBox=true
// If it has no subitems goes to the link
} else {
getURL(xmlRoot.attributes.url, _self)Please don't cross-post in multiple forums. I have answered
this in your other thread. -
Problem with xml table, please help
hello everyone,
can you help me please , i need to read an xml file from the sap directory into an L_XML_TABLE declared as follow :
TYPES: BEGIN OF t_xml_line,
data(256) TYPE x,
END OF t_xml_line.
TYPE-POOLS: ixml.
DATA: l_ixml TYPE REF TO if_ixml,
l_streamfactory TYPE REF TO if_ixml_stream_factory,
l_parser TYPE REF TO if_ixml_parser,
l_istream TYPE REF TO if_ixml_istream,
l_document TYPE REF TO if_ixml_document,
l_node TYPE REF TO if_ixml_node,
l_xmldata TYPE string.
DATA: l_elem TYPE REF TO if_ixml_element,
l_root_node TYPE REF TO if_ixml_node,
l_next_node TYPE REF TO if_ixml_node,
l_name TYPE string,
l_iterator TYPE REF TO if_ixml_node_iterator.
DATA: l_xml_table TYPE TABLE OF t_xml_line,
l_xml_line TYPE t_xml_line,
l_xml_table_size TYPE i.
when i try the READ DATASET of my file into the table it gives me the error message
L_XML_TABLE cannot be a table,a reference, a string or contain any of this objects.
is there a solution , it's important.
thank you very muchYou know that READ DATASET reads a line at a time, not the whole table?
What code do you have for actually reading the file? -
Writing a Procedure to return back XML. Please help.
Hello,
I am writing a procedure in Oracle 10G,that will return back an XML
to me.
I am passing 2 parameters to this procedure (a Quantity and a Price) and these parameters are element values of the XML that will be returned.
My Query is :
1) How can the arguments being passed to the procedure become element values.
2) Is my procedure to return back the XML correct.? Please can someone modify this procedure?
Please can someone help me with this procedure as this is a PROD issue.
Help really appreciated.
PROCEDURE getTradeXML(qty IN VARCHAR2,price IN VARCHAR2 xml IN OUT CLOB)
IS
xml CLOB;
BEGIN
xml = 'SELECT XMLELEMENT("Trade", XMLELEMENT("Quantity",qty),
XMLELEMENT("Price", price))
FROM DUAL'
END;PROCEDURE getTradeXML(qty IN VARCHAR2,price IN
VARCHAR2 xml IN OUT CLOB)
IS
xml CLOB;
BEGIN
xml = 'SELECT XMLELEMENT("Trade",
XMLELEMENT("Quantity",qty),
MLELEMENT("Price", price))
FROM DUAL'maybe you want
SELECT XMLELEMENT("Trade", XMLELEMENT("Quantity",qty), XMLELEMENT("Price", price)) into xml FROM DUAL;
/*not tested*/ -
Polulate Text frames with XML content - PLEASE help me.
Hi guys,
I'm trying to import some xml data to an indesign file. Here are the steps I'm doing:
1- create new document
2- create master page
3- create empty text fields in the master to be tagged
4- import tags from xml
5- import xml
then it simply don't auto populate the text fields wiith the xml content.
I've already spent about 10 hours trying to figure out what can be the problem...
My structure in indesign (BEFORE importing XML):
businesscards
Card
employeeName
employeePosition
employeeAddressln1
employeeAddressln2
employeePhone
employeeEmail
My structure in indesign (AFTER importing XML):
businesscards
Card <!-- has dropdown arrow with xml content inside -->
Card <!-- has dropdown arrow with xml content inside -->
Card <!-- has dropdown arrow with xml content inside -->
Card <!-- has dropdown arrow with xml content inside -->
employeeName
employeePosition
employeeAddressln1
employeeAddressln2
employeePhone
employeeEmail
But it doesn't populate the text frames...
I've already tried to write text in the text frames and tagged them, so I can see those colored brackets. But it doesn't work and makes a mess in the structure.
Please, can someone help me, do you know a good step by step tutorial online? What am I doing wrong?
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<businesscards>
<Card>
<!-- contents of Suzan Reed -->
<employeeName>Suzan Reed</employeeName>
<employeePosition>Director of Marketing</employeePosition>
<employeeAddressln1>506 SE 72nd Avenue</employeeAddressln1>
<employeeAddressln2>Portland, Oregon 97215</employeeAddressln2>
<employeePhone>503-481-5858 direct</employeePhone>
<employeeEmail>[email protected]</employeeEmail>
</Card>
<Card>
<!-- contents of Gabriel Powell -->
<employeeName>Gabriel Powell</employeeName>
<employeePosition>Senior Training Director</employeePosition>
<employeeAddressln1>25 NW 23rd Place, Suite 6-122</employeeAddressln1>
<employeeAddressln2>Portland, Oregon 97210</employeeAddressln2>
<employeePhone>503-515-5404 direct</employeePhone>
<employeeEmail>[email protected]</employeeEmail>
</Card>
<Card>
<!-- contents of Dale Erwing -->
<employeeName>Dale Erwing</employeeName>
<employeePosition>Trainer</employeePosition>
<employeeAddressln1>5131 Buffalo Ave. #20</employeeAddressln1>
<employeeAddressln2>Sherman Oaks, CA 91423</employeeAddressln2>
<employeePhone>310-795-8943 cell</employeePhone>
<employeeEmail>[email protected]</employeeEmail>
</Card>
<Card>
<!-- contents of Jim Conner -->
<employeeName>Jim Conner</employeeName>
<employeePosition>Trainer</employeePosition>
<employeeAddressln1>25 NW 23rd Place, Suite 6-122</employeeAddressln1>
<employeeAddressln2>Portland, Oregon 97210</employeeAddressln2>
<employeePhone>503-515-2376 cell</employeePhone>
<employeeEmail>[email protected]</employeeEmail>
</Card>
</businesscards>
Thanks in advanceIt worked! thanks ... But...
But only if I don't apply to the Master when I apply to the master all the other cards have the same content as the first of the XML. :(
Even when I try to create multiple pages (cards) with no Master page (too time consuming), I can't figure out a way of having the other cards filed with the remaining data of the XML. :(
I don't want to drag the elements one by one to every single card (they are so many...)
Is there a way of having the structure organized in a way to have indesign auto populate and auto create pages?
thanks for any kind of advice. -
Loading data from xml file - please help
Hi, I am new to attempting to get data from an xml file load
in flash. I followed a tutorial in a new fla and it seemed to work
fine, I then tried to adapt it to my own needs which worked fine.
But then when trying to implement this into my news section it
doesn't seem to work.
I am trying to make a news section, that displays the date
and news article. This is in within a movie clip, I even tried
putting it in the timeline of the scene but still nothing.
- I have 2 dynamic text boxes, date_txt and news_txt
- The xml file is named news.xml,
- both the fla and the xml are in the same folder
This is the actionscript I am using:
function loadXML(loaded) {
if (loaded) {
_root.thedate =
this.firstChild.childNodes[0].childNodes[0].firstChild.nodeValue;
_root.thenews =
this.firstChild.childNodes[0].childNodes[1].firstChild.nodeValue;
date_txt.text = _root.thedate;
news_txt.text = _root.thenews;
} else {
trace("file not loaded!");
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("news.xml");
This is what I have in the xml document:
<?xml version="1.0"?>
<news>
<article>
<date>date</date>
<news>newentry.</news>
</article>
<article>
<date>Doug Engelbart</date>
<news>Invented the mouse at the Stanford Research
Institute</news>
</article>
</news>
Does anyone perhaps have any ideas of what the problem could
be?
Help much appreciated.Hi
_root refers to the Main Timeline, if your date_txt and
news_txt are in a movieclip ie: news_mc
then your path should read _root.news_mc.date_txt.text and
_root.news_mc.news_txt.text
You will also need to embed the characters you wish to use
inside your dymanic text for it to show.
Hope it helps -
How to filter data from a source XML? Please help!
Hi Experts,
I have a source XML as shown below:
<Inventory>
<InventoryItem>
<ItemCode>InTransit</ItemCode>
<Quantity>1000</Quantity>
</InventoryItem>
<InventoryItem>
<ItemCode>Available</ItemCode>
<Quantity>1500</Quantity>
</InventoryItem>
<InventoryItem>
<ItemCode>Restricted</ItemCode>
<Quantity>2500</Quantity>
</InventoryItem>
</Inventory>
My Target XML is as below
<Inventory>
<stock>1500</stock>
</Inventory>
The stock element contains Quantity value where ItemCode is 'Available'.
But note that there are 3 InventoryItem nodes.
So how to get the desired target XML in XI mapping? Basically I have to filter data from source XML based on value of an element. What is the best approach to handle this?
Kindly help
Thanks
GopalHi venkat,
Your solution does'nt work fine. But why are you using collapsecontext and splitbyvalue before putting the value into stock element?
Kindly explain your concept.
My target message is:
<?xml version="1.0" encoding="UTF-8"?>
<Inventory>
<InventoryItem>
<ItemCode>InTransit</ItemCode>
<Quantity>1500</Quantity>
</InventoryItem>
<InventoryItem>
<ItemCode>Available</ItemCode>
<Quantity>1000</Quantity>
</InventoryItem>
<InventoryItem>
<ItemCode>UnRestricted</ItemCode>
<Quantity>2000</Quantity>
</InventoryItem>
<InventoryItem>
<ItemCode>Available</ItemCode>
<Quantity>2500</Quantity>
</InventoryItem>
</Inventory>
I am getting the output even though stock is unbounded and I have used collapsecontext and splitbyvalue as:
<InvStock>
<Stock>1000</Stock>
</InvStock>
I should get:
<InvStock>
<Stock>1000</Stock>
<Stock>2500</Stock>
</InvStock>
Thanks
Gopal
Message was edited by:
gopalkrishna baliga
Maybe you are looking for
-
Hi all, we have a xml file found in the internet delivering actual currency rates (http://www.ecb.int/stats/eurofxref/eurofxref-daily.xml). After downloading this file I tried to create a Data Server. But when testing the Data Server the following er
-
Column level filter at RPD level - OBIEE 11g
Hi all, How do i add a filter at the column level in logical layer for one of the metric , it has the following calculation case when id in (1,2,3,4,5,5) and category='AS' then case when points=10 or points=9 then 1 else 0 end end I want the metric t
-
Top node of XML message needs value assign to it - how to do it ?
Hi, I have an issue where the top node of my XML message needs to have a value assigned. i.e. <REPORT>xxxxxxxx <ID>xxxxx</ID> <CUST>xxxxx</CUST> </REPORT> Is this possible using standard graphical mapping or will I need to resort to XSLT mapping to a
-
Interactive Report with select list
Hi, I am trying to make an interactive report where the output is based on the choice of a value from the select list; the list is based on a lov: select name,id from kunden order by 1 I created the select list named P2_KUNDEN_ID and used this in my
-
REGEXP_REPLACE to split a string
HI everyone, I have a little weird problem... I have the following scenario: WITH temp_1 AS SELECT 'AA.1.0a01.25.1' as t FROM dual UNION ALL SELECT 'AA.2.Aax1.2p5.1' FROM dual UNION ALL SELECT 'ABC.123.DB' FROM DUAL UNION ALL SELECT 'AB