JText Field with XML Document as a model
Hi All,
I have a swing application, which contains a number of JTextFields inside a form. These textfield represent certain elements of a XML document. The size and other constraints of these elements are specified in a schema. At the bottom, there is a save button which will save the form.
Can someone help me, in binding these textfields with the xml document, so that when I am typing in the textfields, the elements in the xml document gets updated. In other words, I want to set the XML document as the model for the textfields. Hence, when I click on the save button, at the bottom of the form, I will simply validate the XML document against the schema, and notify the user if there is any error in data entry.
Thanks a lot in advance,
~Debopam
sorry for bumping it....but can someone help?
Similar Messages
-
Problem with XML document created by JDBC Sender adapter
We are using a sender JDBC adapter to publish data out of a DB2 table. The message generated by the XI sender adapter seems to have 2 extra characters that break our mapper. You can see the characters (the dashes on lines 2 and 4) in the XML document that I copied from message monitoring. Once I remove these dashes and test the mapper in test mode, it works. If I test with the dashes, the mapper fails. Has anybody else seen this issue?
Regards,
Ivailo
<?xml version="1.0" encoding="utf-8" ?>
- <ns:CUSTOMER_SCOPE xmlns:ns="http://com.gatx/xi/RCRepairEstimate">
- <row>
<CM_CUST_GROUP_CODE>2915</CM_CUST_GROUP_CODE>
<CM_CUST_SUB_CODE>2</CM_CUST_SUB_CODE>
<CM_CUST_ID />
<CM_TERMS>30</CM_TERMS>
<CM_CUST_SHIPTO_GRP>2915</CM_CUST_SHIPTO_GRP>
<CM_CUST_SHIPTO_SUB>2</CM_CUST_SHIPTO_SUB>
<CM_BILL_NAME>GATX RAIL/CANADA</CM_BILL_NAME>
<CM_BILL_ADDR1>540 5TH AVENUE SW SUITE 1225</CM_BILL_ADDR1>
<CM_BILL_ADDR2 />
<CM_BILL_ADDR3 />
<CM_BILL_CITY>CALGARY ALBERTA</CM_BILL_CITY>
<CM_BILL_STATE />
<CM_BILL_ZIP5>0</CM_BILL_ZIP5>
<CM_BILL_ZIP4>0</CM_BILL_ZIP4>
<CM_FOREIGN_ZIP>T2P 0M2</CM_FOREIGN_ZIP>
<CM_ATTENTION>AL FREDERIKSEN</CM_ATTENTION>
<CM_SALESMAN_INI />
<CM_DB_RATING />
<CM_CRED_LIMIT>0</CM_CRED_LIMIT>
<CM_CRED_FLAG />
<CM_LAST_CHG_DATE>1282005</CM_LAST_CHG_DATE>
<CM_CHANGED_BY_USER>XSKISSEL</CM_CHANGED_BY_USER>
<CM_REORG_CODE>N</CM_REORG_CODE>
<CM_CORP_GROUP_CODE>0</CM_CORP_GROUP_CODE>
<CM_CORP_SUB_CODE>0</CM_CORP_SUB_CODE>
<CM_RECORD_CODE />
</row>
</ns:CUSTOMER_SCOPE>Hi Ivailo,
I think the problem lies in the way you copy the data from monitor.
whenever you want to copy data from XI monitor to test in your IB,make sure you select "view source" and then copy the source message otherwise you will get the browser view of the XML document which contain those "-" for expanding and collapsing the document.
Regards,
Sridhar -
Is it possible to use xml publisher with xml document as data source ?
I have an application that have to publish document from xml document that are not part a oracle 10g database but will be stored into Oracle Berkeley XML database insteed. Is it possible to use server and/or desktop to publish these documents ?
I test the desktop edition using the source xml document but it render no data when the template is executed (vizualization)
I installed the server edition and i'm not able to declare xml document as a data source
So i have a doubt that xml publisher is able to publish something from a xml datasource
ThanksYes, it is possible.
The problem should come from your template. Refer to "edit a RTF template" in the docs.
A fact is that XML Publisher server edition is not very adapted to an XML file datasource. In order to use it, you should use an HTTP datasource, with the URL of your XML document (that you should place on a web server...). The problem is that this URL is fixed and point always on the same reference...so XML Publisher server edition is not very good for that use.
I choose to use the XML Publisher Java API which is better for this task. -
Fill hidden field with xml - Web service call
Hi everyone,
I have a developed a web service, my web service method expects an xml string.
I have a new data connection, which is my wsdl file...
Now my challenge is how do I populate that field with my form's xml,so that my my method can manupulate it.
Secondly, I would like the same button that calls my web service to email the form once the web service has been called, email the form as PDF.
Will really appreciate your assistance.
AceYou can use the below command to populate a field with the form's XML.
FieldName.rawValue = xfa.data.saveXML("pretty");
To execute the webservice and then send an email,
1. First place Execute button binding to the Webservice and make it either invisible/ hidden
2. Place a normal button on the form and in the click event write code to call the webservice and then send the email.
//Call the webservice button click event
WebserviceExecuteButton.execEvent("click");
//Send an email
event.target.submitForm({cURL:"mailto:"+ strToAddress + "?subject=" + strSubject + "&body=" + strMessage,cSubmitAs:"PDF",cCharset:"utf-8"});
Replace the names with the variables in your form in the above line.
Thanks
Srini -
Database table updation with XML Document data
import java.io.*;
import java.lang.*;
import java.net.URL;
import java.sql.*;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import oracle.xml.sql.dml.OracleXMLSave;
import org.w3c.dom.Document;
public class updateXMLData
public static void main( String argv[] ) throws SQLException,Exception
String tabName = "emp";
Connection conn = null;
String xmlString;
Document doc;
URL filename;
try
//init a JDBC connection using Oracle's JDBC Drivers
String host = "maple"; // change,these won't work
String port = "1521";
String sid = "PBSI";
String s1 = "jdbc:oracle:thin:@" + host + ":" + port + ":" + sid;
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
conn = DriverManager.getConnection( s1,"scott","tiger");
// Instructions for updating the database rows from XML Document
OracleXMLSave sav = new OracleXMLSave(conn,tabName);
filename = sav.getURL("pbsiempupd.xml");
sav.setRowTag("EMP");
String[] tempArr = new String[2];
tempArr[0]="EMPNO";
tempArr[1]="ENAME";
sav.setKeyColumnList(tempArr);
sav.setUpdateColumnList(tempArr);
int noRows = sav.updateXML(filename);
System.out.println("No of rows updated : " + noRows);
catch (SQLException se)
System.out.println("An SQL exception has occured ");
System.out.println("The error code is : " + se.getErrorCode());
System.out.println("The SQL State is : " + se.getSQLState());
System.out.println("The message is : " + se.getMessage());
catch (Exception e)
System.out.println("Unknown exception has occured");
System.out.println("The class is : "+ e.getClass());
System.out.println("The message is : "+e.getMessage());
finally
if (conn != null) conn.close();
The input XML Document is given below :- in 'pbsiempupd.xml'
<?xml version="1.0"?>
<ROWSET>
<EMP>
<EMPNO>8888</EMPNO>
<ENAME>RAO THOTAKURA</ENAME>
</EMP>
<EMP>
<EMPNO>9999</EMPNO>
<ENAME>BAVA MANI</ENAME>
</EMP>
<EMP>
<EMPNO>7777</EMPNO>
<ENAME>SRINIVAS M</ENAME>
</EMP>
</ROWSET>
After executing this class with 'java updataXMLData' I'm getting following runtime error message :-
Unknown exception has occured
The class is : class oracle.xml.sql.OracleXMLSQLException
The message is : Exception 'java.sql.SQLException:Missing IN or OUT parameter at index:: 1'
encountered during processing ROW element 0All prior XML row changes were rolled back.
in the XML document.
Please anybody could explain how to solve it.
Thanks
Sambasivarao ThotakuraSee my reply to your other question. thanks.
-
Update text fields with xml data based on DDL selection of an ID number
Hi guys,
this one should be straight forward, but I cant seem to find a straight forward answer. In a nutshell:
XML file contains ID, Name, Location (so far 3 records in sample xml file)
Form contains a Dynamic Drop down list to allow selection of ID and text fields to display the associated name and location of that ID. The binding of the Drop down works fine, however I need the other fields to update to the associated name and location when different ID's are selected. I assume I'll need some sort of exit event on the drop down list to update the other fields with the Name and location of the ID selected, but I dont know enough to have a stab at it.
please, please, please help, Im starting to pull my hair out.
James.Hi James,
This would depend on the structure of your XML but assuming you have something like;
<Data>
<Item>
<Id>1</Id>
<Name>Name1</Name>
<Location>Location1</Location>
</Item>
<Item>
<Id>2</Id>
<Name>Name2</Name>
<Location>Location2</Location>
</Item>
<Item>
<Id>3</Id>
<Name>Name3</Name>
<Location>Location3</Location>
</Item>
</Data>
Then in the change event of your dropdown (your could use the exit event but then value might not have changed so would be performing unnecessary processing) add the following code.
var itemGroup = $data.Data.resolveNode("Item.(Id.value === '"+xfa.event.change+"')");
Name.rawValue = itemGroup.Name.value;
Location.rawValue = itemGroup.Location.value;
The xfa.event.change will be the value selected, the resolveNode will return the Item with the matching Id, and then it is just a matter of assigning it to your form fields.
Hope this gets you started.
Regards
Bruce -
Unable to link Jtext field with third party software.
Hi pals,
I am stuck in a problem which is as follows:
"I have one third party software (lightspeed) which helps one to link it to any application. Here I am able to link this app with the text field of google.com opened in a browser or in a java frame. Now whenever I type something in the text field of this app(lightspeed) and press enter, it forwards the same text to google's text field, which is working as expected. Now there is twist, whenever I link any java's textField to this app, it fails."
Now some questions which raise in my mind are:
1) Is it due to the security constraints in java?
2) Or somewhere the sockets are no been able to connect?
Guys, please help. My need is just to link this app to the jTextField.
I will be really thankful to you.
Please Help!
Amanuser8949768 wrote:
Thanks for the reply PhHein. But there may be one of the case:
1) Due to some security constraint java is not accepting third party (or say untrusted ) data.Unlikely
2) It is obvious that app is using sockets, so socket failure might be case. If yes, is there any way to track it?No way to tell without seeing stack traces or errror messages. -
Newbie: Using Fields with XML and Node.getNodeType()
How do I know what returned value from the getNodeType method corresponds to the field values? Looking at the documentation for the Node object I can see where the fields are listed, but there are no corresponding values?
For instance I used "getNodeType" on an Element Node and it returned a short value (1). How do I know that 1 corresponds to Element_Node?
Hope I explained this well enough... I'd appreciate any help.This is a common problem fo beginners. My best programming instructor said that you should never hard code literal numbers into a method. So to be more direct here's how you do it.
//some node is a reference to an instantiated node
if (someNode.getNodeType() == Node.ELEMENT_NODE) {
//this is an element node
//or
switch (someNode.getNodeType()) {
case ELEMENT_NODE:
//this node is an element node
break;
case ATTRIBUTE_NODE:
//this node is an attibute node
break;
} -
How to fill an oracle CLOB with a XML document using Unicode UTF8
Hi,
I'm working with C# and oracle database v8.1.7 (release 3), and i'm having some problems to fill correctly an oracle CLOB parameter with XML document using UTF8 encoding.
It works fine with "Encoding.Unicode" but not with "Encoding.UTF8". The problem is that i can't use Unicode (UTF16) with oracle 8.
Can someone help me ? Thanks.
Here is my code.
OracleTransaction tx = conn.BeginTransaction();
OracleCommand cmd = conn.CreateCommand();
cmd.Transaction = tx;
cmd.CommandText = "declare xx clob; begin dbms_lob.createtemporary(xx, false, 0); :tempclob := xx; end;";
cmd.Parameters.Add(new OracleParameter("tempclob", OracleType.Clob)).Direction = ParameterDirection.Output;
cmd.ExecuteNonQuery();
OracleLob tempLob = (OracleLob)cmd.Parameters[0].Value;
MemoryStream MemStrm = new MemoryStream();
XmlTextWriter writer = new XmlTextWriter(MemStrm, Encoding.UTF8);
writer.Formatting = Formatting.Indented;
WriteXMLExample(writer, "MSFT", 74.125, 5.89, 69020000);
writer.Close();
cmd.Parameters.Clear();
cmd.CommandText = "test_xml";
cmd.CommandType = CommandType.StoredProcedure;
tempLob.Write(MemStrm.GetBuffer(), 0, MemStrm.GetBuffer().Length );
tempLob.Position = 0;
cmd.Parameters.Add(new OracleParameter("xml_inout", OracleType.Clob)).Value = (OracleLob) tempLob;
cmd.ExecuteNonQuery();
Console.WriteLine( "Param 0 = " + cmd.Parameters[0].Value.ToString() );
tx.Commit();Hi,
I'm working with C# and oracle database v8.1.7 (release 3), and i'm having some problems to fill correctly an oracle CLOB parameter with XML document using UTF8 encoding.
It works fine with "Encoding.Unicode" but not with "Encoding.UTF8". The problem is that i can't use Unicode (UTF16) with oracle 8.
Can someone help me ? Thanks.
Here is my code.
OracleTransaction tx = conn.BeginTransaction();
OracleCommand cmd = conn.CreateCommand();
cmd.Transaction = tx;
cmd.CommandText = "declare xx clob; begin dbms_lob.createtemporary(xx, false, 0); :tempclob := xx; end;";
cmd.Parameters.Add(new OracleParameter("tempclob", OracleType.Clob)).Direction = ParameterDirection.Output;
cmd.ExecuteNonQuery();
OracleLob tempLob = (OracleLob)cmd.Parameters[0].Value;
MemoryStream MemStrm = new MemoryStream();
XmlTextWriter writer = new XmlTextWriter(MemStrm, Encoding.UTF8);
writer.Formatting = Formatting.Indented;
WriteXMLExample(writer, "MSFT", 74.125, 5.89, 69020000);
writer.Close();
cmd.Parameters.Clear();
cmd.CommandText = "test_xml";
cmd.CommandType = CommandType.StoredProcedure;
tempLob.Write(MemStrm.GetBuffer(), 0, MemStrm.GetBuffer().Length );
tempLob.Position = 0;
cmd.Parameters.Add(new OracleParameter("xml_inout", OracleType.Clob)).Value = (OracleLob) tempLob;
cmd.ExecuteNonQuery();
Console.WriteLine( "Param 0 = " + cmd.Parameters[0].Value.ToString() );
tx.Commit(); -
Does anyone know if you can have date fields in XML documents so you can sort fields in date order etc.
ThanksPlease post what version of JDeveloper you are using. Also post a small sample application that shows what you are trying to do.
I am not sure what you mean. Are you trying to display a date from the database, or have the user enter a date?
The date format is determined from the client browser locale. It will default to the US date format mm/dd/yy unless the browser locale is overridden.
If you want the user to enter a date, you should be using <dateField>. This will also expect mm/dd/yy unless you override it with a validater. Please refer to the UIX Element Reference. This documents <dateField>. The <onSubmitValidater> is a child of <dateField>, it is also documented in the Element Reference. <date> is the validater you want, it is a child of <onSubmitValidater>. You can specify a validation pattern. -
Multiple XML documents in one SWF
Hi, i'm trying to create a mix and match clothing application
using flash for a school project but am having trouble with xml
documents. Using an online tutorial, i found it was quite easy to
load up one xml document, example of code below.
I thought it would be as simple as copying all the code and
changing the variable names to load a second xml document but i
find when i run the code, that only the last xml document in the
code loads, could anyone give me any tips? Thanks
function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;
image = [];
description = [];
total = xmlNode.childNodes.length;
for (i=0; i<total; i++) {
image
= xmlNode.childNodes.childNodes[0].firstChild.nodeValue;
description
= xmlNode.childNodes.childNodes[1].firstChild.nodeValue;
firstImage();
} else {
content = "file not loaded!";
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("images.xml");Hi, i checked my text and description boxes in my document,
and it is in fact loading the separate xml document, the problem
seems to stem from the fact that it is not displaying the xml image
within the movie clip.
I have two separate mc's on the stage, with different
instance names, flash displays the description of each separate xml
document, however, it only shows one of the movie clips images, if
i delete one from the actionscript, it shows the other, so it must
be something to do with them overwriting each other, i used a
trace, so i know the data is in flash for the images which arent
being shown, it just isn't showing for some reason. -
Query language for XML documents
Which is a better (efficiency in terms of memory management) query language for interacting with XML documents.The query language shouls support 'insert', 'delete', 'update' and 'select' commands. How fast is database as compared to XML ( database being replaced by XML) when only 'insert' n 'select' commands are issued?
Hi,
I suggest you use the Sunopsis JDBC for XML driver that will let you perform all kind of SQL statements on your XML files. It is a type 4 driver so it's very use to use. You may have more information and download it here:
http://www.sunopsis.com/corporate/us/products/jdbcforxml/
Hope that will help
Simo Fernandez -
XQuery many to one in an XML document ??
I have XMLType tables with xml documents that have data like the sample below.
There are one to many InvoiceLineRet to one InvoiceRet, how do I return this data in an XQuery?
I have tried many iterations but cannot get data to return correctly. It is somewhat like a many to one table relation where in the query the one side would repeat across the many lines, but it does not work that way with XQuery.
Any and all suggestions will be appreciated.
Thanks,
Mike
sample data:
<InvoiceRet>
<TxnID>D924-1210085400</TxnID>
<TimeCreated>2008-05-06T10:50:00-05:00</TimeCreated>
<TimeModified>2008-07-21T10:54:42-05:00</TimeModified>
<EditSequence>1215638595</EditSequence>
<TxnNumber>10398</TxnNumber>
<CustomerRef>
<ListID>80000278-1209483158</ListID>
<FullName>Majestic Entries</FullName>
</CustomerRef>
<ARAccountRef>
<ListID>80000009-1185470478</ListID>
<FullName>Accounts Receivable</FullName>
</ARAccountRef>
<TemplateRef>
<ListID>80000019-1190228214</ListID>
<FullName>Compudoc</FullName>
</TemplateRef>
<TxnDate>2008-05-06</TxnDate>
<RefNumber>22333</RefNumber>
<BillAddress>
<Addr1>Majetic Entries</Addr1>
</BillAddress>
<BillAddressBlock>
<Addr1>Majetic Entries</Addr1>
</BillAddressBlock>
<IsPending>false</IsPending>
<IsFinanceCharge>false</IsFinanceCharge>
<DueDate>2008-05-06</DueDate>
<ShipDate>2008-05-06</ShipDate>
<Subtotal>391.50</Subtotal>
<ItemSalesTaxRef>
<ListID>8000004F-1185996977</ListID>
<FullName>NC 7.25%</FullName>
</ItemSalesTaxRef>
<SalesTaxPercentage>7.25</SalesTaxPercentage>
<SalesTaxTotal>5.73</SalesTaxTotal>
<AppliedAmount>-397.23</AppliedAmount>
<BalanceRemaining>0.00</BalanceRemaining>
<IsPaid>true</IsPaid>
<IsToBePrinted>false</IsToBePrinted>
<IsToBeEmailed>false</IsToBeEmailed>
<CustomerSalesTaxCodeRef>
<ListID>80000001-1185469345</ListID>
<FullName>Tax</FullName>
</CustomerSalesTaxCodeRef>
<InvoiceLineRet>
<TxnLineID>D926-1210085400</TxnLineID>
<ItemRef>
<ListID>80000059-1199714336</ListID>
<FullName>Labor:Non-Contract Labor Ken</FullName>
</ItemRef>
<Desc>Technical Labor performed by Ken Allen:
Network Problem with Internet and intranet found two routers connected together and the one set for DHCP was bad we changed out their bad one with our small netgear router.</Desc>
<Quantity>1.5</Quantity>
<Rate>125.00</Rate>
<ClassRef>
<ListID>8000000D-1200208143</ListID>
<FullName>KA</FullName>
</ClassRef>
<Amount>187.50</Amount>
<ServiceDate>2008-04-28</ServiceDate>
<SalesTaxCodeRef>
<ListID>80000002-1185469345</ListID>
<FullName>Non</FullName>
</SalesTaxCodeRef>
</InvoiceLineRet>
<InvoiceLineRet>
<TxnLineID>D927-1210085400</TxnLineID>
<ItemRef>
<ListID>80000029-1185470511</ListID>
<FullName>Labor:Non-Contract Labor Rick</FullName>
</ItemRef>
<Desc>Technical Labor performed by Rick Wagoner: Assisted with above troubleshooting</Desc>
<Quantity>1</Quantity>
<Rate>125.00</Rate>
<ClassRef>
<ListID>80000004-1185998300</ListID>
<FullName>RW</FullName>
</ClassRef>
<Amount>125.00</Amount>
<ServiceDate>2008-04-28</ServiceDate>
<SalesTaxCodeRef>
<ListID>80000002-1185469345</ListID>
<FullName>Non</FullName>
</SalesTaxCodeRef>
</InvoiceLineRet>
<InvoiceLineRet>
<TxnLineID>D928-1210085400</TxnLineID>
<ItemRef>
<ListID>80000050-1185997340</ListID>
<FullName>Parts and Supplies</FullName>
</ItemRef>
<Desc>Parts and Supplies: Netgear router</Desc>
<Quantity>1</Quantity>
<Rate>79.00</Rate>
<ClassRef>
<ListID>80000007-1186694551</ListID>
<FullName>Parts</FullName>
</ClassRef>
<Amount>79.00</Amount>
<SalesTaxCodeRef>
<ListID>80000001-1185469345</ListID>
<FullName>Tax</FullName>
</SalesTaxCodeRef>
</InvoiceLineRet>
</InvoiceRet>
<InvoiceRet>
<TxnID>ED59-1216758177</TxnID>
<TimeCreated>2008-07-22T16:22:57-05:00</TimeCreated>
<TimeModified>2008-07-26T11:21:48-05:00</TimeModified>
<EditSequence>1217085708</EditSequence>
<TxnNumber>11203</TxnNumber>
<CustomerRef>
<ListID>80000278-1209483158</ListID>
<FullName>Majestic Entries</FullName>
</CustomerRef>
<ARAccountRef>
<ListID>80000009-1185470478</ListID>
<FullName>Accounts Receivable</FullName>
</ARAccountRef>
<TemplateRef>
<ListID>80000019-1190228214</ListID>
<FullName>Compudoc</FullName>
</TemplateRef>
<TxnDate>2008-07-22</TxnDate>
<RefNumber>22479</RefNumber>
<BillAddress>
<Addr1>Majetic Entries</Addr1>
</BillAddress>
<BillAddressBlock>
<Addr1>Majetic Entries</Addr1>
</BillAddressBlock>
<IsPending>false</IsPending>
<IsFinanceCharge>false</IsFinanceCharge>
<DueDate>2008-07-22</DueDate>
<ShipDate>2008-07-22</ShipDate>
<Subtotal>839.00</Subtotal>
<ItemSalesTaxRef>
<ListID>8000004F-1185996977</ListID>
<FullName>NC 7.25%</FullName>
</ItemSalesTaxRef>
<SalesTaxPercentage>7.25</SalesTaxPercentage>
<SalesTaxTotal>33.64</SalesTaxTotal>
<AppliedAmount>0.00</AppliedAmount>
<BalanceRemaining>872.64</BalanceRemaining>
<IsPaid>false</IsPaid>
<IsToBePrinted>true</IsToBePrinted>
<IsToBeEmailed>false</IsToBeEmailed>
<CustomerSalesTaxCodeRef>
<ListID>80000001-1185469345</ListID>
<FullName>Tax</FullName>
</CustomerSalesTaxCodeRef>
<InvoiceLineRet>
<TxnLineID>ED5B-1216758177</TxnLineID>
<ItemRef>
<ListID>80000050-1185997340</ListID>
<FullName>Parts and Supplies</FullName>
</ItemRef>
<Desc>Parts and Supplies - Linksys Router</Desc>
<Quantity>1</Quantity>
<Rate>89.00</Rate>
<Amount>89.00</Amount>
<SalesTaxCodeRef>
<ListID>80000001-1185469345</ListID>
<FullName>Tax</FullName>
</SalesTaxCodeRef>
</InvoiceLineRet>
<InvoiceLineRet>
<TxnLineID>ED5C-1216758177</TxnLineID>
<Desc>Suspect that the phone switch is attempting to act as a DHCP server for the network. per Terry, the reason that the phone switch was on the network was to supply VOIP to the warehouse phone lines. This was not working and is no longer needed. We removed the connection between the phone switch and the network.</Desc>
</InvoiceLineRet>
<InvoiceLineRet>
<TxnLineID>ED5D-1216758177</TxnLineID>
<Desc>Removed the Netgear router and the D-Link router. The D-Link had lost all settings and we could not log into the Netgear even after resetting to factory defaults.</Desc>
</InvoiceLineRet>
<InvoiceLineRet>
<TxnLineID>ED5E-1216758177</TxnLineID>
<Desc>Installed a new Lnksys router to replace the D-Link and Netgear faulty routers.</Desc>
</InvoiceLineRet>
<InvoiceLineRet>
<TxnLineID>ED5F-1216758177</TxnLineID>
<Desc>Ensured that all computers were connecting properly. Ensured that all computers printed to the Savin printer correctly.</Desc>
</InvoiceLineRet>
<InvoiceLineRet>
<TxnLineID>ED60-1216758177</TxnLineID>
<Desc>Worked with Time Warner Cable to resolve customer location and static IP.</Desc>
</InvoiceLineRet>
<InvoiceLineRet>
<TxnLineID>ED64-1216758177</TxnLineID>
<ItemRef>
<ListID>80000028-1185470511</ListID>
<FullName>Labor:Non-Contract Labor Kareem</FullName>
</ItemRef>
<Desc>Analyzed and resolved Internet connectivity problems after loss of service from Time Warner Cable.</Desc>
<Quantity>3</Quantity>
<Rate>125.00</Rate>
<Amount>375.00</Amount>
<ServiceDate>2008-07-22</ServiceDate>
<SalesTaxCodeRef>
<ListID>80000002-1185469345</ListID>
<FullName>Non</FullName>
</SalesTaxCodeRef>
</InvoiceLineRet>
<InvoiceLineRet>
<TxnLineID>ED68-1216758177</TxnLineID>
<ItemRef>
<ListID>8000005D-1216758445</ListID>
<FullName>Labor:Non-Contract Labor Mike</FullName>
</ItemRef>
<Desc>Analyzed and resolved Internet connectivity problems after loss of service from Time Warner Cable.</Desc>
<Quantity>3</Quantity>
<Rate>125.00</Rate>
<Amount>375.00</Amount>
<ServiceDate>2008-07-22</ServiceDate>
<SalesTaxCodeRef>
<ListID>80000001-1185469345</ListID>
<FullName>Tax</FullName>
</SalesTaxCodeRef>
</InvoiceLineRet>
<InvoiceLineRet>
<TxnLineID>ED94-1216758177</TxnLineID>
<Desc>Terry called, cannot connect to internet. Everyone but Terry can connect. Terry is getting a 172 IP address on his laptop. Walked him through putting a static IP on his laptop so that he could be functional. I went to their site and talked with the NEC phone switch management company. They said the switch does not have DHCP capabilities. I could not duplicate Terry's issue using my laptop. The phone switch is now totally disconnected from the network since the VOIP setup for the warehouse was not functional. Validated that the TWC modem is not DHCP.</Desc>
<ServiceDate>2008-07-23</ServiceDate>
</InvoiceLineRet>
<InvoiceLineRet>
<TxnLineID>ED95-1216758177</TxnLineID>
<Desc>Requires further diagnostics on Friday the 25th (if Terry is available) - need his laptop on-site to diagnose the problem.</Desc>
</InvoiceLineRet>
<InvoiceLineRet>
<TxnLineID>EE30-1216758177</TxnLineID>
<Desc>Communicated with Terry on 7/24/2008 via email. He is using DHCP and connecting correctly. Removing the final connection from the phone switch to the network appears to have corrected the problem.</Desc>
<ServiceDate>2008-07-24</ServiceDate>
</InvoiceLineRet>
</InvoiceRet>try to use "xmlTable"
search on this forum u can find much more stuff -
Xml document to oracle tables - data is not fatching
Hello,
I am new to xml and trying to extract some fields from xml document to oracle tables to use them further in application. I have written following to extract values but nothing is fatching from document:
<?xml version="1.0" encoding="UTF-8" ?>
- <dmsgo:DMS_GO_Interface xmlns:dmsgo="https://globalordering.daimler.com/start/dms/interface/DMS_GO_Interface/v1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://globalordering.daimler.com/start/dms/interface/DMS_GO_Interface/v1 DMS_GO_Interface_v1.xsd">
<dmsgo:majorversion>1</dmsgo:majorversion>
<dmsgo:identity context="CONFGOFR_OUT" datetimecreated="01/03/2011 10:51" source="go" sourceversion="1.410.1" />
- <dmsgo:prospect>
<dmsgo:requestresponse code="0" />
<dmsgo:references />
- <dmsgo:configurationcontext dataversion="2163" languageiso="en" orderingmarket="867" saleslevel="R">
<dmsgo:configurationdate>01/03/2011</dmsgo:configurationdate>
</dmsgo:configurationcontext>
- <dmsgo:vehicle>
<dmsgo:variant baumuster="2120482" manufacturercode="2120482" />
<dmsgo:desc>E 200 CGI BlueEFFICIENCY Sedan RHD</dmsgo:desc>
- <dmsgo:colorcombination>
<dmsgo:interiorcolor codeowner="C" manufacturercode="4201" ppmtype="AU">Leather black</dmsgo:interiorcolor>
<dmsgo:exteriorcolor codeowner="C" manufacturercode="2497" ppmtype="LU">Cuprite brown metallic</dmsgo:exteriorcolor>
<dmsgo:paintzone manufacturercode="" preference="2" />
</dmsgo:colorcombination>
INSERT INTO p1 (flux_name, elment_1, elment_2, elment_3)
SELECT flux_name, elment_1, elment_2, elment_3
FROM XMLTable(
XMLNamespaces ('https://globalordering.daimler.com/start/dms/interface/DMS_GO_Interface/v1' as "dmsgo"),
'dmsgo:DMS_GO_Interface/prospect/vehicle'
passing xmltype(bfilename('DMLDIR','prospect.xml'), nls_charset_id('CHAR_CS'))
columns
flux_name varchar2(20) path 'dmsgo:variant/@baumuster',
elment_1 varchar2(20) path 'dmsgo:desc',
elment_2 varchar2(20) path 'dmsgo:colorcombination/interiorcolor',
elment_3 varchar2(20) path 'dmsgo:colorcombination/interiorcolor/@manufacturercode'
Please help.
Looking forward to early response.
Thanks
UsmanHi,
You're missing the namespace prefix on some elements.
This should work :
SQL> SELECT flux_name, elment_1, elment_2, elment_3
2 FROM XMLTable(
3 XMLNamespaces ('https://globalordering.daimler.com/start/dms/interface/DMS_GO_Interface/v1' as "dmsgo"),
4 'dmsgo:DMS_GO_Interface/dmsgo:prospect/dmsgo:vehicle'
5 passing xmltype(bfilename('DMLDIR','prospect.xml'), nls_charset_id('CHAR_CS'))
6 columns
7 flux_name varchar2(20) path 'dmsgo:variant/@baumuster',
8 elment_1 varchar2(40) path 'dmsgo:desc',
9 elment_2 varchar2(20) path 'dmsgo:colorcombination/dmsgo:interiorcolor',
10 elment_3 varchar2(20) path 'dmsgo:colorcombination/dmsgo:interiorcolor/@manufacturercode'
11 );
FLUX_NAME ELMENT_1 ELMENT_2 ELMENT_3
2120482 E 200 CGI BlueEFFICIENCY Sedan RHD Leather black 4201 -
XML document as input to stored procedure
Hi,
I am trying to execute the stored prcedure URL with XML document as input have it parsed there and send the XML document as output.
Can anybody explain how best this can be done?You could refer to the examples in Steve's book "Build Oracle
XML Applications" chp5(started from page 120).
Maybe you are looking for
-
show the data shows whe i selet for sync (i have ticked sync only ticked icon) and selected two playlists - the data usage shows an extra 3.2 gb off my 32g ipad and the movies show up purple on the data usage bar, i press apply / sync it takes 20mins
-
How to look up a random key value
I'm importing some data in a flat file. That data is going to be loaded into a fact table. That fact table connects to some dimension tables and I need to the keys out of those tables. The problem is, this isn't a look up. There is no key value in th
-
Hello there: I noticed on a JTable component, the default transversing order of the cells when pressing tab key is from left to right, row by row. Now if I want the order to be from top to bottom, column by column. How can I do it? Thanks, Sway
-
Hi experts, I have a problem when I run a Webi on a BW query. If I place a single characteristic in Webi report shows me the key, your text short and medium text, but if I add a measure to Webi don't show me the key, that is, I only see the short tex
-
Design Suggestion for Custom ADF Application
Hi I have a custom database table. I have a custom database view which has query from multiple tables including the above table. The custom table in the view is joined with other tables by columns like inventory_item_id, organization_id etc. I have t