How to get XML tag attribute vaue in Oracle
Hi,
I have XML file which have order tag
<submitOrderRes>:Application Exception: SOS</submitOrderRes>.
From this xml file i want to display only the tag value , which is 'Application Exception: SOS'.
how to get this tag value by select SQL
any help is appreciate
TY
I don't know your query
Here is the example
SQL> l
1 select
2 extractvalue(xmltype(dbms_xmlgen.getxml('select * from emp where rownum=1'))
3 ,'/ROWSET/ROW/ENAME') col_value
4* from dual
SQL> /
COL_VALUE
SMITHSS
Similar Messages
-
Hi,
I am trying to get the attribute values of an XML Tag of a Textbox. To get the xml tag of the selected element, I use
InterfacePtr<IXMLTagSuite> xmlTagSuite(fCurrentSelection,UseDefaultIID());
if (xmlTagSuite)
UIDList tagUIDList = xmlTagSuite->GetTags();
UID tagID;
UIDRef tagUIDRef;
for(int32 i=0; i < tagUIDList.Length();i++)
tagID = tagUIDList[i];
tagUIDRef = UIDRef(fCurrentSelection->GetDataBase(), tagID);
InterfacePtr<IXMLTag>xmlTag(tagUIDRef,UseDefaultIID());
if (kTrue == tagUIDRef.ExistsInDB()) {
tagName = xmlTag->GetTagName();
err = kSuccess;
since I am totally new to this, It would help a great deal if you could tell me how to iterate thourgh the attribute values of that tag.
Thanks so much in advance
Benny"Tags" are what appear in the Tags palette. "Elements" are what appear in the Structure View. Tags do not have attributes, elements are the ones with attributes. Instead of looking at the tags, you should be looking for the elements. Find the element that's associated with the story, and IIDXMLElement should have attributes you can loop through.
-
How to get xml tag name?
Hi all
I've selected some texts and I want to get its xml element name not root element. I've done this
InterfacePtr<IXMLReferenceData> xmlRefData(Utils<IXMLUtils>()->QueryXMLReferenceData(textModel));
and I get only the document's root element name.
Any suggessions please.Hello Dirk
I've looked there. But I dont understand which one one will satisfy my need. There are "QueryDocElement" and "QueryRootElement" and their definitions say that it will return root element of doc/database.
please i need ur suggessions further.
Thanks
THAMIL -
How to change XML Tag sequence in XML Publisher Reports
Hi Experts,
I am working on XML Publisher reports, EBS 11I and Database 9i. I have standard report 'PO Printed Purchase Order Report (XML)', it's output type is XML. I want to change the sequence of groups in XML file.
I am getting XML tags like below at present:
LIST_G_HEADERS \ G_HEADERS \ LIST_G_HEADER_NOTES
I want to change the sequence of groups like below.
LIST_G_HEADERS \ G_HEADERS \ LIST_G_LINES \
Could somebody help me how to change the sequence of XML Groups.
Thanks in advance.Paul,
This works. Thanks!
I am still working through the implications of having a data connection defined. I notice that every time I submit, it creates two records in my database, one with all the fields blank, and one with the data and attachment.
I will have to do some more digging into the double submission, but at least it is uploading the file.
Thanks again,
Ed -
How to get safecontrol tag section to a collection from web.config in c#
how to get safecontrol tag section to a collection from web.config in c#
Below is my config file. I need to read the safecontrol tagsection and get all those in to a collection.please help me on this.
<?xml
version="1.0"
encoding="UTF-8"
standalone="yes"?>
<configuration>
<SafeControls>
<SafeControl
Assembly="System.Web,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
Namespace="System.Web.UI.WebControls"
TypeName="*"
Safe="True"
AllowRemoteDesigner="True"
SafeAgainstScript="False"
/>
<SafeControl
Assembly="System.Web,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
Namespace="System.Web.UI.HtmlControls"
TypeName="*"
Safe="True"
AllowRemoteDesigner="True"
SafeAgainstScript="False"
/>
</
SafeControls>
</configuration>
adityadugyalaHere is the way to read and write custom sections programtically in web.config.
http://msdn.microsoft.com/en-us/library/2tw134k3.aspx
Or use the traditional way of reading XML with XMLDocument.
Bala -
How to get the tag name into javascript
Hi,
Is there any way to get the tag name into java script when user clicks on.
For eg: if i use netui:anchor tag, how can I pass the tag id to the javascript when user clicks on the link using onClick attribute. This tag id needs to be evaluated at run time.
Ex code is given below.
function fun1(){
// how to get the tag name;
<%
String st="hai";
%>
<netui:anchor action="x" onClick="fun1()" tagId="<%=st%>>
I want to get this tagId (st) to the java script function fun1() when user clicks on this link. How can I do that. can you please help in this issue.
Thanks,
Satish.Hi,
You can set the java variable as a js variable at run time:
<script>
var anchorName = <%=getNetuiTagName%>;
function fun1()
var anchorID = getNetuiTagName(anchorName);
alert(anchorID);// this will show the rendered ID for the anchor specified
</script>
this works because the jsp variable will be rendered before the js.
Thanks,
Steve -
How to set xml tag to nothing in indesign using applescript?
Hi guys,
I need set xml tag to nothing(for tables) in indesign using applescript.
Please help me.Hi,
tell application "Adobe InDesign CC 2014"
tell active document
if (count of story) > 0 then
tell story 1
if (count of tables) > 0 then
tell table 1
set tag_name to associated XML element ----------------> i can't get xml tag, i am receiving the xml tag is nothing.
if (tag_name = nothing) then
display dialog ("This table has no tag")
else
set markup_tag to markup tag of tag_name
set n to name of markup_tag
display dialog ("Tag name is " & n)
end if
end tell
end if
end tell
end if
end tell
end tell
I can't get xml tag for table, i am received nothing -
Hi All,
Can anybody suggest me how to get XML file of System form.
Means i want XML file of Sales order. Where i get it ?
Thanks,Hi Harish,
Lets try this code.It will solve ur problem.
Public Class SystemForm
Private WithEvents SBO_Application As SAPbouiCOM.Application
Private oOrderForm As SAPbouiCOM.Form
Private oNewItem As SAPbouiCOM.Item
Private oItem As SAPbouiCOM.Item
Private oFolderItem As SAPbouiCOM.Folder
Private oOptionBtn As SAPbouiCOM.OptionBtn
Private oCheckBox As SAPbouiCOM.CheckBox
Private i As Integer
Private Sub SetApplication()
Dim SboGuiApi As SAPbouiCOM.SboGuiApi
Dim sConnectionString As String
SboGuiApi = New SAPbouiCOM.SboGuiApi()
sConnectionString = Command
SboGuiApi.Connect(sConnectionString)
SBO_Application = SboGuiApi.GetApplication()
End Sub
Private Sub AddItemsToOrderForm()
oOrderForm.DataSources.UserDataSources.Add("OpBtnDS", SAPbouiCOM.BoDataType.dt_SHORT_TEXT, 1)
oOrderForm.DataSources.UserDataSources.Add("CheckDS1", SAPbouiCOM.BoDataType.dt_SHORT_TEXT, 1)
oOrderForm.DataSources.UserDataSources.Add("CheckDS2", SAPbouiCOM.BoDataType.dt_SHORT_TEXT, 1)
oOrderForm.DataSources.UserDataSources.Add("CheckDS3", SAPbouiCOM.BoDataType.dt_SHORT_TEXT, 1)
oItem = oOrderForm.Items.Item("126")
For i = 1 To 3
oNewItem = oOrderForm.Items.Add("CheckBox" & i, SAPbouiCOM.BoFormItemTypes.it_CHECK_BOX)
oNewItem.Left = oItem.Left
oNewItem.Width = 100
oNewItem.Top = oItem.Top + (i - 1) * 19
oNewItem.Height = 19
oNewItem.FromPane = 5
oNewItem.ToPane = 5
oCheckBox = oNewItem.Specific
oCheckBox.Caption = "Check Box" & i '
oCheckBox.DataBind.SetBound(True, "", "CheckDS" & i)
Next i
oItem = oOrderForm.Items.Item("44")
For i = 1 To 3
oNewItem = oOrderForm.Items.Add("OpBtn" & i, SAPbouiCOM.BoFormItemTypes.it_OPTION_BUTTON)
oNewItem.Left = oItem.Left
oNewItem.Width = 100
oNewItem.Top = oItem.Top + (i - 1) * 19
oNewItem.Height = 19
oNewItem.FromPane = 5
oNewItem.ToPane = 5
oOptionBtn = oNewItem.Specific
oOptionBtn.Caption = "Option Button" & i
If i > 1 Then
oOptionBtn.GroupWith("OpBtn" & i - 1)
End If
oOptionBtn.DataBind.SetBound(True, "", "OpBtnDS")
Next i
End Sub
Public Sub New()
MyBase.New()
SetApplication()
End Sub
Private Sub SBO_Application_ItemEvent(ByVal FormUID As String, ByRef pVal As SAPbouiCOM.ItemEvent, ByRef BubbleEvent As Boolean) Handles SBO_Application.ItemEvent
If ((pVal.FormType = 139 And pVal.EventType <> SAPbouiCOM.BoEventTypes.et_FORM_UNLOAD) And (pVal.Before_Action = True)) Then
oOrderForm = SBO_Application.Forms.GetFormByTypeAndCount(pVal.FormType, pVal.FormTypeCount)
If ((pVal.EventType = SAPbouiCOM.BoEventTypes.et_FORM_LOAD) And (pVal.Before_Action = True)) Then
oNewItem = oOrderForm.Items.Add("UserFolder", SAPbouiCOM.BoFormItemTypes.it_FOLDER)
oItem = oOrderForm.Items.Item("138")
oNewItem.Top = oItem.Top
oNewItem.Height = oItem.Height
oNewItem.Width = oItem.Width
oNewItem.Left = oItem.Left + oItem.Width
oFolderItem = oNewItem.Specific
oFolderItem.Caption = "User Folder"
oFolderItem.GroupWith("138")
AddItemsToOrderForm()
oOrderForm.PaneLevel = 1
End If
If pVal.ItemUID = "UserFolder" And pVal.EventType = SAPbouiCOM.BoEventTypes.et_ITEM_PRESSED And pVal.Before_Action = True Then
oOrderForm.PaneLevel = 5
End If
End If
End Sub
Private Sub SBO_Application_AppEvent(ByVal EventType As SAPbouiCOM.BoAppEventTypes)
Select Case EventType
Case SAPbouiCOM.BoAppEventTypes.aet_ShutDown
SBO_Application.MessageBox("A Shut Down Event has been caught" & _
vbNewLine & "Terminating 'Order Form Manipulation' Add On...")
End
End Select
End Sub
End Class
Regards
Mohana -
How to get vlan tag programe with mac book air
how to get vlan tag programe with mac book air,i'm using the usb ethernet adapter
For prompt help contact TATA.
For more on this: https://discussions.apple.com/thread/3680625?tstart=270 -
Getting xml tags for PO releases.
I need some help in getting xml tags for PO releases.
When I refer metalink they gave me the following for Std PO.
Create a new Standard Purchase Order and DO NOT approve it. Let it be in Incomplete status. Go to
concurrent requests and run the 'PO Output for Communication' concurrent
program will the following parameters:
Print Selection: All
Purchase Order Number From: The PO # you just created
To: The PO # you just created
Test: Debug
May I know for PO releases what are additional parameters.I tried to enter release numbers in addition to the above.Bit it did not work,..
I am having issue in getting buyer contact phone for PO releases.So I am trying to see if the work_tele_phone is available for Po releases xml tags.
Can anyone please advise
prasambTo get the tag name, you can use the following XSL stylesheet:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="node()">
<xsl:value-of select="name()"/> <xsl:text> </xsl:text>
<xsl:apply-templates/>
</xsl:template>
</xsl:stylesheet> -
How to get organization id as input in oracle alerts
Hi,
How to get organization id as input in oracle alerts
Following is the my sql script
SELECT
poh.segment1
,pv.vendor_name
,poh.end_date
,flv.description
,flv.tag
INTO
&po_num
,&vendor_name
,&end_date
,&to_mail
,&cc_mail
FROM
po_headers_all poh
,po_vendors pv
,hr_locations hrl
,org_organization_definitions ood
,fnd_lookup_values_vl flv
WHERE
poh.vendor_id = pv.vendor_id
and poh.type_lookup_code in ('CONTRACT','BLANKET')
and poh.attribute2 = 'Contracts, Services'
and hrl.ship_to_location_id = poh.ship_to_location_id
and hrl.inventory_organization_id = ood.organization_id
and ood.organization_code = flv.lookup_code
and flv.lookup_type='NGHA_EAM_ORG_EMAIL'
and flv.lookup_code = 'RCE'
and to_char(poh.end_date, 'dd-mm-yyyy') = to_char(sysdate+180, 'dd-mm-yyyy')
Here i did organization code as hard code , but i want here organization code dynamically.
Hanimi.Can you not use the function FND_PROFILE.VALUE ('ORG_ID') or something similar ?
See ML Doc 289563.1 (Unable To Use More Than 16 Functions Calls In Alert Definition) as an example.
HTH
Srini -
How to get Workflow code/wtf file from Oracle Customization Form
Hi All,
I am new to this forum. Can some one please help me how to get this wft file from customized oracle PO form ?
Thanks,Pl post details of OS, database and EBS versions.
What is "this wft" file ? WFT files are txt files of workflow definitions that can be downloaded from the database (or uploaded to the database) using WFLOAD utility.
HOW TO DOWNLOAD WORKFLOW FILE .wft [Document 578248.1]
How To Update and Move Workflow From One Instance to Another? [Document 398460.1]
HTH
Srini -
IDOC to File, variable substitution on outbound message XML tag attributes
My scenario is IDOC to FILE using XSL mappings.The target format is 2 XML tags (header, line) with the data stored in the attributes of each tag.
EG. <header attr1=one attr2=two attr3=three><line attr1=one attr2=two /></header>
The name of the file is dictated by an outbound attribute value in the header tag.
Can I get access to it the attribute in the target message in the CC_FILE using variable substution. ?
Currently I am not using content conversion as the XSL produces the file format needed, so I would pefer not to change the outbound message format/structure as this is going to an external party. I would prefer not to change the outbound format as this would need content conversion to strip the unwanted/information/processing node that is used for this purpose (file naming).
The name is a calculation of fields in the IDOC and is not explicit dictated (business logic is applied in the mapping to get the file name), so I would prefer to use the attribute of the resulting XML to keep the "business logic" in the XSL..
Things that cannot be changed.... 1. Must use XSL.for mapping. 2. Format cannot be changed of the outbound message. 3. Would prefer not to involved content conversion to keep formatting/node structure in the XSL mapping.
I have seen some reference to this being possible on the forums but nothing solid from what Ive read.
Something like var1 = payload:/Header/@attr1 in variable sub to get at the attribute
Any comments ?
Thanks in advance.
One final piece of info. its on a PI 7.1 system.I think its best explained by my other thread Link:PI 7.1 Access to Dynamic Configuration through Java Class .
Thanks for the link I have already implemented based on that link but the one crucial difference is that it is implemented using a static method with no reference to the actual object (payload) for Dynamic configuration. It seems that without the 7.0 API which isnt available in 7.1 by default XSL with java extentions is limited to static methods. If you could read the other thread it certainly is possible I'm mistaken. -
How to Read XML tags....
Hi guys...
Can any one here tell me how to read the XML tag in PL/SQL.
In table Enquiry there are following fields.
Id number
Status varchar2(5)
Request XML
Reply XML
Error varchar2(10)
Now the following XML will be in request column from the requester.
I have to get the,
->request which is in BODY tag,
->ID number which is in from tag (its the persons unique ID to check his BILL)
Fetch the request from the database and updates it into the REPLY field with the same syntax.
<message>
<to> 123 </to>
<from>789</from>
<body> unbill </body>
<messagenumber> 01 </messagenumber>
</message>
Can any one have the solution to this, how can I read the XML tags, process & again inserts as an XML.
Thanks.Maybe something like this will be a pointer...
SQL> CREATE TABLE t AS
2 select 1 as id, 'C' as status, XMLTYPE('<message><to>123</to><from>789</from><body>unbill</body><messagenumber>01</messagenumber></message>') as request, XMLTYPE('<reply/>') as reply, 'NO ERROR' as error from dual
3 ;
Table created.
SQL>
SQL> SELECT * from t;
ID S
REQUEST
REPLY
ERROR
1 C
<message><to>123</to><from>789</from><body>unbill</body><messagenumber>01</messagenumber></message>
<reply/>
NO ERROR
SQL>
SQL> UPDATE t
2 SET reply = updateXML(request,'/message/body/text()','bill')
3 ;
1 row updated.
SQL>
SQL> SELECT * from t;
ID S
REQUEST
REPLY
ERROR
1 C
<message><to>123</to><from>789</from><body>unbill</body><messagenumber>01</messagenumber></message>
<message><to>123</to><from>789</from><body>bill</body><messagenumber>01</messagenumber></message>
NO ERROR
SQL> -
How to extract xml tag name contains dashes
Hi, How to parse XML file to extract root tag contains dashes in Flex,for example
XML Input is: <regular-body>Text of my post...</regular-body>
expected output is : regular-body
I appreciate any of your suggestions or inputsDo you want to get the name of the XML ELEMENT regular-body, or the value in the XML file "Text of my post...".
If its the latter, then you could use the bracket/quote notation for extracting the value, like in the following example:
image = xmlWeather[0]..parameters["conditions-icon"]["icon-link"][idx]
I use this when parsing weather information from a 3rd party in which their XML is loaded with dashes.
If you are looking to get the actual element name, not sure how to do that. I would think that if you are using an XML file, you would have at least the high level element known.
Maybe you are looking for
-
I currently have Leopard, and there are no longer updates for it. So I must upgrade to either Snow Leopard or Mountain Lion. Without doing so I cannot update my itunes, and my ipod is no longer compatile with my mac. How can I buy the upgrade, since
-
Acrobat pro 10.1.9 stopped being able to OCR scans
Acrobat pro 10.1.9 stopped being able to OCR scans. I am running Windows 7 (64-bit) and I have OCRd several hundred pages of test over the last 5 months, but receintly I get a "Some of the pages couldn't be OCRed" and "Acrobat could not perform reco
-
First time making a purchase with this new mac...
when I type in my password, it prompts me to ask my security questions, but i can't remember one of them,any help? thanks
-
Hi i m new to expdp i used to start to use expdp recently from exp. since it is having so many features within that. want to know some thing like abt the err:ORA-39095 when i searched in google what they suggested to use filesize or some suggest to g
-
Response for successful Idoc post
Hi, Curerently we are in the designing specifications phase of a project where there is a requirement which i am not sure if it can be achieved or not, hope i can get some help here. The interface flow would be an File to Idoc scenario where multiple