Default namespace problem loading XML
I am loading multiple rss/xml file. For some of them I have to use namespace (atom feeds)
so I write this lines
var atom:Namespace = new Namespace("http://www.w3.org/2005/Atom");
var rssXML:XML = new XML();
default xml namespace = atom;
I test this in a outside my program but when I integrate this into my main program, it seem like it 's in conflict with all other xml
the problematic line is : default xml namespace = atom
How do I set a namespace only for one xml object ?????
I try diferent way, but didn't get nowhere
thanks
You can declare namespace per XML (but do so before you create XML object):
var namespace1:Namespace = new Namespace("http://www.w3.org/2005/Atom");
default xml namespace = namespace1;
var xml1:XML = <xml1 /> ;
trace(xml1.namespace());
var namespace2:Namespace = new Namespace();
default xml namespace = namespace2;
var xml2:XML = <xml2 /> ;
trace(xml2.namespace());
var namespace3:Namespace = new Namespace("http://www.example.com/schema");
default xml namespace = namespace3;
var xml3:XML = <xml3 /> ;
trace(xml3.namespace());
Trace
http://www.w3.org/2005/Atom
http://www.example.com/schema
Kenneth Kawamoto
http://www.materiaprima.co.uk/
Similar Messages
-
Suppress default namespace when extracting XML
How can I avoid that Oracle includes the target namespace of my schema as the default namespace when using the EXTRACT function?
E.g., select xmlelement("XmlData",
xmlagg(extract(tx.transmission, '/Transmission/Item')))
from transmissions tx
returns something like
<XmlData>
<Item xmlns="http://myschematargetnamespace" N="1">abcdef</Item>
<Item xmlns="http://myschematargetnamespace" N="2">abcdef</Item>
</XmlData>
Any ideas will be appreciated very much!
P.S. Can anybody tell me how I configure sqlplus to display the complete XML instead of only two lines?Well not sure about your XML issue yet but as for SQLplus, you need to set certain session parameters.
type
SQL> show all
for a list of possible options but for your case I think something like
SQL> set long 10000
will help (this means limit to 10000 chars).
'set linesize' and 'set pagesize' could help too, eg:
SQL> set linesize 500 (if your terminal will accept 500 cols)
SQL> set pagesize 90
etc...
Voila.
Sam. -
Problem loading XML in firefox
I have stumbled across a problem when loading XML via an
external address in Firefox.
If you specify a valid port like '
http://www.mydomain.com:80/test.xml'
in the path for XML.load(), then it will not work when viewing the
Flash in Firefox ,but It works correctly in IE and also in both
browsers when viewing the page locally (rather than from a server).
please help me to solve this problem
Thanks,
shanthi.HI Micke,
What is the code you are using to load the XML file ?
Regards
FlashJester Support Team
e. - [email protected]
w. -
http://www.flashjester.com
There is a very fine line between "hobby" and
"mental illness." -
Problem loading XML-file using SQL*Loader
Hello,
I'm using 9.2 and tryin to load a XML-file using SQL*Loader.
Loader control-file:
LOAD DATA
INFILE *
INTO TABLE BATCH_TABLE TRUNCATE
FIELDS TERMINATED BY ','
FILENAME char(255),
XML_DATA LOBFILE (FILENAME) TERMINATED BY EOF
BEGINDATA
data.xml
The BATCH_TABLE is created as:
CREATE TABLE BATCH_TABLE (
FILENAME VARCHAR2 (50),
XML_DATA SYS.XMLTYPE ) ;
And the data.xml contains the following lines:
<?xml version="2.0" encoding="UTF-8"?>
<!DOCTYPE databatch SYSTEM "databatch.dtd">
<batch>
<record>
<data>
<type>10</type>
</data>
</record>
<record>
<data>
<type>20</type>
</data>
</record>
</batch>
However, the sqlldr gives me an error:
Record 1: Rejected - Error on table BATCH_TABLE, column XML_DATA.
ORA-21700: object does not exist or is marked for delete
ORA-06512: at "SYS.XMLTYPE", line 0
ORA-06512: at line 1
If I remove the first two lines
"<?xml version="2.0" encoding="UTF-8"?>"
and
"<!DOCTYPE databatch SYSTEM "databatch.dtd">"
from data.xml everything works, and the contentents of data.xml are loaded into the table.
Any idea what I'm missing here? Likely the problem is with special characters.
Thanks in advance,I'm able to load your file just by removing the second line <!DOCTYPE databatch SYSTEM "databatch.dtd">. I dont have your dtd file, so skipped that line. Can you check if it's problem with ur DTD?
-
Problem loading XML, does thing in the wrong order.
Hi.
Im completely new to Flash/AS but I have some experience in
other programming languages. Im trying to load some external data
into my program via the attached code code (somewhat trimmes, but
the essentials are there)
What happens when i execute is this:
System1 loadSystemParameters() start
System1 loadSystemParameters() end
vis.fla: 0
System1 loadingComplete() start
Settings: 600
System1 loadingComplete( end)
So the code in the vis.fla is executed to the end before all
the data from settings.xml is read and I do not want that. I tried
searching and reading about this, but i cannot find the solution.
Is there some kind of flag you can set so that the system
won´t execute the code after the loadSystemParameters() before
all of the function is finished?
Thanksif you want to ensure something happens after your xml is
loaded, then trigger that something at the end of your complete
event handler.
so in your case, put the line:
trace("vis.fla: " + settings.getUpdateInterval());
at the end of your 'loadingComlete' handler - where you have
the line:
trace("System1 loadingComplete( end)"); -
Problem loading xml file with method
I am using this method to insert into table of xmltype
INSERT INTO xml_table
VALUES (XMLType(bfilename('XMLDIR','Test_xml.xml'),
nls_charset_id('AL32UTF8')));
xml gives error
<?xml version="1.0"?>
<!--<!DOCTYPE metadata SYSTEM "http://www.esri.com/metadata/esriprof80.dtd">-->
<metadata xml:lang="en"><Esri><MetaID>{299847D5-3DDC-4375-9469-607DC669DD6E}</MetaID><CreaDate>20091029</CreaDate><CreaTime>12035600</CreaTime><SyncOnce>FALSE</SyncOnce><SyncDate>20091029</SyncDate><SyncTime>12054400</SyncTime><ModDate>20091029</ModDate><ModTime>12054400</ModTime></Esri><idinfo><native Sync="TRUE">Microsoft Windows XP Version 5.1 (Build 2600) Service Pack 3; ESRI ArcCatalog 9.3.0.1770</native><descript><langdata Sync="TRUE">en</langdata><abstract>REQUIRED: A brief narrative summary of the data set.</abstract><purpose>REQUIRED: A summary of the intentions with which the data set was developed.</purpose>
but when i remove
<!--<!DOCTYPE metadata SYSTEM "http://www.esri.com/metadata/esriprof80.dtd">-->
it successfully executes and value is inserted of xmltype
Please suggest how i can insert the original xml without error.SQL> call UTL_HTTP.set_proxy('proxy.mydomain.com:8080', NULL);
Call completed.
SQL> declare
2 t_result
3 varchar2(4000);
4 begin
5 t_result := utl_http.request('http://www.fgdc.gov/metadata/fgdc-std-001-1998.dtd');
6 INSERT INTO xml_table
7 VALUES (XMLType(bfilename('XMLDIR','bas_street_segment.xml'),
8 nls_charset_id('AL32UTF8')));
9 end;
10 /
declare
ERROR at line 1:
ORA-29273: HTTP request failed
ORA-06512: at "SYS.UTL_HTTP", line 1577
ORA-12545: Connect failed because target host or object does not exist
ORA-06512: at line 5
It is giving error, we made a call to UTL_HTTP.set_proxy, it is ok.
Is there a way that i have dtd file, fgdc-std-001-1998.dtd on local machine and dtd gets validated when i
insert the xml without need for oracle to go to internet. I need both dtd validation with internet and from local path options.
Please help, thankx for timely help
sivaram -
XmlStreamWriter Default NameSpace
Hi,
I am trying use the xmlStreamWriter to create an xml file. But I am unable to write the default Namespace to the xml, Please can any one help me out?
i want my starting element to be <foo xmlns="http://org.xyz.abc">
import java.io.IOException;
import javax.xml.stream.XMLOutputFactory;
import javax.xml.stream.XMLStreamException;
import javax.xml.stream.XMLStreamWriter;
public static void main(String[] args) throws XMLStreamException, IOException {
XMLOutputFactory outputFactory = XMLOutputFactory.newInstance();
XMLStreamWriter xmlStreamWriter = outputFactory.createXMLStreamWriter(System.out);
xmlStreamWriter.writeStartDocument();
xmlStreamWriter.writeStartElement("foo");
xmlStreamWriter.writeDefaultNamespace("http://org.xyz.abc");
xmlStreamWriter.flush();
xmlStreamWriter.close();
}The above code gives "java.lang.IllegalArgumentException: illegal NCName: " Exception
I am using java 1.6 b09.The code you posted, once wrapped in a class declaration, doesn't throw that or any Exception. It ouputs<?xml version="1.0" ?><foo xmlns="http://org.xyz.abc"Try again.
db -
XPATH query behaves differently depending on presence of default namespace
I'm curious to know why an XPATH query seems to behave differently depending on whether the default namespace is present in the query.
My test case is as follows:
I use a table called xml_messages (id number, message xmltype) containing two rows - one where xmlns is specified and the other without.
1. Default namespace is specified:
<?xml version="1.0"?>
<Bereken xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" Fout="false" Identifier="21-4-2008 12:55:02" xmlns="http://schemas.myco.nl/services/IPP">
<Reglementen>
<Reglement Ind="21000005" dlnsts="6">
<Producten>
<Product Ind="1002" ogr="27098.00" bbr="27098.00" igl="65" elt="130" pgs="63758.00" slt="65" plt="0" reg="0" orf="0" />
<Product Ind="1032" ogr="0" bbr="0" igl="65" elt="130" pgs="63758.00" slt="65" plt="0" reg="0" orf="0" />
<Product Ind="1052" ogr="0" bbr="0" igl="65" elt="130" pgs="63758.00" slt="65" plt="0" reg="0" orf="0" />
<Product Ind="1062" ogr="0" bbr="2389.968" igl="65" elt="130" pgs="63758.00" slt="65" plt="0" reg="0" orf="0" />
<Product Ind="3002" ogr="18968.00" bbr="5690.4" igl="0" elt="130" pgs="63758.00" slt="65" plt="0" reg="0" orf="0" />
<Product Ind="3032" ogr="0" bbr="0" igl="0" elt="130" pgs="63758.00" slt="65" plt="0" reg="0" orf="0" />
<Product Ind="3502" ogr="2845.00" bbr="2845.00" igl="65" elt="130" pgs="63758.00" slt="65" plt="0" reg="0" orf="0" />
<Product Ind="5002" ogr="3794.00" bbr="3794.00" igl="0" elt="18" pgs="63758.00" slt="65" plt="0" reg="0" orf="0" />
<Product Ind="7502" ogr="0" bbr="0" igl="65" elt="130" pgs="63758.00" slt="65" plt="0" reg="0" orf="0" />
<Product Ind="7503" ogr="0" bbr="0" igl="65" elt="130" pgs="63758.00" slt="65" plt="0" reg="0" orf="0" />
<Product Ind="8101" ogr="0" bbr="0" igl="65" elt="65" pgs="63758.00" slt="65" plt="0" reg="0" orf="0" />
<Product Ind="7002" ogr="0" bbr="8724.6" igl="65" elt="130" pgs="0" slt="65" plt="0" reg="0" orf="0" />
<Product Ind="7202" ogr="0" bbr="0" igl="65" elt="130" pgs="0" slt="65" plt="0" reg="0" orf="0" />
<Product Ind="7302" ogr="0" bbr="0" igl="65" elt="130" pgs="0" slt="65" plt="0" reg="0" orf="0" />
</Producten>
</Reglement>
</Reglementen>
<Parameters gbtd="1957-12-18T00:00:00.0000000+01:00" gsl="Vrouw" pdr="2008-03-01T00:00:00.0000000+01:00" hdgs="40000" ptp="100" />
</Bereken>
2. No default namespace specified:
<?xml version="1.0"?>
<Bereken xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" Fout="false" Identifier="21-4-2008 12:55:02" >
<Reglementen>
<Reglement Ind="21000005" dlnsts="6">
<Producten>
<Product Ind="1002" ogr="27098.00" bbr="27098.00" igl="65" elt="130" pgs="63758.00" slt="65" plt="0" reg="0" orf="0" />
<Product Ind="1032" ogr="0" bbr="0" igl="65" elt="130" pgs="63758.00" slt="65" plt="0" reg="0" orf="0" />
<Product Ind="1052" ogr="0" bbr="0" igl="65" elt="130" pgs="63758.00" slt="65" plt="0" reg="0" orf="0" />
<Product Ind="1062" ogr="0" bbr="2389.968" igl="65" elt="130" pgs="63758.00" slt="65" plt="0" reg="0" orf="0" />
<Product Ind="3002" ogr="18968.00" bbr="5690.4" igl="0" elt="130" pgs="63758.00" slt="65" plt="0" reg="0" orf="0" />
<Product Ind="3032" ogr="0" bbr="0" igl="0" elt="130" pgs="63758.00" slt="65" plt="0" reg="0" orf="0" />
<Product Ind="3502" ogr="2845.00" bbr="2845.00" igl="65" elt="130" pgs="63758.00" slt="65" plt="0" reg="0" orf="0" />
<Product Ind="5002" ogr="3794.00" bbr="3794.00" igl="0" elt="18" pgs="63758.00" slt="65" plt="0" reg="0" orf="0" />
<Product Ind="7502" ogr="0" bbr="0" igl="65" elt="130" pgs="63758.00" slt="65" plt="0" reg="0" orf="0" />
<Product Ind="7503" ogr="0" bbr="0" igl="65" elt="130" pgs="63758.00" slt="65" plt="0" reg="0" orf="0" />
<Product Ind="8101" ogr="0" bbr="0" igl="65" elt="65" pgs="63758.00" slt="65" plt="0" reg="0" orf="0" />
<Product Ind="7002" ogr="0" bbr="8724.6" igl="65" elt="130" pgs="0" slt="65" plt="0" reg="0" orf="0" />
<Product Ind="7202" ogr="0" bbr="0" igl="65" elt="130" pgs="0" slt="65" plt="0" reg="0" orf="0" />
<Product Ind="7302" ogr="0" bbr="0" igl="65" elt="130" pgs="0" slt="65" plt="0" reg="0" orf="0" />
</Producten>
</Reglement>
</Reglementen>
<Parameters gbtd="1957-12-18T00:00:00.0000000+01:00" gsl="Vrouw" pdr="2008-03-01T00:00:00.0000000+01:00" hdgs="40000" ptp="100" />
</Bereken>
Next, I use the following two queries to get attribute values from the xml messages:
First query using xmlns:
select extractvalue(value(v),'/Product/@Ind' ) ind
, extractvalue(value(v),'/*/@Ind' ) ind2
from xml_messages f
, TABLE(XMLSequence( extract(f.message
,'/Bereken/Reglementen/Reglement/Producten/Product'
,'xmlns="http://schemas.myco.nl/services/IPP"'
))) v
where f.id = 1; -- Selects from the xmltype message that does have xmlns specified
This returns (as the first row)
IND IND2
____ 1002
^
|------ Nothing is returned by the XPATH /Product/@Ind
Second without using xmlns
select extractvalue(value(v),'/Product/@Ind' ) ind
, extractvalue(value(v),'/*/@Ind' ) ind2
from xml_messages f
, TABLE(XMLSequence( extract(f.message
,'/Bereken/Reglementen/Reglement/Producten/Product'
))) v
where f.id = 2; -- Selects from the xmltype message that has no xmlns
This returns (as the first row)
IND IND2
1002 1002
According to XMLSpy, the correct XPATH to get the "Ind" attribute is "/Product/@Ind" so what I dont understand is why query one doesnt return any data when using a default namespace.
The XPATH "/*/@Ind" works in both cases and can be used as a workaround, but it seems less elegant than using the proper XPATH.
I've tried this test case in 9i and 10g, in sqlplus and TOAD, with the same results in all cases.
Can anyone provide some insight as to why this behavior occurs?Thanks, A_Non,
adding the third parm to the extractvalue part of the query works.
ie:
select extractvalue(value(v),'/Product/@Ind', 'xmlns="http://schemas.myco.nl/services/IPP"' ) ind
, extractvalue(value(v),'/*/@Ind' ) ind2
from xml_messages f
, TABLE(XMLSequence( extract(f.message
,'/Bereken/Reglementen/Reglement/Producten/Product'
,'xmlns="http://schemas.myco.nl/services/IPP"'
))) v
where f.id = 1;
I had not expected this because I thought the xml fragment returned by the extract didnt include the default namespace.
However, when looking at the query in more detail, its clear Oracle automatically includes the xmlns part in the returned xml fragment.
One of the rows in the xml fragment:
<Product xmlns="http://schemas.myco.nl/services/IPP" Ind="1002" ogr="27098.00" bbr="27098.00" igl="65" elt="130" pgs="63758.00" slt="65" plt="0" reg="0" orf="0"/> -
Problem with default namespaces
Hello,
I'm using version 2.3.10 of Berkeley XML.
All my XML documents have a default namespace declared in the root element, like this:
<rootElement xmlns="http://www....something.../something">
but I get errors when I query the documents - and the only way of avoiding the errors seems to be by manually removing the default namespace attribute.
I tried setting the XmlQueryContext.setNamespace("", myUri) - but it doesn't work. I saw this mentioned in another post - and you said it was scheduled to work that way in the next release.
Can you tell me when the next release will be, and what I can do right now to get around this problem. I need to keep the xmlns attribute in the root element since I have other applications which need to access the documents before I put them into the database and they make use of it.
Kind Regards
Swami KevalaHi Swami,
You have two options:
1) Bind a prefix to your namespace URI, and use that prefix in your queries:
XmlQueryContext.setNamespace("pre", myUri);
XmlManager.query("/pre:rootElement", qc);
2) Bind the default element namespace inside the query:
XmlManager.query("declare default element namespace \"" + myUri + "\"; /rootElement", qc);
John -
Output XML with a default namespace using XQuery
I'm having a problem with namespaces in an XQuery within ALSB.
We receive XML from a file which doesn't have any namespace and have to transform it into a different structure, giving it a default namespace such as below:
Input XML
<inputRoot>
<inputAccountName>Joe Bloggs</inputAccountName>
<inputAccountNumber>10938393</inputAccountNumber>
</inputRoot>
Desired output XML
<outputRoot xmlns="http://www.example.org/outputSchema">
<outputAccounts>
<outputAccountName>Joe Bloggs</outputAccountName>
<outputAccountNumber>10938393</outputAccountNumber>
</outputAccounts>
</outputRoot>
When I attempt to do this using XQuery mapper tool, I end up with a namespace prefix on the outputRoot. The XQuery and result follows:
XQuery
declare namespace xf = "http://tempuri.org/XQueryProject/scratchTransformations/test/";
declare namespace ns0 = "http://www.example.org/outputSchema";
declare function xf:test($inputRoot1 as element(inputRoot))
as element(ns0:outputRoot) {
<ns0:outputRoot>
<outputAccounts>
<outputAccountName>{ data($inputRoot1/inputAccountName) }</outputAccountName>
<outputAccountNumber>{ data($inputRoot1/inputAccountNumber) }</outputAccountNumber>
</outputAccounts>
</ns0:outputRoot>
declare variable $inputRoot1 as element(inputRoot) external;
xf:test($inputRoot1)
Result
<ns0:outputRoot xmlns:ns0="http://www.example.org/outputSchema">
<outputAccounts>
<outputAccountName>inputAccountName_1</outputAccountName>
<outputAccountNumber>inputAccountNumber_1</outputAccountNumber>
</outputAccounts>
</ns0:outputRoot>
How can I write the XQuery in such a way thay the namespace prefix isn't output? I've tried many different methods with no success. I can't declare a default element namespace because my input element doesn't have a namespace
Thanks in advanceI spoke too soon, it didn't work quite as perfectly as I'd thought :-) It turns out our client can't handle the xml with the namespace prefix but we've worked out the solution to return XML in the format we originally needed.
Example below:
XQuery
declare namespace xf = "http://tempuri.org/XQueryProject/scratchTransformations/test/";
declare default element namespace "http://www.example.org/outputSchema";
declare namespace ns1 = ""
declare function xf:test($inputRoot1 as element(ns1:inputRoot))
as element(outputRoot) {
<outputRoot>
<outputAccounts>
<outputAccountName>{ data($inputRoot1/inputAccountName) }</outputAccountName>
<outputAccountNumber>{ data($inputRoot1/inputAccountNumber) }</outputAccountNumber>
</outputAccounts>
</outputRoot>
declare variable $inputRoot1 as element(inputRoot) external;
xf:test($inputRoot1) -
Assign default namespace to XML fragment using XQuery
Hi everybody!
I need to add a default namespace declaration to a XML fragment using XQuery. I wrote following statement to assign fragment to $body:
<soap-env:Body>{
fn-bea:inlinedXML($content/text())}
</soap-env:Body>
The problem is "$content/text()" has no namespace declaration so I need to assign a default namespace (xmlns="") to it in order to apply some XQuery transformations to its content.
I know this can be easily done with a XSLT but I would like use XQuery instead.
Could anyone tell me how I could perform this task?
Thank you in advance,
Daniel.Re: xquery function - send namespace as binding variable and define it in a tag
-
Removing Default Namespaces from XML
Hi All,
I am having a situation where I can't remove the default
namespace from XML mainly
because there is no namespace prefix.
I hope this code snipped makes better sense.
function test():void
document:XML =
<test xmlns:soap="
http://example.com" xmlns="
http://swanmokshi.com">
<item>peter</item>
<item>jenny</item>
<item>JK Angel</item>
<test>
// I can remove the soap namespace by doing the following
soap:Namespace = document.namespace("soap");
document.removeNamespace(soap).
Alert.show(document.toXMLString()); // should now display
the xml document without the soap namespace
Note that removing the soap namespace is easy because of the
first namespace is named "soap". How do
I removed the unnamed namespace, xmlns="
http://swanmokshi.com" ?
regards,
ArunSame problem for me.
XPath expression failed to execute. Error while processing xpath expression, the expression is "ora:processXSLT("Transformation_2.xsl", bpws:getVariableData("PartyID", "Header"))", the reason is Character reference "" is an invalid XML character.. Please verify the xpath query.
I am getting the date from Oracle Advanced Queue -
Problem to load XML SQL Utility into other user
Hi,
I need help to load XML Utility into other user than
"scott"tiger".
I loaded both xmlparser.jar and oraclexmlsql.jar into
"scott/tiger", it works and creating functions and testing work
fine. But when change USER_PASSWORD to another user, it gave me
some errors like
creating : org/xml/sax/helpers/AttributeListImpl
Error while creating class org/xml/sax/helpers/AttributeListImpl
ORA-29506: invalid query derived from USING clause
ORA-00942: table or view does not exist
Error while accessing MD5 table
ORA-00942: table or view does not exist
Do I need create any table or view for my another oracle account?
Or did I missed any thing. From the installation instruction, I
cano not find any about creating table or view before I load the
two jar files.
Thanks
Yuping
nullHi Yuping,
Great to hear that! Thx for posting the solution to the
problem! Let us know if you have any problems with the utility
or if u need any enhancements!
Thx
Murali
Yuping Zhu (guest) wrote:
: Hi,Murali,
: The problem is fixed now. When load xmlparser into the user, it
: creates two tables automatically, my mistake is I did not grant
: "create table" privilege to the user. After I granted the
: privilege to it, it works fine.
: Thanks!
: Yuping
: Murali K (guest) wrote:
: : Hi,
: : I will check this out with the Java folks and let u know
: : Thx
: : Murali K
: : Yuping Zhu (guest) wrote:
: : : Hi, Murali
: : : I'm using Oracle8i on Solaris 2.6. When I load xmlparser
: using
: : : loadjava -resolve -verbose -user $USER_PASSWORD
xmlparser.jar
: : : I get error message and I catch part of erros
: : : PS, I can load it into scott/tiger.
: : : Thanks!
: : : Yuping
: : : loading : org/w3c/dom/html/HTMLLegendElement
: : : Error while loading org/w3c/dom/html/HTMLLegendElement
: : : ORA-04068: existing state of packages has been
discarded
: : : ORA-04063: package body "IOEXML.LOADLOBS" has errors
: : : ORA-06508: PL/SQL: could not find program unit being called
: : : ORA-06512: at line 1
: : : creating : org/w3c/dom/html/HTMLLegendElement
: : : Error while creating class
org/w3c/dom/html/HTMLLegendElement
: : : ORA-29506: invalid query derived from USING clause
: : : ORA-00942: table or view does not exist
: : : Error while accessing MD5 table
: : : ORA-00942: table or view does not exist
: : : loading : org/w3c/dom/html/HTMLImageElement
: : : Error while loading org/w3c/dom/html/HTMLImageElement
: : : ORA-04068: existing state of packages has been
discarded
: : : ORA-04063: package body "IOEXML.LOADLOBS" has errors
: : : ORA-06508: PL/SQL: could not find program unit being called
: : : ORA-06512: at line 1
: : : creating : org/w3c/dom/html/HTMLImageElement
: : : Error while creating class
org/w3c/dom/html/HTMLImageElement
: : : ORA-29506: invalid query derived from USING clause
: : : ORA-00942: table or view does not exist
: : : Error while accessing MD5 table
: : : ORA-00942: table or view does not exist
: : : loading : oracle/xml/parser/v2/XSLException
: : : Error while loading oracle/xml/parser/v2/XSLException
: : : ORA-04068: existing state of packages has been
discarded
: : : ORA-04063: package body "IOEXML.LOADLOBS" has errors
: : : ORA-06508: PL/SQL: could not find program unit being called
: : : ORA-06512: at line 1
: : : Murali K (guest) wrote:
: : : : Hi Yuping,
: : : : I tried the same on a 8i database and it seems to be
: : working
: : : : fine. (loading into two schemas). In fact I just created
: the
: : : : other user and it doesnt have any tables or anything in
it.
: : : : You do not need to create anything (table/view) extra
for
: : : these
: : : : to work.
: : : : Which database (Oracle8 or 8i) are u using?
: : : : Thanks
: : : : Murali
: : : : Yuping Zhu (guest) wrote:
: : : : : Hi,
: : : : : I need help to load XML Utility into other user than
: : : : : "scott"tiger".
: : : : : I loaded both xmlparser.jar and oraclexmlsql.jar into
: : : : : "scott/tiger", it works and creating functions and
: testing
: : : work
: : : : : fine. But when change USER_PASSWORD to another user,
it
: : gave
: : : me
: : : : : some errors like
: : : : : creating : org/xml/sax/helpers/AttributeListImpl
: : : : : Error while creating class
: : : : org/xml/sax/helpers/AttributeListImpl
: : : : : ORA-29506: invalid query derived from USING clause
: : : : : ORA-00942: table or view does not exist
: : : : : Error while accessing MD5 table
: : : : : ORA-00942: table or view does not exist
: : : : : Do I need create any table or view for my another
oracle
: : : : account?
: : : : : Or did I missed any thing. From the installation
: : instruction,
: : : I
: : : : : cano not find any about creating table or view before
I
: : load
: : : : the
: : : : : two jar files.
: : : : : Thanks
: : : : : Yuping
null -
PROBLEM IN LOADING XML SECOND TIME
HI,
Actually i m loading xml 1st time when the page is loading,then again 2nd time when i m trying to load 2nd xml based on dropdown value then it is loading xml but it is appending the 2nd xml with the 1st xml.i m also unloading xml at first then loading 2nd xml but it is cming like that.the code is for loading and unloading is........
for loading i m calling---------------load_xml(xml)
for unloading i m calling------------- unload_xml()
function unload_xml():void
trace("in unload")
this.removeChild( flashmo_item_group );
function push_array(e:Event):void
flashmo_xml = XML(e.target.data);
total = flashmo_xml.item.length();
for( i = 0; i < total; i++ )
flashmo_item_list.push( { content: flashmo_xml.item[i].content.toString() } );
load_css();
function load_xml(xml_file:String):void
var xml_loader:URLLoader = new URLLoader();
xml_loader.load( new URLRequest( xml_file ) );
xml_loader.addEventListener(Event.COMPLETE, push_array);
xml_loader.addEventListener(IOErrorEvent.IO_ERROR, io_error);
function load_css():void
css_loader.load( new URLRequest(css_file) );
css_loader.addEventListener(Event.COMPLETE, css_complete);
css_loader.addEventListener(IOErrorEvent.IO_ERROR, io_error);
function css_complete(e:Event):void
var css_format:TextFormat = new TextFormat();
flashmo_style.parseCSS(css_loader.data);
create_item_list();
flashmo_loading.visible = false;
function io_error(e:IOErrorEvent):void
flashmo_loading.xml_info.text += "\n\n" + e;
function create_item_list():void
for( i = 0; i < total; i++ )
var flashmo_item = new MovieClip();
flashmo_item.addChild( create_item_desc( flashmo_item_list[i].content ) );
flashmo_item.addChildAt( create_item_bg( flashmo_item.height, i ), 0 );
flashmo_item.y = item_height;
item_height += flashmo_item.height + item_spacing;
flashmo_item_group.addChild( flashmo_item );
this.addChild( flashmo_item_group );
flashmo_item_group.mask = flashmo_mask;
flashmo_sb.scrolling("flashmo_item_group", "flashmo_mask", 0.40); // ScrollBar Added
function create_item_bg( h:Number, item_no:Number )
var fm_rect:Shape = new Shape();
fm_rect.graphics.beginFill(0xFFFFFF, 1); // ITEM BACKGROUND COLOR
fm_rect.graphics.drawRoundRect(0, 0, item_width, h + item_padding * 2, 0);
fm_rect.graphics.endFill();
return fm_rect;
function create_item_desc( item_desc:String )
var fm_text = new TextField();
fm_text.x = item_padding;
fm_text.y = item_padding;
fm_text.width = item_width - item_padding * 2;
fm_text.styleSheet = flashmo_style;
fm_text.htmlText = item_desc;
fm_text.multiline = true;
fm_text.wordWrap = true;
fm_text.selectable = true;
fm_text.autoSize = TextFieldAutoSize.LEFT;
return fm_text;
flashmo_sb.alpha=1;
so plz give me idea to resolve this problem.function push_array(e:Event):void
flashmo_item_list = [];
flashmo_xml = XML(e.target.data);
total = flashmo_xml.item.length();
for( i = 0; i < total; i++ )
flashmo_item_list.push( { content: flashmo_xml.item[i].content.toString() } );
load_css();
that will reset your array. -
Hi All,
I'm usign the following code:
Namespace javaworldNS = Namespace.getNamespace("http://www.javaworld.com");
Element myElement = new Element("article", javaworldNS);
myElement.addContent(new Element("title")
.setText("Easy Java/XML integration with JDOM"));
Document doc = new Document(myElement);and it is producing this when i write it the doc object onto a file:
<article xmlns="http://www.javaworld.com">
<title xmlns="">Easy Java/XML integration with JDOM</title>
</article>Now if you see inside title element, an extra empty namespace comes automatically. What i want is the following:
<article xmlns="http://www.javaworld.com">
<title>Easy Java/XML integration with JDOM</title>
</article>So how can i omit this namespace entry from the child element?
thanks in advance!You have the question backwards. In the first example, the <title> element is NOT in the default namespace, because it explicitly says so. In the second example, the <title> element IS in the default namespace, because it inherits the namespace from its parent element.
An XML element always inherits its parent element's namespaces unless it explicitly says otherwise.
So if you want the second example as your output, you must declare the <title> element to be in the default namespace just as you declared the <article> element.
Maybe you are looking for
-
"Connection failed" error keeps popping up
I've recently set up a new home network. I keep getting the following error, which is my computer trying to connect to an IP address from my former network (an external hard drive that was set up as a shared server): Connection failed The server "192
-
Itunes crashes when I connect my iphone. Please Help I'm on my forth phone
I'm using a PC and I also updated to the newest itunes 7.3.1. My problem is that when I connect my iphone to my PC itunes freezes and so does safari on my PC. Is their a tread about this if so may you guys point me in the right derection.
-
Does Groupware portlet support Exchange server 2007
Hi ALL, Does anyone had any idea, will the groupware portlet support Exchange server 2007. I tried with exchange 2003 is working with groupware. Please let me know any ideas to display email, calender, tasks in the portal. Thanks Manu.
-
How to center prints on Epson printers
I've seen several questions stating this issue has been beaten to death, but I can't find any with answers. Is there a way to use Photoshop CS5 and print an 8x10 print on letter paper with even borders at each end. No matter how I set the page setup
-
With a cache loader, the Java Object Cache automatically determines if an object needs to be loaded into the cache when the object is request. Can someone tellme how exactly this works. I am trying to get the cache framework to load objects automatic