HELP ::: DOM XML Parser
Hi,
I am trying to parse this xml.
<Node>MS
<Condition>BooleaaaaanOperator
<Operation>AND</Operation>
<Condition>NumberList
<Comment>Only destinations are allowed to be sent.</Comment>
<Type>0</Type>
<Number>083538</Number>
</Condition>
<Condition22>BooooooooooooleanOperator
<Operation1>NOT</Operation1>
<Condition55>BooleeeeeeeeeeanOperator
<Operation2>AND</Operation2>
<Condition33>ExtensionNr
<Comment>When Extension Number 2 is not set to 1 it indicates the content type of the message.</Comment>
<Number>2</Number>
<Value>1</Value>
</Condition33>
<Condition44>ExtensionNr
<Numm>101010101010101</Numm>
<Value>0-1002</Value>
</Condition44>
</Condition55>
</Condition22>
</Condition>
<Node>Fee
I can get the Numm string using the parser by this line
elementSub5.getFirstChild().getNextSibling().getNodeName())
BUT:: I cannot get the value of that node to print out, or set it to a variable.
I really need the 101010101010101 but cannot get them. I have tried everything.
If you could post more code I could possibly help you out. Just post some code of where the problem is and I will look at it. I believe there is a getNodeValue() method and there may be a getTextContent() method or something... actually I think I ran into this problem before... you can pull the value out of the toString() method by using a substring.
I used something like this and it worked fine...
String data = node.toString();
data = data.substring(data.indexOf(":")+1, data.length()-1);
In your case perhaps you can try something like this...
String elementData = elementSub5.getFirstChild().getNextSibling().toString();
elementData = elementData.substring(elementData.indexOf(":")+1, elementData.length()-1);
That substring method may not be 100% accurate... you best bet is to just put the node to a string and by debugging the program look at what the string value is. You can then adjust the substring to grab the correct data from the XML.
You would think there is a better way to do this... but I could not find it and this way worked for me...
Similar Messages
-
Hey, I apologize for the newbie question but I suppose this is as good a place as any for it. I'm in desperate need of a DOM XML parser and have decided upon the Apache parser, "Xerces," featured here. My problem is this, every time I make a move towards installing it, I get all mixed up at the mention of my "Apache, ant and forrest" installations that I am apparently supposed to have in order for this library to work. My question is, is this library only for use in web-based applications and thus requires Apache in order to run? I ask because the application I'm working on is simply for desktop usage and the users it will be distributed to will not have Apache installations. If somebody could help me out with a quick little walk-through on the installation of this library it would be IMMENSELY appreciated.
Edited by: Tracekill on Sep 13, 2009 11:01 AMStudy up on the javax.xml.parsers API here at Sun. Next, download Xerces from Apache (xml.apache.org). Finally, take a tutorial.
- Saish -
Hi,
I am trying to write a sample program using DOM xml parser in java to read the values in a XML file.
please suggest me what are all the things I have to do for that.
I know Java and XML. I want to know how to access values from XML file in java.
Thanks
SelvakumarStudy up on the javax.xml.parsers API here at Sun. Next, download Xerces from Apache (xml.apache.org). Finally, take a tutorial.
- Saish -
it 's 10g
set serveroutput on
set line 2000
drop table emp;
CREATE TABLE EMP (
EMPNO NUMBER(10),
ENAME VARCHAR2(10),
JOB VARCHAR2(9),
MGR NUMBER(4),
HIREDATE DATE,
SAL NUMBER(7, 2),
COMM NUMBER(7, 2),
DEPTNO NUMBER(2));
DECLARE
l_bfile BFILE;
l_clob CLOB;
l_parser dbms_xmlparser.Parser;
l_doc dbms_xmldom.DOMDocument;
l_nl dbms_xmldom.DOMNodeList;
l_n dbms_xmldom.DOMNode;
l_temp VARCHAR2(1000);
TYPE tab_type IS TABLE OF emp%ROWTYPE;
t_tab tab_type := tab_type();
BEGIN
l_bfile := BFileName('ADMIN1_DIR', 'emp.xml');
dbms_lob.createtemporary(l_clob, cache=>FALSE);
dbms_lob.open(l_bfile, dbms_lob.lob_readonly);
dbms_lob.loadFromFile(dest_lob => l_clob,
src_lob => l_bfile,
amount => dbms_lob.getLength(l_bfile));
dbms_lob.close(l_bfile);
-- make sure implicit date conversions are performed correctly
dbms_session.set_nls('NLS_DATE_FORMAT','''DD-MON-YYYY''');
-- Create a parser.
l_parser := dbms_xmlparser.newParser;
-- Parse the document and create a new DOM document.
dbms_xmlparser.parseClob(l_parser, l_clob);
l_doc := dbms_xmlparser.getDocument(l_parser);
-- Free resources associated with the CLOB and Parser now they are no longer needed.
dbms_lob.freetemporary(l_clob);
dbms_xmlparser.freeParser(l_parser);
-- Get a list of all the EMP nodes in the document using the XPATH syntax.
--l_nl := dbms_xslprocessor.selectNodes(dbms_xmldom.makeNode(l_doc),'/EMPLOYEES/EMP');
l_nl := dbms_xslprocessor.selectNodes(dbms_xmldom.makeNode(l_doc),'/ipdrIPDR');
-- Loop through the list and create a new record in a tble collection
-- for each EMP record.
FOR cur_emp IN 0 .. dbms_xmldom.getLength(l_nl) - 1 LOOP
l_n := dbms_xmldom.item(l_nl, cur_emp);
t_tab.extend;
-- Use XPATH syntax to assign values to he elements of the collection.
-- dbms_xslprocessor.valueOf(l_n,'recordId/text()',t_tab(t_tab.last).empno);
dbms_xslprocessor.valueOf(l_n,'recordId/text()',t_tab(t_tab.last).ename);
dbms_xslprocessor.valueOf(l_n,'JOB/text()',t_tab(t_tab.last).job);
dbms_xslprocessor.valueOf(l_n,'MGR/text()',t_tab(t_tab.last).mgr);
dbms_xslprocessor.valueOf(l_n,'HIREDATE/text()',t_tab(t_tab.last).hiredate);
dbms_xslprocessor.valueOf(l_n,'SAL/text()',t_tab(t_tab.last).sal);
dbms_xslprocessor.valueOf(l_n,'COMM/text()',t_tab(t_tab.last).comm);
dbms_xslprocessor.valueOf(l_n,'DEPTNO/text()',t_tab(t_tab.last).deptno);
END LOOP;
-- Insert data into the real EMP table from the table collection.
-- Form better performance multiple collections should be used to allow
-- bulk binding using the FORALL construct but this would make the code
-- too long-winded for this example.
FOR cur_emp IN t_tab.first .. t_tab.last LOOP
INSERT INTO emp
ename
VALUES
t_tab(cur_emp).ename
END LOOP;
COMMIT;
-- Free any resources associated with the document now it
-- is no longer needed.
dbms_xmldom.freeDocument(l_doc);
EXCEPTION
WHEN OTHERS THEN
dbms_output.put_line('errrrrrrrr--->'||sqlerrm);
dbms_lob.freetemporary(l_clob);
dbms_xmlparser.freeParser(l_parser);
dbms_xmldom.freeDocument(l_doc);
END;
/select * from emp;
this file works fine
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<ipdrIPDR>
<recordId>923622</recordId>
</ipdrIPDR>
but this is not . .. note my special charter in the tokens... i did change in the program too but does not work ...
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<ipdr:IPDR>
<recordId>923622</recordId>
</ipdr:IPDR>
I get error
errrrrrrrr--->ORA-31011: XML parsing failed
ORA-19202: Error occurred in XML processing
LPX-00234: namespace prefix "ipdr" is not declared
Error at line 2
PL/SQL procedure successfully completed.Hi,
Yes, I have tried the same method. will be ok.
But I have got another some records on the same column as follows.
I have tried with another one xmltable with outer join(+), still not getting the actual data (null record from the original(main) table) and extra records from the new xmltable.
Is it possible to make one or union with xmltable also can we check the node either /Item or /section exists something like that
<?xml version="1.0" encoding="WINDOWS-1252"?>
<section>
<sectionmetadata>
<object_id>317832</object_id>
<asitype>Section</asitype>
<instructornotes/>
</sectionmetadata>
<selection_ordering>
<selection seltype="All">
<selection_number>1</selection_number>
<or_selection>
<selection_metadata mdoperator="EQ" mdname="questionid">_155451_1</selection_metadata>
</or_selection>
</selection>
<selection seltype="All">
<or_selection>
<selection_param pname="singleLink">true</selection_param>
</or_selection>
</selection>
</selection_ordering>
</section>Thanks, -
DOM XML Parser in Stateless Session Bean- Not able to generate Container
I am trying to do some XML Parsing using a DOM Parser in a Stateless Session Bean. I am importing org.apache.xerces.parsers.DOMParser and trying the following statement DOMParser parser = new DOMParser();
Even though I am able to compile and generate the initial jar file. When I try to generate the container using the Weblogic Deployer GUI tool, the process keeps on going(I mean that I see the small window saying Container Generating working) and it never stops.
Any suggestions are welcome.Many thanks ksaks for replying.
Actually day before yesterday we were able to do something like this. But then I kept this thread open only to see if experts have some good way of doing this.
What I mean is if this way is industry standards in terms of design and does it follow the most popular way how experts do it?
I am asking this as WebProjects have webcontent/web-inf directory wherein we put those xsds and property files, but we do not have anything like this in an EJB project. so was just wondering if this is the correct way of doing it or not.
I am still following this approach because I had to proceed further in my development. Confirmation would erase any other doubts on this.
Hope you find time to reply.
Kind Regards,
user2205
Edited by: user2205 on Nov 10, 2008 11:43 PM -
Can anyone help in parsing a XML formatted like this by using pl/sql:
<user><id>myId</id><test><type>XYType</type>hereisthevalue</test></user>
thanks.It really depends on what you want to do with it but here is one option:
This block will parse out the user id and test type. I am typing this without access to a database to try it or an xml editor. I think you have an error in your xml. I removed "hereisthevalue" as it is in the wrong place. It needs to be wrapped in an additional tag.
declare
v_xml xmltype ;
begin
v_xml := xmltype('<user><id>myId</id><test><type>XYType</type></test></user>');
dbms_output.put_line('User ID=' || v_xml.extract('/user/id/text()).getStringVal());
dbms_output.put_line('Test Type=' || v_xml.extract('/user/test/type/text()).getStringVal());
end;
Hope that helps,
LewisC -
Hello experts,
I have to validate a xml against schema.I have used some java code & xerces jar ro solve this problem.It's working fine.But it's showing only first error & it's coming out.I want to list all the errors.Please help me by guiding how to achieve it.Right now the code I am using is easy enough , I just need to provide the schema file & xml file.But if I have to find out all the errors , do I need to parse it line by line?Please help.Thanx tonn in advance.Ya . this is possible if you have heard about XSLT transformation .
File xmlFile = new File("XmlFileToTransform");
File xsltFile = new File("U R SCHEMA");
XMLReader reader = XMLReaderFactory.createXMLReader();
reader.setEntityResolver(new NullResolver());
FileOutputStream fos = new FileOutputStream(out);
Writer out = new BufferedWriter(new OutputStreamWriter(fos,
"UTF8"));
SAXSource xmlSource = new SAXSource(reader, new InputSource(
xmlFile.toURI().getRawPath()));
Source xsltSource = new StreamSource(xsltFile);
Result result = new StreamResult(out);
// create an instance of TransformerFactory
TransformerFactory transFact = TransformerFactory.newInstance();
Transformer trans = transFact.newTransformer(xsltSource);
trans.transform(xmlSource, result); // this will transform xml according to u r xslt file
out.close();see if this is helpful for u ! -
This is my xml code file.
<?xml version="1.0" encoding="iso-8859-1"?>
<contato_lista xmlns="includes:net_schema.xml">
<contato ID="001">
<nome>Andr�teste</nome>
<ip>192.168.25.242</ip>
</contato>
<contato ID="002">
<nome>Gustavo</nome>
<ip>192.168.25.72</ip>
</contato>
</contato_lista>
I am trying to get the text from the tags <nome> and <ip> from the 2 tags <contato>. And this is the method I am using. I am trying to get the text in the tags <nome> in the array contatos_lista[], everytime I run the program I get empty. Please I need help. I am desperade.
Thanks in advace.
public String[] importaContatos() {
String contatos_lista[] = new String[ 12 ];
contatos_lista[0] = "N�o h� contatos";
Node nodeContato;
NodeList contatoChild;
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
try {
File contatos = new File("D:/userdir/mycodes/NetMessage/contatos.xml");
DocumentBuilder builder = factory.newDocumentBuilder();
document = builder.parse( contatos );
}catch (SAXParseException spe) {
}catch (ParserConfigurationException e){
}catch(SAXException e){
}catch (IOException e){
Node nodeElement = document.getDocumentElement();
Node nodeChild = nodeElement.getParentNode();
Node nodeContatoLista = nodeChild;
NodeList contatoListaChild = nodeContatoLista.getChildNodes();
//JOptionPane.showMessageDialog(null , contatos_lista[0]);
for (int i = 0; i <= contatoListaChild.getLength(); i++){
nodeContato = nodeContatoLista.getFirstChild();
nodeContato = nodeChild.getNextSibling();
contatoChild = nodeContato.getChildNodes();
int count = 0;
for (int y = 0; y < contatoChild.getLength(); y++){
contatos_lista[count] = contatoChild.item(y).getNodeValue();
count++;
return contatos_lista;
}This is my xml code file.
<?xml version="1.0" encoding="iso-8859-1"?>
<contato_lista xmlns="includes:net_schema.xml">
<contato ID="001">
<nome>Andr�teste</nome>
<ip>192.168.25.242</ip>
</contato>
<contato ID="002">
<nome>Gustavo</nome>
<ip>192.168.25.72</ip>
</contato>
</contato_lista>
I am trying to get the text from the tags <nome> and
<ip> from the 2 tags <contato>. And this is the method
I am using. I am trying to get the text in the tags
<nome> in the array contatos_lista[], everytime I run
the program I get empty. Please I need help. I am
desperade.
Thanks in advace.
public String[] importaContatos() {
String contatos_lista[] = new String[ 12 ];
contatos_lista[0] = "N�o h� contatos";
Node nodeContato;
NodeList contatoChild;
DocumentBuilderFactory factory =
ctory = DocumentBuilderFactory.newInstance();
try {
File contatos = new
tatos = new
File("D:/userdir/mycodes/NetMessage/contatos.xml");
DocumentBuilder builder =
r builder = factory.newDocumentBuilder();
document = builder.parse( contatos );
}catch (SAXParseException spe) {
}catch (ParserConfigurationException e){
}catch(SAXException e){
}catch (IOException e){
Node nodeElement =
ement = document.getDocumentElement();
Node nodeChild = nodeElement.getParentNode();
Node nodeContatoLista = nodeChild;
NodeList contatoListaChild =
Child = nodeContatoLista.getChildNodes();
//JOptionPane.showMessageDialog(null ,
(null , contatos_lista[0]);
for (int i = 0; i <=
0; i <= contatoListaChild.getLength(); i++){
nodeContato =
deContato = nodeContatoLista.getFirstChild();
nodeContato = nodeChild.getNextSibling();
contatoChild =
tatoChild = nodeContato.getChildNodes();
int count = 0;
for (int y = 0; y <
y = 0; y < contatoChild.getLength(); y++){
contatos_lista[count] =
atos_lista[count] =
contatoChild.item(y).getNodeValue();
count++;
return contatos_lista;
}This line appears to be wrong to me
Node nodeChild = nodeElement.getParentNode();
Why are you doing that?
Anyway it would be easier just to do
ement = document.getDocumentElement();
NodeList contatoListaChild = ement.getElementsByTagName("contato");
for (int i = 0; i <= contatoListaChild.getLength(); i++){
Element contato = contatoListaChild.item(i); -
Need Help with XML Parsing on to DataGrid
Hi
I have retrivied this Data into my HttpService Result function .
<list>
<User>
<ename>JAMES</ename>
<empno>7900</empno>
</User>
<User>
<ename>FORD</ename>
<empno>7902</empno>
</User>
<User>
<ename>MILLER</ename>
<empno>7934</empno>
</User>
</list>
[Bindable]
private var xmldata:XML;
private function resultHandler(event:ResultEvent):void{
xmldata=event.result as XML;
<mx:DataGrid x="50" y="23" width="469" height="265" dataProvider="{xmldata.User}">
<mx:columns>
<mx:DataGridColumn headerText="Type" dataField="ename"/>
<mx:DataGridColumn headerText="Sales" dataField="empno"/>
</mx:columns>
</mx:DataGrid>
But this is not displaying any data into DataGrid .
Could anybody please help me .
Thanks .after you get data assign the data to the data grid
datagrid.dataprovider = xml;
and also do datagrid.invalidateList() after u get the data if the above line does not help
also see if the data provider is not null if nothing helped. -
DOM XML Parsing...
Hi All,
I need a sample code to parse the following xml...
<EMPLOYEE>
<RECORD>
<EMPID>12</EMPID>
<EMPNAME>ROCK</EMPNAME>
</RECORD>
<RECORD>
<EMPID>13</EMPID>
<EMPNAME>PETER</EMPNAME>
</RECORD>
<RECORD>
<EMPID>14</EMPID>
<EMPNAME>JOHN</EMPNAME>
</RECORD>
</EMPLOYEE>
I need a generic parser code, to parse the records and populate into employee table.
Thanks in Advance....
Regards,
SimbhuOne way is using supplied XML function
SQL> create table my_employee ( empid number primary key, empname varchar2(50));
Table created.
SQL> insert into my_employee
2 select extractValue(column_value, '/RECORD/EMPID') EMPID, extractValue(col
umn_value, '/RECORD/EMPNAME') EMPNAME from TABLE(
3 XMLSEQUENCE(
4 EXTRACT(
5 XMLTYPE(
6 '<EMPLOYEE> <RECORD> <EMPID>12</EMPID> <EMPNAME>
ROCK</EMPNAME></RECORD><RECORD><EMPID>13</EMPID><EMPNAME>PETER</EMPNAME></RECORD
<RECORD><EMPID>14</EMPID><EMPNAME>JOHN</EMPNAME></RECORD></EMPLOYEE>'7 ),
8 '/EMPLOYEE/RECORD'
9 )
10 )
11 ) tb;
3 rows created.
SQL> select * from my_employee;
EMPID EMPNAME
12 ROCK
13 PETER
14 JOHN
Better way is if you have XSD, register it into Oracle. Oracle will create underlying tables.
Best Regards
Erturk -
Help on XML parsing into rdbms table
Hi,
I have posted here three different record, is that possible any of you give me some idea(out line) structure to get into some kind of oracle table format.
There few number of repeating blocks, which gives all the time the sequence error or if commented out may not be working.
I need to extract all values, but all I am expecting as a great help is some outline (atleast one column(s)) to each repeating block, then I will fill other columns
DB Version
BANNER
Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
PL/SQL Release 11.1.0.7.0 - Production
CORE 11.1.0.7.0 Production
TNS for Linux: Version 11.1.0.7.0 - Production
NLSRTL Version 11.1.0.7.0 - Production
record 1
<?xml version="1.0" encoding="WINDOWS-1252"?>
<item title="496S00017" maxattempts="0">
<itemmetadata>
<object_id>_140939_1</object_id>
<asitype>Item</asitype>
<extracred>false</extracred>
<absolutea>10.0</absolutea>
<tornotes>a
</tornotes>
</itemmetadata>
<presentation>
<flow class="Block">
<flow class="QUESTION_BLOCK">
<flow class="FORMATTED_TEXT_BLOCK">
<material>
<mat_extension>
<mat_formattedtext type="HTML">What general <br /><br />(Select all that apply)<br /> </mat_formattedtext>
</mat_extension>
</material>
</flow>
</flow>
<flow class="RESPONSE_BLOCK">
<response_lid ident="response" rcardinality="Multiple" rtiming="No">
<render_choice shuffle="No" minnumber="0" maxnumber="0">
<flow_label class="Block">
<response_label ident="d43d7c6bc8bb4b2fbed08fff7d99c149" shuffle="Yes" rarea="Ellipse" rrange="Exact">
<flow_mat class="FORMATTED_TEXT_BLOCK">
<material>
<mat_extension>
<mat_formattedtext type="HTML">Ensure a .<br /> </mat_formattedtext>
</mat_extension>
</material>
</flow_mat>
</response_label>
</flow_label>
<flow_label class="Block">
<response_label ident="9bc429d7a4ff44b984d5e0fc5ba75d30" shuffle="Yes" rarea="Ellipse" rrange="Exact">
<flow_mat class="FORMATTED_TEXT_BLOCK">
<material>
<mat_extension>
<mat_formattedtext type="HTML">Wear .<br /> </mat_formattedtext>
</mat_extension>
</material>
</flow_mat>
</response_label>
</flow_label>
<flow_label class="Block">
<response_label ident="76e38c48c7464e5aa76de83e575e15c4" shuffle="Yes" rarea="Ellipse" rrange="Exact">
<flow_mat class="FORMATTED_TEXT_BLOCK">
<material>
<mat_extension>
<mat_formattedtext type="HTML">Maintain .<br /> </mat_formattedtext>
</mat_extension>
</material>
</flow_mat>
</response_label>
</flow_label>
<flow_label class="Block">
<response_label ident="fbbd2d296e3d47239dd23d1371657381" shuffle="Yes" rarea="Ellipse" rrange="Exact">
<flow_mat class="FORMATTED_TEXT_BLOCK">
<material>
<mat_extension>
<mat_formattedtext type="HTML">Do .<br /> </mat_formattedtext>
</mat_extension>
</material>
</flow_mat>
</response_label>
</flow_label>
<flow_label class="Block">
<response_label ident="bcde31a42b5241bb86e52ecf5d2736d9" shuffle="Yes" rarea="Ellipse" rrange="Exact">
<flow_mat class="FORMATTED_TEXT_BLOCK">
<material>
<mat_extension>
<mat_formattedtext type="HTML">Avoid .<br /> </mat_formattedtext>
</mat_extension>
</material>
</flow_mat>
</response_label>
</flow_label>
</render_choice>
</response_lid>
</flow>
</flow>
</presentation>
<resprocessing scoremodel="SumOfScores">
<outcomes>
<decvar varname="SCORE" vartype="Decimal" defaultval="0.0" minvalue="0.0" maxvalue="10.0"/>
</outcomes>
<respcondition title="correct">
<conditionvar>
<and>
<varequal respident="response" case="No">d43d7c6bc8bb4b2fbed08fff7d99c149</varequal>
<not>
<varequal respident="response" case="No">9bc429d7a4ff44b984d5e0fc5ba75d30</varequal>
</not>
<varequal respident="response" case="No">76e38c48c7464e5aa76de83e575e15c4</varequal>
<varequal respident="response" case="No">fbbd2d296e3d47239dd23d1371657381</varequal>
<not>
<varequal respident="response" case="No">bcde31a42b5241bb86e52ecf5d2736d9</varequal>
</not>
</and>
</conditionvar>
<setvar variablename="SCORE" action="Set">SCORE.max</setvar>
<displayfeedback linkrefid="correct" feedbacktype="Response"/>
</respcondition>
<respcondition title="incorrect">
<conditionvar>
<other/>
</conditionvar>
<setvar variablename="SCORE" action="Set">0.0</setvar>
<displayfeedback linkrefid="incorrect" feedbacktype="Response"/>
</respcondition>
</resprocessing>
<itemfeedback ident="correct" view="All">
<flow_mat class="Block">
<flow_mat class="FORMATTED_TEXT_BLOCK">
<material>
<mat_extension>
<mat_formattedtext type="HTML"/>
</mat_extension>
</material>
</flow_mat>
</flow_mat>
</itemfeedback>
<itemfeedback ident="incorrect" view="All">
<flow_mat class="Block">
<flow_mat class="FORMATTED_TEXT_BLOCK">
<material>
<mat_extension>
<mat_formattedtext type="HTML"/>
</mat_extension>
</material>
</flow_mat>
</flow_mat>
</itemfeedback>
<itemfeedback ident="d43d7c6bc8bb4b2fbed08fff7d99c149" view="All">
<solution view="All" feedbackstyle="Complete">
<solutionmaterial>
<flow_mat class="Block">
<flow_mat class="FORMATTED_TEXT_BLOCK">
<material>
<mat_extension>
<mat_formattedtext type="HTML"/>
</mat_extension>
</material>
</flow_mat>
</flow_mat>
</solutionmaterial>
</solution>
</itemfeedback>
<itemfeedback ident="9bc429d7a4ff44b984d5e0fc5ba75d30" view="All">
<solution view="All" feedbackstyle="Complete">
<solutionmaterial>
<flow_mat class="Block">
<flow_mat class="FORMATTED_TEXT_BLOCK">
<material>
<mat_extension>
<mat_formattedtext type="HTML"/>
</mat_extension>
</material>
</flow_mat>
</flow_mat>
</solutionmaterial>
</solution>
</itemfeedback>
<itemfeedback ident="76e38c48c7464e5aa76de83e575e15c4" view="All">
<solution view="All" feedbackstyle="Complete">
<solutionmaterial>
<flow_mat class="Block">
<flow_mat class="FORMATTED_TEXT_BLOCK">
<material>
<mat_extension>
<mat_formattedtext type="HTML"/>
</mat_extension>
</material>
</flow_mat>
</flow_mat>
</solutionmaterial>
</solution>
</itemfeedback>
<itemfeedback ident="fbbd2d296e3d47239dd23d1371657381" view="All">
<solution view="All" feedbackstyle="Complete">
<solutionmaterial>
<flow_mat class="Block">
<flow_mat class="FORMATTED_TEXT_BLOCK">
<material>
<mat_extension>
<mat_formattedtext type="HTML"/>
</mat_extension>
</material>
</flow_mat>
</flow_mat>
</solutionmaterial>
</solution>
</itemfeedback>
<itemfeedback ident="bcde31a42b5241bb86e52ecf5d2736d9" view="All">
<solution view="All" feedbackstyle="Complete">
<solutionmaterial>
<flow_mat class="Block">
<flow_mat class="FORMATTED_TEXT_BLOCK">
<material>
<mat_extension>
<mat_formattedtext type="HTML"/>
</mat_extension>
</material>
</flow_mat>
</flow_mat>
</solutionmaterial>
</solution>
</itemfeedback>
</item>
record 2
<?xml version="1.0" encoding="WINDOWS-1252"?>
<item title="496S00038" maxattempts="0">
<itemmetadata>
<object_id>_155451_1</object_id>
<asitype>Item</asitype>
<bbmd_questiontype>Multiple Choice</bbmd_questiontype>
<extracred>false</extracred>
<absolutea>10.0</absolutea>
<tornotes>Z
</tornotes>
</itemmetadata>
<presentation>
<flow class="Block">
<flow class="QUESTION_BLOCK">
<flow class="FORMATTED_TEXT_BLOCK">
<material>
<mat_extension>
<mat_formattedtext type="HTML"><p>This next choice.</p><p><br />Your landmark. </p></mat_formattedtext>
</mat_extension>
</material>
</flow>
</flow>
<flow class="RESPONSE_BLOCK">
<response_lid ident="response" rcardinality="Single" rtiming="No">
<render_choice shuffle="No" minnumber="0" maxnumber="0">
<flow_label class="Block">
<response_label ident="0c72cf2736f54d9ab6da93555f023339" shuffle="Yes" rarea="Ellipse" rrange="Exact">
<flow_mat class="FORMATTED_TEXT_BLOCK">
<material>
<mat_extension>
<mat_formattedtext type="HTML"><div><embed src= "@[email protected]@X@bbcswebdav/xid-1220031_1" type= "application/x-shockwave-flash"> </div></mat_formattedtext>
</mat_extension>
</material>
</flow_mat>
</response_label>
</flow_label>
<flow_label class="Block">
<response_label ident="f27a2e848a694b1c920bf94d1e66316a" shuffle="Yes" rarea="Ellipse" rrange="Exact">
<flow_mat class="FORMATTED_TEXT_BLOCK">
<material>
<mat_extension>
<mat_formattedtext type="HTML"><div><embed src= "@[email protected]@X@bbcswebdav/xid-1220032_1" type= "application/x-shockwave-flash"> </div></mat_formattedtext>
</mat_extension>
</material>
</flow_mat>
</response_label>
</flow_label>
<flow_label class="Block">
<response_label ident="49a1aabd4b1e4305b38a43c50d41ba41" shuffle="Yes" rarea="Ellipse" rrange="Exact">
<flow_mat class="FORMATTED_TEXT_BLOCK">
<material>
<mat_extension>
<mat_formattedtext type="HTML"><div><embed src= "@[email protected]@X@bbcswebdav/xid-1220033_1" type= "application/x-shockwave-flash"> </div></mat_formattedtext>
</mat_extension>
</material>
</flow_mat>
</response_label>
</flow_label>
<flow_label class="Block">
<response_label ident="a5ff047407d741ed9ad68790332afcc9" shuffle="Yes" rarea="Ellipse" rrange="Exact">
<flow_mat class="FORMATTED_TEXT_BLOCK">
<material>
<mat_extension>
<mat_formattedtext type="HTML"><div><embed src= "@[email protected]@X@bbcswebdav/xid-1220034_1" type= "application/x-shockwave-flash"> </div></mat_formattedtext>
</mat_extension>
</material>
</flow_mat>
</response_label>
</flow_label>
</render_choice>
</response_lid>
</flow>
</flow>
</presentation>
<resprocessing scoremodel="SumOfScores">
<outcomes>
<decvar varname="SCORE" vartype="Decimal" defaultval="0.0" minvalue="0.0" maxvalue="10.0"/>
</outcomes>
<respcondition title="correct">
<conditionvar>
<varequal respident="response" case="No">49a1aabd4b1e4305b38a43c50d41ba41</varequal>
</conditionvar>
<setvar variablename="SCORE" action="Set">SCORE.max</setvar>
<displayfeedback linkrefid="correct" feedbacktype="Response"/>
</respcondition>
<respcondition title="incorrect">
<conditionvar>
<other/>
</conditionvar>
<setvar variablename="SCORE" action="Set">0.0</setvar>
<displayfeedback linkrefid="incorrect" feedbacktype="Response"/>
</respcondition>
<respcondition>
<conditionvar>
<varequal respident="0c72cf2736f54d9ab6da93555f023339" case="No"/>
</conditionvar>
<setvar variablename="SCORE" action="Set">0</setvar>
<displayfeedback linkrefid="0c72cf2736f54d9ab6da93555f023339" feedbacktype="Response"/>
</respcondition>
<respcondition>
<conditionvar>
<varequal respident="f27a2e848a694b1c920bf94d1e66316a" case="No"/>
</conditionvar>
<setvar variablename="SCORE" action="Set">0</setvar>
<displayfeedback linkrefid="f27a2e848a694b1c920bf94d1e66316a" feedbacktype="Response"/>
</respcondition>
<respcondition>
<conditionvar>
<varequal respident="49a1aabd4b1e4305b38a43c50d41ba41" case="No"/>
</conditionvar>
<setvar variablename="SCORE" action="Set">10</setvar>
<displayfeedback linkrefid="49a1aabd4b1e4305b38a43c50d41ba41" feedbacktype="Response"/>
</respcondition>
<respcondition>
<conditionvar>
<varequal respident="a5ff047407d741ed9ad68790332afcc9" case="No"/>
</conditionvar>
<setvar variablename="SCORE" action="Set">0</setvar>
<displayfeedback linkrefid="a5ff047407d741ed9ad68790332afcc9" feedbacktype="Response"/>
</respcondition>
</resprocessing>
<itemfeedback ident="correct" view="All">
<flow_mat class="Block">
<flow_mat class="FORMATTED_TEXT_BLOCK">
<material>
<mat_extension>
<mat_formattedtext type="HTML"/>
</mat_extension>
</material>
</flow_mat>
</flow_mat>
</itemfeedback>
<itemfeedback ident="incorrect" view="All">
<flow_mat class="Block">
<flow_mat class="FORMATTED_TEXT_BLOCK">
<material>
<mat_extension>
<mat_formattedtext type="HTML"/>
</mat_extension>
</material>
</flow_mat>
</flow_mat>
</itemfeedback>
<itemfeedback ident="0c72cf2736f54d9ab6da93555f023339" view="All">
<solution view="All" feedbackstyle="Complete">
<solutionmaterial>
<flow_mat class="Block">
<flow_mat class="FORMATTED_TEXT_BLOCK">
<material>
<mat_extension>
<mat_formattedtext type="HTML"/>
</mat_extension>
</material>
</flow_mat>
</flow_mat>
</solutionmaterial>
</solution>
</itemfeedback>
<itemfeedback ident="f27a2e848a694b1c920bf94d1e66316a" view="All">
<solution view="All" feedbackstyle="Complete">
<solutionmaterial>
<flow_mat class="Block">
<flow_mat class="FORMATTED_TEXT_BLOCK">
<material>
<mat_extension>
<mat_formattedtext type="HTML"/>
</mat_extension>
</material>
</flow_mat>
</flow_mat>
</solutionmaterial>
</solution>
</itemfeedback>
<itemfeedback ident="49a1aabd4b1e4305b38a43c50d41ba41" view="All">
<solution view="All" feedbackstyle="Complete">
<solutionmaterial>
<flow_mat class="Block">
<flow_mat class="FORMATTED_TEXT_BLOCK">
<material>
<mat_extension>
<mat_formattedtext type="HTML"/>
</mat_extension>
</material>
</flow_mat>
</flow_mat>
</solutionmaterial>
</solution>
</itemfeedback>
<itemfeedback ident="a5ff047407d741ed9ad68790332afcc9" view="All">
<solution view="All" feedbackstyle="Complete">
<solutionmaterial>
<flow_mat class="Block">
<flow_mat class="FORMATTED_TEXT_BLOCK">
<material>
<mat_extension>
<mat_formattedtext type="HTML"/>
</mat_extension>
</material>
</flow_mat>
</flow_mat>
</solutionmaterial>
</solution>
</itemfeedback>
</item>
record 3
<?xml version="1.0" encoding="UTF-8"?>
<item title="496S00070" maxattempts="0">
<itemmetadata>
<object_id>37041578</object_id>
<asitype>Item</asitype>
<qmd_instructornotes>IS
</qmd_instructornotes>
</itemmetadata>
<presentation>
<flow class="Block">
<flow class="QUESTION_BLOCK">
<flow class="FORMATTED_TEXT_BLOCK">
<material>
<mat_extension>
<mat_formattedtext type="HTML"><font size="2">Base </mat_formattedtext>
</mat_extension>
</material>
</flow>
</flow>
<flow class="RESPONSE_BLOCK">
<response_lid ident="response" rcardinality="Single" rtiming="No">
<render_choice shuffle="No" minnumber="0" maxnumber="0">
<flow_label class="Block">
<response_label ident="2513bfab92b14dce82f014fdb667730a" shuffle="Yes" rarea="Ellipse" rrange="Exact">
<flow_mat class="FORMATTED_TEXT_BLOCK">
<material>
<mat_extension>
<mat_formattedtext type="HTML"><!mso-bidi-theme-font:minor-bidi;} </style> <![endif]--> </mat_formattedtext>
</mat_extension>
</material>
</flow_mat>
</response_label>
</flow_label>
<flow_label class="Block">
<response_label ident="7498293ce4ef4891984bcdbad2bc8c1d" shuffle="Yes" rarea="Ellipse" rrange="Exact">
<flow_mat class="FORMATTED_TEXT_BLOCK">
<material>
<mat_extension>
<mat_formattedtext type="HTML"><!mso-bidi-theme-font:minor-bidi;} </style> <![endif]-->
</mat_formattedtext>
</mat_extension>
</material>
</flow_mat>
</response_label>
</flow_label>
<flow_label class="Block">
<response_label ident="c5fb333685144ab6b35848998667239d" shuffle="Yes" rarea="Ellipse" rrange="Exact">
<flow_mat class="FORMATTED_TEXT_BLOCK">
<material>
<mat_extension>
<mat_formattedtext type="HTML"><!mso-bidi-theme-font:minor-bidi;} </style> <![endif]--></mat_formattedtext>
</mat_extension>
</material>
</flow_mat>
</response_label>
</flow_label>
<flow_label class="Block">
<response_label ident="419fa8003e4d4d128e664f0d9c9d106e" shuffle="Yes" rarea="Ellipse" rrange="Exact">
<flow_mat class="FORMATTED_TEXT_BLOCK">
<material>
<mat_extension>
<mat_formattedtext type="HTML"><!mso-bidi-theme-font:minor-bidi;} </style> <![endif]--></mat_formattedtext>
</mat_extension>
</material>
</flow_mat>
</response_label>
</flow_label>
</render_choice>
</response_lid>
</flow>
</flow>
</presentation>
<resprocessing scoremodel="SumOfScores">
<outcomes>
<decvar varname="SCORE" vartype="Decimal" defaultval="0" minvalue="0.0" maxvalue="10.0"/>
</outcomes>
<respcondition title="correct">
<conditionvar>
<varequal respident="response" case="No">7498293ce4ef4891984bcdbad2bc8c1d</varequal>
</conditionvar>
<setvar variablename="SCORE" action="Set">SCORE.max</setvar>
<displayfeedback linkrefid="correct" feedbacktype="Response"/>
</respcondition>
<respcondition title="incorrect">
<conditionvar>
<other/>
</conditionvar>
<setvar variablename="SCORE" action="Set">0.0</setvar>
<displayfeedback linkrefid="incorrect" feedbacktype="Response"/>
</respcondition>
<respcondition>
<conditionvar>
<varequal respident="2513bfab92b14dce82f014fdb667730a" case="No"/>
</conditionvar>
<setvar variablename="SCORE" action="Set">0</setvar>
<displayfeedback linkrefid="2513bfab92b14dce82f014fdb667730a" feedbacktype="Response"/>
</respcondition>
<respcondition>
<conditionvar>
<varequal respident="7498293ce4ef4891984bcdbad2bc8c1d" case="No"/>
</conditionvar>
<setvar variablename="SCORE" action="Set">10</setvar>
<displayfeedback linkrefid="7498293ce4ef4891984bcdbad2bc8c1d" feedbacktype="Response"/>
</respcondition>
<respcondition>
<conditionvar>
<varequal respident="c5fb333685144ab6b35848998667239d" case="No"/>
</conditionvar>
<setvar variablename="SCORE" action="Set">0</setvar>
<displayfeedback linkrefid="c5fb333685144ab6b35848998667239d" feedbacktype="Response"/>
</respcondition>
<respcondition>
<conditionvar>
<varequal respident="419fa8003e4d4d128e664f0d9c9d106e" case="No"/>
</conditionvar>
<setvar variablename="SCORE" action="Set">0</setvar>
<displayfeedback linkrefid="419fa8003e4d4d128e664f0d9c9d106e" feedbacktype="Response"/>
</respcondition>
</resprocessing>
<itemfeedback ident="correct" view="All">
<flow_mat class="Block">
<flow_mat class="FORMATTED_TEXT_BLOCK">
<material>
<mat_extension>
<mat_formattedtext type="HTML"/>
</mat_extension>
</material>
</flow_mat>
</flow_mat>
</itemfeedback>
<itemfeedback ident="incorrect" view="All">
<flow_mat class="Block">
<flow_mat class="FORMATTED_TEXT_BLOCK">
<material>
<mat_extension>
<mat_formattedtext type="HTML"/>
</mat_extension>
</material>
</flow_mat>
</flow_mat>
</itemfeedback>
<itemfeedback ident="2513bfab92b14dce82f014fdb667730a" view="All">
<solution view="All" feedbackstyle="Complete">
<solutionmaterial>
<flow_mat class="Block">
<flow_mat class="FORMATTED_TEXT_BLOCK">
<material>
<mat_extension>
<mat_formattedtext type="HTML"/>
</mat_extension>
</material>
</flow_mat>
</flow_mat>
</solutionmaterial>
</solution>
</itemfeedback>
<itemfeedback ident="7498293ce4ef4891984bcdbad2bc8c1d" view="All">
<solution view="All" feedbackstyle="Complete">
<solutionmaterial>
<flow_mat class="Block">
<flow_mat class="FORMATTED_TEXT_BLOCK">
<material>
<mat_extension>
<mat_formattedtext type="HTML"/>
</mat_extension>
</material>
</flow_mat>
</flow_mat>
</solutionmaterial>
</solution>
</itemfeedback>
<itemfeedback ident="c5fb333685144ab6b35848998667239d" view="All">
<solution view="All" feedbackstyle="Complete">
<solutionmaterial>
<flow_mat class="Block">
<flow_mat class="FORMATTED_TEXT_BLOCK">
<material>
<mat_extension>
<mat_formattedtext type="HTML"/>
</mat_extension>
</material>
</flow_mat>
</flow_mat>
</solutionmaterial>
</solution>
</itemfeedback>
<itemfeedback ident="419fa8003e4d4d128e664f0d9c9d106e" view="All">
<solution view="All" feedbackstyle="Complete">
<solutionmaterial>
<flow_mat class="Block">
<flow_mat class="FORMATTED_TEXT_BLOCK">
<material>
<mat_extension>
<mat_formattedtext type="HTML"/>
</mat_extension>
</material>
</flow_mat>
</flow_mat>
</solutionmaterial>
</solution>
</itemfeedback>
</item>Any help would be greatly appreciated.
Thanks,Hi,
Yes, I have tried the same method. will be ok.
But I have got another some records on the same column as follows.
I have tried with another one xmltable with outer join(+), still not getting the actual data (null record from the original(main) table) and extra records from the new xmltable.
Is it possible to make one or union with xmltable also can we check the node either /Item or /section exists something like that
<?xml version="1.0" encoding="WINDOWS-1252"?>
<section>
<sectionmetadata>
<object_id>317832</object_id>
<asitype>Section</asitype>
<instructornotes/>
</sectionmetadata>
<selection_ordering>
<selection seltype="All">
<selection_number>1</selection_number>
<or_selection>
<selection_metadata mdoperator="EQ" mdname="questionid">_155451_1</selection_metadata>
</or_selection>
</selection>
<selection seltype="All">
<or_selection>
<selection_param pname="singleLink">true</selection_param>
</or_selection>
</selection>
</selection_ordering>
</section>Thanks, -
Please help!XML PARSING!
I wanted to parse the following XML data using NanoXML.I succeeded in the <item></item> part.But when I added the "items" in the channel tag, I am not able to read anything and I am getting an exception error!
Can anyone tell me why this is happening?
<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
//Comment==>Cant parse these items from here
<title>BBC News - News front page</title>
<link>http://www.bbc.co.uk/news/video_and_audio/news_front_page/</link>
<description>The latest stories from the News front page section of the BBC News web site.</description>
<language>en-gb</language>
<lastBuildDate></lastBuildDate>
<copyright>Copyright: (C) British Broadcasting Corporation</copyright>
//Comment==>Cant parse these items till here
<item>
<title>Spain Winner Of FIFA World Cup 2010</title>
<link>http://www.fifa.com/worldfootball/news/newsid=1862843.html</link>
<description>It is World Cup 2010 Day 27 and Spain beat Netherlands 1 to 0 during extra time emerging as the winner of FIFA World Cup 2010! It is the first time Spain has won the World Cup.</description>
</item>
<item>
<title>Dutch still proud despite the pain</title>
<link>http://www.fifa.com/worldfootball/news/newsid=1274347.html</link>
<description>FIFA World Cup runners-up Netherlands will receive the acclaim of their countrymen on a canal tour of Amsterdam on Saturday and they have every reason to feel proud.</description>
</item>
<item>
<title>The Old Continent gears up</title>
<link>http://www.fifa.com/worldfootball/news/newsid=1234567.html</link>
<description>FIFA.com takes a look at the European continent, as many countries count down to the start of their newseasons and international coaches look to wipe the slate clean.</description>
</item>
</channel>
</rss>I was getting null Error!
This is the code that I wrote below:
try{
URL url = new URL("http://localhost:8080/examples/rss.xml");
URLConnection connection = url.openConnection();
WriteLog.logString("Success!Opening the file URL ");
this.parser = XMLParserFactory.createDefaultXMLParser();
IXMLReader reader = new StdXMLReader(connection.getInputStream());
this.parser.setReader(reader);
IXMLElement xml = (IXMLElement)this.parser.parse();
this.itemDetails = xml.getFirstChildNamed("channel");
this.items = this.itemDetails.enumerateChildren();
while (this.items.hasMoreElements())
final IXMLElement item = (IXMLElement) this.items.nextElement();
this.Title=item.getFirstChildNamed("title").getContent();
this.Link=item.getFirstChildNamed("link").getContent();
this.Desc=item.getFirstChildNamed("description").getContent();
catch (Exception excep)
WriteLog.logString("Error! from Exception(IN CATALOGPARSER)"+excep.getMessage());
excep.printStackTrace();
}Edited by: whityjames on Jul 20, 2010 1:14 AM -
Pleasee Help , Urgent , XML Parsing
We should upload Sales Order XML File into OA Tables everyday .
As I am very new to XML I request to give complete sample code ( giving just the logic needs time to understand, very urgent..)
The current XML File can have mutilpe one sales order and each sales order can have many lines .Each line can have multiple taxes.
Pls give the sample Code which you think is the best approach.
I have used xpath(may not be right)
I want to insert Parent Node / Child Node / Grand Child Done as one set of data.
I used Xpath syntax , when I give the Parent node path in for loop, it inserts all parent nodes data at one time into the table , similarly all child nodes at one time .
So I am unable to link grand child record with child record and parent record.
To be specific , I am unable to trace these are the tax records for this line from this order.
I have used xpath. I have loaded the xml file into table with clob variable
l_OrderRequest_nodelist := xslprocessor.selectNodes(xmldom.makeNode(l_doc), '/Recordset');
FOR rec IN 0 .. xmldom.getlength(l_OrderRequest_nodelist) -1 loop l_OrderRequest_node := xmldom.item(l_OrderRequest_nodelist,
rec);
end loop;
we are not validating Sales order XML File with DTD or XSD .
Please give sample code for parent / child /grandchild .
Below is the sample file.
- <Recordset>
- <Header dueDate="2007-01-17T16:09:05" orderDate="2004-01-17" orderID="0009" transactionID="1389" type="new">
<KeyIndex>2</KeyIndex>
- <BillTo>
- <Address addressID="5619" isoCountryCode="US">
<Name>fMat</Name>
- <PostalAddress name="default">
<Street>34545</Street>
<City>dfgfg</City>
<State>AZ</State>
<PostalCode>85086-1693</PostalCode>
<County>Maricopa</County>
<Country>US</Country>
</PostalAddress>
<Email name="default">[email protected]</Email>
</Address>
</BillTo>
<PromotionCode />
- <SubTotal>
<Money currency="USD">32.49</Money>
</SubTotal>
- <Tax>
<Money currency="USD">2.32</Money>
<Description />
</Tax>
- <Shipping>
<Money currency="USD">8.95</Money>
<Description />
</Shipping>
</Header>
- <Detail lineNumber="1" quantity="1">
- <ItemDetail>
- <UnitPrice>
<Money currency="USD">29.99</Money>
</UnitPrice>
<ShortName>Little;reg; pxxxx® Learning System</ShortName>
</ItemDetail>
- <Tax>
<Money currency="USD">1.68</Money>
<Description />
- <TaxDetail category="sales">
- <TaxAmount>
<Money currency="USD">1.68</Money>
</TaxAmount>
<TaxLocation>AZ</TaxLocation>
</TaxDetail>
</Tax>
</Detail>
- <Detail lineNumber="2" quantity="1">
- <ItemDetail>
- <UnitPrice>
<Money currency="USD">29.99</Money>
</UnitPrice>
<ShortName>Little;reg; pxxxx® Learning System</ShortName>
</ItemDetail>
- <Tax>
<Money currency="USD">1.68</Money>
<Description />
- <TaxDetail category="sales">
- <TaxAmount>
<Money currency="USD">1.68</Money>
</TaxAmount>
<TaxLocation>AZ</TaxLocation>
</TaxDetail>
</Tax>
- <Tax>
<Money currency="USD">0.68</Money>
<Description />
- <TaxDetail category="sales">
- <TaxAmount>
<Money currency="USD">0.68</Money>
</TaxAmount>
<TaxLocation>DISTRICT</TaxLocation>
</TaxDetail>
</Tax>
</Detail>
</Recordset>
We are working on Oracle9i Enterprise Edition Release 9.2.0.6.0
Thanks in Adv
Kalvery urgent..Unfortunately, there are 36 other urgent requests before yours.
-
What is an XML Parser?
what is it's use?XI is middleware tool to send data from one location to another Basically a middleware tool.
and the data that XI send has some structre like
firstname:XYZ
Middlaename:ABX
lastname:PQR
All this data is represent as XML ( A way to store the data with tag here it is firstname last name
So XI uses XLL parser to parse this data
After parsing XI will come to know what is first name what is last name
So actually dat is represent as below in XML
<firstname>XYZ</firstname>
<Middlaename>ABX</Middlaename>
<lastnamePQR</lastname>
Above is the defination of data that XI is going to send
But in case data is wrong like
<Middlaename>ABX</Middlaename>
<firstname>XYZ</firstname>
<lastnamePQR</lastname>
Note Here ABX is first line
and this data is wrong
XI will find this wrong data with help of XML parser which has correct defination of the data
in case data is wrong parser will give error that data is wrong
Ps: If helful please give point -
Hello
I am getting java.lang.ClassCastException: oracle.xml.parser.v2.XMLText cannot be cast to org.w3c.dom.Element error. This code is in java which is present in java embedding.
The SOA is parsing the xml in java code using oracle.xml.parser.v2 . This wont be a problem if the SOA uses default w3c DOM parser. How do i force SOA to use w3c DOM parser.
Is there any thing i can do with class loading?
Kindly help.
Regards
SharatCan you paste your java code here ? I assume, you must have tried type-casting.
Maybe you are looking for
-
Can not test the web service in JDeveloper.
Hi there... I created an AppModule, added two custom methods, and generated a webservice for that. When I want to test the webservice I get the error "The Webservice Tester cannot be invoked because the WSDL document of the selected service cannot be
-
Robohelp 8 for Word: Problem with the Hotspot Topic
Hello Everybody: I'm a beginner user of Robohelp 8 for Word trial version. My project is a WinHelp 2000, imported from a version X3, and I have a problem with Robohelp when I save the value "Topic" of the property "Jump" of the tab what is called "Ge
-
When importing from a Word document placing the text in InDesign
When importing from a Word document placing the text in InDesign I can only see the text from the first page of the Word document. I have increased the number of pages in the Indesign document to more than what is in the Word document, still only tex
-
Problems installing cs3 production premium: database corrupt
I have a new computer with windows 8. On my old computer i used Premiere Pro CS3, now i tried Premiere Elements 11. I´m not happy with it so i deinstalled it and tried to install the CS3 production premium on the new Computer. When I insert the disk
-
I got my iphone on Dec 18, but it has no pictures or videos made after Jan 11. How can I get the more recent media on photo stream? TIA