Hi,
When I construct my XML, I need to add the information of the
namespaces. No prob.
I make an attribute with CreateAttribute (URI, tag). At that moment,
the namespace info is there in the attribute.
When I add the attribute to the node with SetAttribute, the namespace
info disappears.
I think, but i'm not sure that the reason is that in a previous node,
the namespace was declared and it is not being repeated for every node
of the same type.
Problem is that both Stylus Studio as XML Spy authenticate the file as
being valid. However, Oracle does not and it want the namespace in
every node.
Below is the top of the document, where you can see that XSI namespace
is declare with z:zending and not repeate in g10:algzend.
For XMLSpy and Stylus Studio this is not a problem, however for Oracle it is
<?xml version="1.0" encoding="UTF-8"?>
<z:zending xmlns:z="http://www.svmb.be/schemas/algemeen/zending"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.svmb.be/schemas/algemeen/zending
http://www.svmb.be/schemas/algemeen/zending.xsd" version="1.0">
<header>
<afzender>20</afzender>
<bestemmeling>10000000</bestemmeling>
<interface>ZSCTX</interface>
<dt_creatie_xml>2006-03-02</dt_creatie_xml>
<mailbox_nr>36</mailbox_nr>
<test_ind>1</test_ind>
</header>
<body>
<g:groep xmlns:g="http://www.svmb.be/schemas/algemeen/groep"
xsi:schemaLocation="http://www.svmb.be/schemas/algemeen/groep
http://www.svmb.be/schemas/algemeen/groep.xsd" version="1.0">
<header>
<actie_identificatie>
<afzender>20</afzender>
<bestemmeling>10000000</bestemmeling>
<interface>ZSCTX</interface>
<volg_nr>77</volg_nr>
</actie_identificatie>
<actie_type>
<type_message>R</type_message>
<type_groep>A</type_groep>
<actie_cd>ALGZEND</actie_cd>
</actie_type>
</header>
<body>
<g10:algzend
xmlns:g10="http://www.svmb.be/schemas/algemeen/algzend"
xsi:schemaLocation="http://www.svmb.be/schemas/algemeen/algzend
http://www.svmb.be/schemas/algemeen/algzend.xsd" version="1.0">
9:29:09 Execution failed: ORA-31011: XML parsing failed
9:29:09 ORA-19202: Error occurred in XML processing
9:29:09 LPX-00234: namespace prefix "xsi" is not declared
9:29:09 Error at line 1
9:29:09 ORA-06512: at line 10
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>