9.3.0.2 Shredded XML Doc not retrieveable

Hey guys, been making progress, been able to create a schema, get it registered, and upload XML documents can see the documents are being shredded as they show up in an SQL query's, and you can browse to them through HTTP or FTP. Wonderful, but touchy stuff!
HOWEVER, the shredded documents cannot be retrieved though a browser, SPY, or FTP. It just comes back blank. If I upload documents with the XDBDEMO user, I actually can pull back documents uploaded by XDBDEMO user, with my schema and data. This is really odd. I cannot find a permissions difference in the EMConsole, but this seems to be some sort of permissions issue and I've been ripping the DEMO apart trying to find out what I'm missing.
My thinking was that it might be the creation of the directories, and those permissions. We ended creating our directories the same as in the demo (no dice). The data in the RESOURCE_VIEW res even seems to compare fine, between a readable and non-readable file.
I'm not sure what to post here to assist, as the schema and data seem to be working ok.
Thx

Mark thanks for the suggestions, but here is what was actually going on. Turns out NOT to be a permission problem (as I first thought), but an issue with the Schema.(I'll attempt to fit in the schema, and sample data in this post at the end) To sum up the symptoms of this issue:
- Version 9.2.0.3 of the DB
- Our Schema would register, and the tables are created
- Xml documents are shredded, and stored
- SQL query's can be performed to see the data in the tables
* HOWEVER, the XML file is not retrieveable with Http and FTP, even though visable in the repository.
After some closer inspection it turns out that our Schmea was not registering as intended, as the Collection Objects were not being created. I'm not sure what the proper method is to code a schema where Collection Elements actually have Values, the demo XML dosen't have elements like this. The following schema line is what was causing all our grief.
<xs:element name="holdingref" maxOccurs="unbounded" xdb:SQLName="HOLDINGREF" xdb:SQLCollType="XDBXREF_HOLDINGREF_COLL" xdb:SQLType="VARCHAR2">
Since our 'holdingref' element actually does have a string value, we assigned a SQLType of VARCHAR2 to it, however, the combination of that with the SQLCollType breaks the retrieval and dosen't allow the the creation of the Collection Objects when registering the schema. The following line fixed the problem:
<xs:element name="holdingref" maxOccurs="unbounded" xdb:SQLName="HOLDINGREF" xdb:SQLCollType="XDBXREF_HOLDINGREF_COLL">
Re-registering the schema produced the expected results, and the world started spinning again. Enclosed below are the Broken schema, and some sample data.
SCHEMA:
<!--W3C Schema generated by XMLSPY v5 rel. 4 U (http://www.xmlspy.com)-->
<xs:schema xmlns:xdb="http://xmlns.oracle.com/xdb" xmlns:xs="http://www.w3.org/2001/XMLSchema" version="1.0" xdb:storeVarrayAsTable="true">
     <xs:element name="qrxref" type="qrxrefType" xdb:defaultTable="QRXREF"/>
     <xs:complexType name="qrxrefType" xdb:SQLType="XDBXREF_TYPE">
          <xs:sequence>
               <xs:element ref="casenumber"/>
               <xs:element ref="quarterending"/>
               <xs:element ref="pathid"/>
               <xs:element name="q2qinfo" type="q2qinfoType" xdb:SQLName="Q2QINFO"/>
               <xs:element name="intendedalloc" type="intendedallocType" xdb:SQLName="INTENDEDALLOC"/>
               <xs:element name="securitylist" type="securitylistType" xdb:SQLName="SECURITYLIST"/>
               <xs:element name="qrkey" type="qrkeyType" xdb:SQLName="QRKEY"/>
          </xs:sequence>
     </xs:complexType>
     <xs:element name="account" type="xs:string" xdb:SQLName="ACCOUNT" xdb:SQLType="VARCHAR2" xdb:defaultTable=""/>
     <xs:complexType name="allocationType" xdb:SQLType="XDBXREF_ALLOCATION_TYPE">
          <xs:simpleContent>
               <xs:extension base="xs:string">
                    <xs:attribute name="code" type="xs:string" use="required"/>
               </xs:extension>
          </xs:simpleContent>
     </xs:complexType>
     <xs:complexType name="assetclassType" xdb:SQLType="XDBXREF_ASSETCLASS_TYPE">
          <xs:sequence>
               <xs:element name="security" maxOccurs="unbounded" xdb:SQLName="SECURITY" xdb:SQLCollType="XDBXREF_SECURITY_COLL" xdb:SQLType="VARCHAR2">
                    <xs:complexType>
                         <xs:simpleContent>
                              <xs:extension base="securityType">
                                   <xs:attribute name="rank" type="xs:string" use="required"/>
                                   <xs:attribute name="forced" type="xs:string" use="optional"/>
                              </xs:extension>
                         </xs:simpleContent>
                    </xs:complexType>
               </xs:element>
          </xs:sequence>
          <xs:attribute name="code" type="xs:string" use="required"/>
          <xs:attribute name="quarter" type="xs:string" use="required"/>
     </xs:complexType>
     <xs:complexType name="assetclassnameType" xdb:SQLType="XDBXREF_ASSETCLASSNAME_TYPE">
          <xs:simpleContent>
               <xs:extension base="xs:string">
                    <xs:attribute name="code" type="xs:string" use="required"/>
               </xs:extension>
          </xs:simpleContent>
     </xs:complexType>
     <xs:element name="casenumber" type="xs:integer" xdb:SQLType="INTEGER" xdb:SQLName="CASENUMBER" xdb:defaultTable=""/>
     <xs:element name="pathid" type="xs:string" xdb:SQLName="PATHID" xdb:SQLType="VARCHAR2" xdb:defaultTable=""/>
     <xs:complexType name="intendedallocType" xdb:SQLType="XDBXREF_INTENDEDALLOC_TYPE">
          <xs:sequence>
               <xs:element name="allocation" type="allocationType" maxOccurs="unbounded" xdb:SQLType="VARCHAR2" xdb:SQLName="ALLOCATION" xdb:SQLCollType="XDBXREF_ALLOCATION_COLL"/>
               <xs:element name="holdingref" maxOccurs="unbounded" xdb:SQLName="HOLDINGREF" xdb:SQLCollType="XDBXREF_HOLDINGREF_COLL" xdb:SQLType="VARCHAR2">
                    <xs:complexType>
                         <xs:simpleContent>
                              <xs:extension base="holdingrefType">
                                   <xs:attribute name="code" type="xs:string" use="optional"/>
                                   <xs:attribute name="id" type="xs:string" use="required"/>
                                   <xs:attribute name="exclude" type="xs:string" use="optional"/>
                              </xs:extension>
                         </xs:simpleContent>
                    </xs:complexType>
               </xs:element>
          </xs:sequence>
     </xs:complexType>
     <xs:element name="fund" type="xs:string" xdb:SQLName="FUND" xdb:SQLType="VARCHAR2" xdb:defaultTable=""/>
     <xs:complexType name="q2qinfoType" xdb:SQLType="XDBXREF_Q2Q_TYPE">
          <xs:sequence>
               <xs:element name="assetclass" type="assetclassType" maxOccurs="unbounded" xdb:SQLCollType="XDBXREF_ASSETCLASS_COLL" xdb:SQLName="ASSETCLASS"/>
          </xs:sequence>
     </xs:complexType>
     <xs:complexType name="qrkeyType" xdb:SQLType="XDBXREF_QRKEY_TYPE">
          <xs:sequence>
               <xs:element name="assetclassname" type="assetclassnameType" maxOccurs="unbounded" xdb:SQLName="ASSETCLASSNAME" xdb:SQLCollType="XDBXREF_ASSETCLASSNAME_COLL" xdb:SQLType="VARCHAR2"/>
          </xs:sequence>
     </xs:complexType>
     <xs:element name="quarterending" type="xs:string" xdb:SQLName="QUARTERENDING" xdb:SQLType="VARCHAR2" xdb:defaultTable=""/>
     <xs:complexType name="securityType" mixed="true" xdb:SQLType="XDBXREF_SECURITY_TYPE">
          <xs:simpleContent>
               <xs:extension base="xs:string"/>
          </xs:simpleContent>
     </xs:complexType>
     <xs:complexType name="holdingsType" mixed="true" xdb:SQLType="XDBXREF_HOLDINGS_TYPE">
          <xs:sequence>
               <xs:element ref="value"/>
               <xs:element ref="fund"/>
               <xs:element ref="account"/>
          </xs:sequence>
          <xs:attribute name="code" type="xs:string" use="optional"/>
          <xs:attribute name="id" type="xs:string" use="required"/>
     </xs:complexType>
     <xs:complexType name="holdingrefType" mixed="true" xdb:SQLType="XDBXREF_HOLDINGREF_TYPE">
          <xs:simpleContent>
               <xs:extension base="xs:string"/>
          </xs:simpleContent>
     </xs:complexType>
     <xs:complexType name="securitylistType" xdb:SQLType="XDBXREF_SECURITYLIST_TYPE">
          <xs:sequence>
               <xs:element name="holdings" type="holdingsType" maxOccurs="unbounded" xdb:SQLName="HOLDINGS" xdb:SQLCollType="XDBXREF_HOLDINGS_COLL"/>
          </xs:sequence>
     </xs:complexType>
     <xs:element name="value" type="xs:decimal" xdb:SQLName="VALUE" xdb:SQLType="DECIMAL" xdb:defaultTable=""/>
</xs:schema>
SAMPLE DATA:
<qrxref xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://achilles:8001/home/MATRIXDB/qrxrefSource/xsd/qrxref.xsd">
     <casenumber>1001</casenumber>
     <quarterending>03/31/2003</quarterending>
     <pathid>SearchRequest/68/Sample1</pathid>
     <q2qinfo>
          <assetclass code="AG" quarter="1st Quarter Ranking- '03">
               <security rank="1" forced="FUI">FMI Focus Fund</security>
               <security rank="2">Wasatch:Micro Cap Fund</security>
               <security rank="3">Kinetics Internet</security>
               <security rank="4">Bjurman Micro Cap Grth</security>
               <security rank="5">Quaker Aggressive Grth/A</security>
               <security rank="6">CGM Focus</security>
               <security rank="7">Calamos Growth/A</security>
               <security rank="8">Meridian Value Fund</security>
               <security rank="9">FBR Small Cap Financial</security>
               <security rank="10">Mutual Financial Serv/A</security>
               <security rank="90" forced="MFUI">Money-Market Taxable Avg</security>
          </assetclass>
          <assetclass code="AG" quarter="2nd Quarter Ranking- '03">
               <security rank="1" forced="FUI">FMI Focus Fund/A</security>
               <security rank="2">Wasatch:Micro Cap Fund</security>
               <security rank="3">Kinetics Internet</security>
               <security rank="4">Bjurman Micro Cap Grth</security>
               <security rank="5">Quaker Aggressive Grth/A</security>
               <security rank="6" forced="FUI">FMI Focus Fund/B</security>
               <security rank="7">Calamos Growth/A</security>
               <security rank="8">Meridian Value Fund</security>
               <security rank="9">FBR Small Cap Financial</security>
               <security rank="10">Mutual Financial Serv/A</security>
               <security rank="100" forced="MFUI">Money-Market Taxable Avg</security>
          </assetclass>
          <assetclass code="WE" quarter="1st Quarter Ranking- '03">
               <security rank="1" forced="FUI">Eaton Vance Wrldwd Hlth/A</security>
               <security rank="2">Matthews Korea</security>
               <security rank="3">Commonwealth:New Zealand</security>
               <security rank="4">BlackRock Itl Opp/Svc</security>
               <security rank="5">Evergreen Asst Alloc/A</security>
               <security rank="6">First Eagle Overseas/A</security>
               <security rank="7">First Eagle Glbl Fd/A</security>
               <security rank="8">MFS Intl New Discovery/A</security>
               <security rank="9">Merrill Global Sm Cp/A</security>
               <security rank="10">Mutual European Fund/A</security>
               <security rank="130" forced="MFUI">Money-Market Taxable Avg</security>
          </assetclass>
          <assetclass code="WE" quarter="2nd Quarter Ranking- '03">
               <security rank="1" forced="FUI">Eaton Vance Wrldwd Hlth/A</security>
               <security rank="2">Matthews Korea</security>
               <security rank="3">Commonwealth:New Zealand</security>
               <security rank="4">BlackRock Itl Opp/Svc</security>
               <security rank="5">Evergreen Asst Alloc/A</security>
               <security rank="6">MFS Intl New Discovery/A</security>
               <security rank="7">Merrill Global Sm Cp/A</security>
               <security rank="8">Mutual European Fund/A</security>
               <security rank="1">First Eagle Overseas/A</security>
               <security rank="125" forced="MFUI">Money-Market Taxable Avg</security>
               <security rank="200">First Eagle Glbl Fd/A</security>
          </assetclass>
     </q2qinfo>
     <intendedalloc>
          <allocation code="G">18.52</allocation>
          <allocation code="WE">28.52</allocation>
          <allocation code="SV">5</allocation>
          <allocation code="AG">11.62</allocation>
          <allocation code="GI">36.34</allocation>
          <holdingref code="WE" id="ETHSX">277902813</holdingref>
          <holdingref code="AG" id="FMIOX">302933106</holdingref>
          <holdingref code="GI" id="OAKBX">413838400</holdingref>
          <holdingref code="G" id="OFALX">681383105</holdingref>
          <holdingref code="SV" id="PGA">PGA</holdingref>
          <holdingref code="G" id="LMVTX">524659109</holdingref>
          <holdingref code="GI" id="PQNAX">693389223</holdingref>
          <holdingref code="SV" id="ACR">ACR</holdingref>
          <holdingref exclude="1" code="" id="219350105">219350105</holdingref>
     </intendedalloc>
     <securitylist>
          <holdings code="WE" id="ETHSX">
               <value>25212.51</value>
               <fund>Eaton Vance Wrldwd Hlth/A</fund>
               <account>2098</account>
          </holdings>
          <holdings code="AG" id="FMIOX">
               <value>1385.77</value>
               <fund>Fmi Focus Fund</fund>
               <account>2098</account>
          </holdings>
          <holdings code="GI" id="OAKBX">
               <value>24992.92</value>
               <fund>Oakmark Equity & Income</fund>
               <account>2098</account>
          </holdings>
          <holdings code="G" id="OFALX">
               <value>23515.96</value>
               <fund>Olstein Financial Alert/C</fund>
               <account>2098</account>
          </holdings>
     </securitylist>
     <qrkey>
          <assetclassname code="SV">Stable Value Asset Class</assetclassname>
          <assetclassname code="TB">General Bond Asset Class</assetclassname>
          <assetclassname code="WB">World Bond Asset Class</assetclassname>
          <assetclassname code="WE">World Equity Asset Class</assetclassname>
          <assetclassname code="GEB">General Bond Asset Class</assetclassname>
     </qrkey>
</qrxref>

Similar Messages

  • MII 12.1.5 problem: XML-Doc not initialized in second transaction call

    (Sorry- I don't know why the lines are not seperated as in my input text...)
    Hello!
    We are migrating our projects from MII 12.5 to 12.1.5(Build 99).
    Most of the problems we found last year during our 12.1 rampup tests are fixed now.
    We are very happy about the improved expression parser- it now finds all syntax errors which are ignored in 12.0 (like missing parenthesis).
    The new tracing options make is easy to remove such errors.
    We found some small problems but this problem ist not easy to see and the result are some hundred wrong SAP postings:
    In a called transaction we have a XML-Doc action block  which manually configured fields.
    Then we adds rows to this document using the ROW-action block.
    Note: In the calling main transaction the option "reload transaction after each execution" is UNchecked (the default)
    This works fine for the first call of this transaction.
    The problems starts with the second call.
    Some initalization for the XML-Doc ist not executed (see trace below)
    VERY BAD: the ROW-actions to fill the document are executed WITHOUT errors!
    Result: an EMPTY XML-Doc!
    The solution is to check the option "reload transaction after each execution" in the Transaction call action.
    In MII 12.0 the XML-Doc was initalized and filled correctly for both calling options.
    Questions:
    - Is this a bug or a known behaviour?
      During the rampup test we found some problems with local variables and discussed this with SAP (Mr Schuette).
      what I remeber: with the unchecked option the local transaction variables should keep the old values of the last call -
      but XML-Docs should be initialzed always. The big problem is that the ROW action don't raise an error. 
    - Should the option "reload transaction after each execution" be checked as default?  
    - Are there performance differences for both options?
    Best regards,
    Roger Zuehlsdorf
    Trace output:
    ==========================================================
    FIRST CALL of Sub-Transaction
    [DEBUG] [TESTSUB1] Loading action: Document_0, type: IlluminatorDocument
    [DEBUG] [TESTSUB1] [Sequence]: Started sequence execution
    [DEBUG] [TESTSUB1] [Document_0]: Started action execution
    [DEBUG] [TESTSUB1] [Document_0]: Type: IlluminatorDocument, Description:
    [DEBUG] [TESTSUB1] [Document_0]: [Initializing Action][Initializing Parameters: [Document_0.EndDate = Document_0.EndDate=[timestamp:2010-08-23T12:58:51]][Document_0.StartDate = Document_0.StartDate=[timestamp:2010-08-23T12:58:51]][Document_0.Output = Document_0.Output=[xml:<?xml version="1.0" encoding="UTF-8"?>
    <Rowsets DateCreated="2010-08-23T16:09:59" EndDate="2010-08-23T12:58:51" StartDate="2010-08-23T12:58:51" Version="12.1.5 Build(99)">
    <Rowset>
    <Columns>
    <Column Description="" MaxRange="1" MinRange="0" Name="TESTTEXT" SQLDataType="1" SourceColumn="TESTTEXT"/>
    </Columns>
    <Row>
    <TESTTEXT>STRING</TESTTEXT>
    </Row>
    </Rowset>
    </Rowsets>]][Document_0.ColumnSpecifications = Document_0.ColumnSpecifications=[xml:<?xml version="1.0" encoding="UTF-8"?>
    <ColumnSpecifications>
    <ContextItem>
    <Name>TESTTEXT</Name>
    <Description/>
    <MinRange>0</MinRange>
    <MaxRange>1</MaxRange>
    <Value xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="string">STRING</Value>
    <ReadOnly>false</ReadOnly>
    </ContextItem>
    </ColumnSpecifications>]]]
    [DEBUG] [TESTSUB1] [Document_0]: Resolving Input Links
    [DEBUG] [TESTSUB1] Action parameter creating time [ <1 ms]
    [DEBUG] [TESTSUB1] Entering action 'Document_0' implementation.
    [DEBUG] [TESTSUB1] Exiting action 'Document_0' implementation
    [DEBUG] [TESTSUB1] [Document_0]: Resolving Output Links
    [DEBUG] [TESTSUB1] [Document_0]: Finished[ <1 ms] Succeeded: true
    Add Row***
    [DEBUG] [TESTSUB1] [Row_0]: Started action execution
    [DEBUG] [TESTSUB1] [Row_0]: Type: IlluminatorRow, Description:
    [DEBUG] [TESTSUB1] [Row_0]: [Initializing Action][Initializing Parameters: [Row_0.IlluminatorDocument = Row_0.IlluminatorDocument=[string:Document_0.Output]]]
    [DEBUG] [TESTSUB1] [Row_0]: Resolving Input Links
    [DEBUG] [TESTSUB1] [Row_0]: Link Stats: Row_0.TESTTEXT, Type [Assign], Time [ <1 ms], Expression: "xxxxxx xTHIS IS MY TEXT xxxxxxxxx "
    [DEBUG] [TESTSUB1] Action parameter creating time [ <1 ms]
    [DEBUG] [TESTSUB1] Entering action 'Row_0' implementation.
    [DEBUG] [TESTSUB1] Exiting action 'Row_0' implementation
    [DEBUG] [TESTSUB1] [Row_0]: Resolving Output Links
    [DEBUG] [TESTSUB1] [Row_0]: Finished[ <1 ms] Succeeded: true
    >>>> Result  OK, Teststring is added to Document_0
    [INFO] [TESTSUB1] [Tracer_0]Exit SUB: TESTTEXT in XML: <?xml version="1.0" encoding="UTF-8"?>
    <Rowsets DateCreated="2010-08-23T16:14:15" EndDate="2010-08-23T12:58:51" StartDate="2010-08-23T12:58:51" Version="12.1.5 Build(99)">
    <Rowset>
    <Columns>
    <Column Description="" MaxRange="1" MinRange="0" Name="TESTTEXT" SQLDataType="1" SourceColumn="TESTTEXT"/>
    </Columns>
    <Row>
    <TESTTEXT>xxxxxx xTHIS IS MY TEXT xxxxxxxxx </TESTTEXT>
    </Row>
    </Rowset>
    </Rowsets>
    ===============================================================================
    SECOND CALL of Sub-Transaction => XML-Doc NOT initalized!?
    [DEBUG] Entering action 'Transaction_Call_0' implementation.
    [DEBUG] [TESTSUB1] [Sequence]: Started sequence execution
    [DEBUG] [TESTSUB1] [Document_0]: Started action execution
    [DEBUG] [TESTSUB1] [Document_0]: Type: IlluminatorDocument, Description:
    [DEBUG] [TESTSUB1] [Document_0]: [Initializing Action][Initializing Parameters: ]
    [DEBUG] [TESTSUB1] [Document_0]: Resolving Input Links
    [DEBUG] [TESTSUB1] Action parameter creating time [ <1 ms]
    [DEBUG] [TESTSUB1] Entering action 'Document_0' implementation.
    [DEBUG] [TESTSUB1] Exiting action 'Document_0' implementation
    [DEBUG] [TESTSUB1] [Document_0]: Resolving Output Links
    [DEBUG] [TESTSUB1] [Document_0]: Finished[ <1 ms] Succeeded: true
    Add Row***  =>  NO error message!?
    [DEBUG] [TESTSUB1] [Row_0]: Started action execution
    [DEBUG] [TESTSUB1] [Row_0]: Type: IlluminatorRow, Description:
    [DEBUG] [TESTSUB1] [Row_0]: [Initializing Action][Initializing Parameters: ]
    [DEBUG] [TESTSUB1] [Row_0]: Resolving Input Links
    [DEBUG] [TESTSUB1] [Row_0]: Link Stats: Row_0.TESTTEXT, Type [Assign], Time [ <1 ms], Expression: "xxxxxx xTHIS IS MY TEXT xxxxxxxxx "
    [DEBUG] [TESTSUB1] Action parameter creating time [ <1 ms]
    [DEBUG] [TESTSUB1] Entering action 'Row_0' implementation.
    [DEBUG] [TESTSUB1] Exiting action 'Row_0' implementation
    [DEBUG] [TESTSUB1] [Row_0]: Resolving Output Links
    [DEBUG] [TESTSUB1] [Row_0]: Finished[ <1 ms] Succeeded: true
    >>>>  Result=> PROBLEM !??? Document_0 is empty:
    [INFO] [TESTSUB1] [Tracer_0]Exit SUB: TESTTEXT in XML: <?xml version="1.0" encoding="UTF-8"?>
    <Rowsets DateCreated="2010-08-23T16:14:15" EndDate="2010-08-23T12:58:51" StartDate="2010-08-23T12:58:51" Version="12.1.5 Build(99)">
    <Rowset>
    <Columns>
    <Column Description="" MaxRange="1" MinRange="0" Name="TESTTEXT" SQLDataType="1" SourceColumn="TESTTEXT"/>
    </Columns>
    </Rowset>
    </Rowsets>
    ===================================================================================
    Edited by: Roger Zuehlsdorf on Aug 24, 2010 4:51 PM

    Hi.
    It is very hard to read your description, but have a look at SP6 patch 2. This contains a fix for initialising of XML documents in transactions. I am not sure weather that is your problem but have a look.
    BR
    Poul.

  • 10g XE WebDav does not load XML doc

    Hi,
    I am experimenting with XE XMLDB. I have successfully registered a simple schema and was able to insert XML doc from sqlplus into XML DB. But when I drop a XML doc into the WebDav folder, the document did not get loaded. My 10g XE is installed on my laptop running Win XP, and I have both ftp (2100) and http (8080) ports actived. everything is local in my laptop.
    I had no problem at all when (doing the same testing) dropping the the doc into another WebDAV folder, which points to the XML DB on an ora92 EE installation running on a UNIX server.
    Don't know What i have missed?

    The following command will also do the trick without bouncing your database:
    alter system register;

  • Configuration file "config\jazn.xml" does not exist

    I have just installed 10g and am trying to setup iSQL*PLUS/dba. I found directions here http://download-west.oracle.com/docs/cd/B12037_01/server.101/b12170/ch3.htm#BCEIHEJF, however, when I try to start the JAZN shell or run the command line to create the dba user, I receive this error:
    oracle.security.jazn.JAZNRuntimeException: Configuration file "config\jazn.xml"
    does not exist. Check your JAAS configuration settings.
    at oracle.security.jazn.JAZNConfig.getJAZNProperties(Unknown Source)
    at oracle.security.jazn.JAZNConfig.access$100(Unknown Source)
    at oracle.security.jazn.JAZNConfig$2.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at oracle.security.jazn.JAZNConfig.getJAZNPropertiesNoCheck(Unknown Source)
    at oracle.security.jazn.JAZNConfig.<init>(Unknown Source)
    at oracle.security.jazn.JAZNConfig.initJAZNSingleton(Unknown Source)
    at oracle.security.jazn.JAZNConfig.getJAZNConfig(Unknown Source)
    at oracle.security.jazn.util.Dbg$2.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at oracle.security.jazn.util.Dbg.getJAZNProperty(Unknown Source)
    at oracle.security.jazn.util.Dbg.getBoolJAZNAndSystemProperty(Unknown Source)
    at oracle.security.jazn.util.Dbg.<clinit>(Unknown Source)
    at oracle.security.jazn.JAZNConfig.fileExists(Unknown Source)
    at oracle.security.jazn.JAZNConfig.getDefaultJAZNConfigFilePath(Unknown
    Source)
    at oracle.security.jazn.JAZNConfig.access$000(Unknown Source)
    at oracle.security.jazn.JAZNConfig$2.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at oracle.security.jazn.JAZNConfig.getJAZNPropertiesNoCheck(Unknown Source)
    at oracle.security.jazn.JAZNConfig.<init>(Unknown Source)
    at oracle.security.jazn.JAZNConfig.initJAZNSingleton(Unknown Source)
    at oracle.security.jazn.JAZNConfig.getJAZNConfig(Unknown Source)
    at oracle.security.jazn.tools.Admintool.refresh(Unknown Source)
    at oracle.security.jazn.tools.Admintool.init(Unknown Source)
    at oracle.security.jazn.tools.Admintool.main(Unknown Source)
    User does not exist in system.
    Has anyone run in to this and found a solution? Is there something more that I need to do? I know nothing about JAAS.

    I have the same problem. Did you resolve this problem?

  • Generated XML doc file contains comments from MFC source code

    Hello, in my project I use the option /doc to generate XML doc file from my source codes but unfortunately in the output XML file there are mixed also comments from original MFC source codes, see the part of generated xml file:
    Is there a solution to ignore these MFC cpp files?
    Many thanks
    Regards
    Petr Stejskal
    <?xml version="1.0"?>
    <style xmlns="http://www.w3.org/1999/xhtml">@namespace html url(http://www.w3.org/1999/xhtml); :root { font:small Verdana; font-weight: bold; padding: 2em; padding- } * { display: block; padding- } html|style { display: none; } html|span, html|a
    { display: inline; padding: 0; font-weight: normal; text-decoration: none; } html|span.block { display: block; } *[html|hidden], span.block[html|hidden] { display: none; } .expand { display: block; } .expand:before { content: '+'; color: red; } .collapse
    { display: block; } .collapse:before { content: '-'; color: red; } </style><doc><assembly><assembly>       
    "Console"    </assembly></assembly><members><members><member name="T:_RS"><member
    name="T:_RS">Reed-Solomon codec control block</member></member><member name="M:MMask_makeMask(System.Int32,System.Byte*,System.Int32,QRecLevel)"><member
    name="M:MMask_makeMask(System.Int32,System.Byte*,System.Int32,QRecLevel)">Mode indicator. See Table 2 in Appendix 1 of JIS X0510:2004, pp.107.</member></member><member
    name="M:CMFCControlRenderer.IsScaled"><member
    name="M:CMFCControlRenderer.IsScaled"><summary><summary>Tells whether this control
    renderer works with scaled (resized) images.</summary></summary><returns><returns>Returns TRUE if this control
    renderer works with resized (scaled) images.</returns></returns></member></member><member name="M:CMFCControlRenderer.SmoothResize(System.Double)"><member
    name="M:CMFCControlRenderer.SmoothResize(System.Double)"><summary><summary> 
    Smoothly resizes images.</summary></summary><param name="dblScale" /><param
    name="dblScale"> Scale ratio.</param><returns><returns>
    TRUE if resize succeeds; otherwise FALSE.</returns></returns></member></member><member name="M:CDrawingManager.CreateBitmap_32(HBITMAP__*,System.UInt32!System.Runtime.CompilerServices.IsLong)"><member
    name="M:CDrawingManager.CreateBitmap_32(HBITMAP__*,System.UInt32!System.Runtime.CompilerServices.IsLong)"><summary><summary>
    Creates a 32 bit bitmap from the specified bitmap.</summary></summary><returns><returns> A handle to created
    bitmap, or NULL, if creation fails.</returns></returns><param name="bitmap" /><param
    name="bitmap"> A handle to the original bitmap.</param><param name="clrTransparent"
    /><param
    name="clrTransparent"> An RGB value specifying transparent color of the original bitmap.</param></member></member><member
    name="M:CDrawingManager.CreateBitmap_32(CSize!System.Runtime.CompilerServices.IsConst*!System.Runtime.CompilerServices.IsImplicitlyDereferenced,System.Void**)"><member
    name="M:CDrawingManager.CreateBitmap_32(CSize!System.Runtime.CompilerServices.IsConst*!System.Runtime.CompilerServices.IsImplicitlyDereferenced,System.Void**)"><summary><summary>
    Creates an empty 32 bit bitmap.</summary></summary><returns><returns> A handle to created bitmap, or NULL,
    if creation fails.</returns></returns><param name="size" /><param
    name="size">Specifies bitmap size.</param><param name="pBits" /><param
    name="pBits">When the function returns contains a pointer to bitmap bits.</param></member></member><member
    name="M:CDrawingManager.DrawRotated(CRect,CDC*!System.Runtime.CompilerServices.IsImplicitlyDereferenced,System.Int32)"><member
    name="M:CDrawingManager.DrawRotated(CRect,CDC*!System.Runtime.CompilerServices.IsImplicitlyDereferenced,System.Int32)"><summary><summary>Rotates
    a source DC content inside the given rectangle by +/- 90 degrees</summary></summary><param name="rectDest" /><param
    name="rectDest">Destination rectangle</param><param name="dcSrc" /><param
    name="dcSrc">The source device content.</param><param name="bClockWise"
    /><param
    name="bClockWise">TRUE - rotate +90 degrees, FALSE - 90.</param></member></member><member
    name="M:AfxRegDeleteKey(HKEY__*,System.Char!System.Runtime.CompilerServices.IsConst*,ATL.CAtlTransactionManager*)"><member
    name="M:AfxRegDeleteKey(HKEY__*,System.Char!System.Runtime.CompilerServices.IsConst*,ATL.CAtlTransactionManager*)"><summary><summary>Deletes
    the specified registry key.</summary></summary><returns><returns>  If the function succeeds, the return
    value is ERROR_SUCCESS. If the function fails, the return value is a nonzero error code defined in Winerror.h</returns></returns><param name="hKey" /><param
    name="hKey">A handle to an open registry key.</param><param name="lpSubKey"
    /><param
    name="lpSubKey">The name of the key to be deleted.</param><param name="pTM" /><param
    name="pTM">Pointer to CAtlTransactionManager object</param></member></member><member
    name="M:AfxRegOpenKeyEx(HKEY__*,System.Char!System.Runtime.CompilerServices.IsConst*,System.UInt32!System.Runtime.CompilerServices.IsLong,System.UInt32!System.Runtime.CompilerServices.IsLong,HKEY__**,ATL.CAtlTransactionManager*)"><member
    name="M:AfxRegOpenKeyEx(HKEY__*,System.Char!System.Runtime.CompilerServices.IsConst*,System.UInt32!System.Runtime.CompilerServices.IsLong,System.UInt32!System.Runtime.CompilerServices.IsLong,HKEY__**,ATL.CAtlTransactionManager*)"><summary><summary>Opens
    the specified registry key.</summary></summary><returns><returns>  If the function succeeds, the return
    value is ERROR_SUCCESS. If the function fails, the return value is a nonzero error code defined in Winerror.h</returns></returns><param name="hKey" /><param
    name="hKey">A handle to an open registry key.</param><param name="lpSubKey"
    /><param
    name="lpSubKey">The name of a key that this function opens or creates.</param><param name="ulOptions"
    /><param
    name="ulOptions">This parameter is reserved and must be zero.</param><param name="samDesired" /><param
    name="samDesired">A mask that specifies the desired access rights to the key.</param><param
    name="phkResult" /><param
    name="phkResult">A pointer to a variable that receives a handle to the openedkey.</param><param
    name="pTM" /><param
    name="pTM">Pointer to CAtlTransactionManager object</param></member></member></members>

    Hi stejsky,
    Thank you for posting in MSDN forum.
    >>In my project I use the option /doc to generate XML doc file from my source codes but unfortunately in the output XML file there are mixed also comments from original MFC source codes.
    Based on your issue, could you please tell me how you use the option /doc to generate XML doc file from your source codes?
    If you use the option /doc to generate the XML doc file by right-click the your MFC project->Properties->Configuration Properties->C/C++->Output file->set the Generate XML document files as Yes(/doc) like the following screen shot.
    (1)If yes, since we could not reproduce your issue in mu side, so if possible, I suggest you could share me your MFC project so that we will further help you support this issue.
    You could upload your MFC project to the OneDrive and then copy link here.
    (2)If no, please try the above way to generate XML doc file and then check if you still get same issue.
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Repository event handler doesn't work when inserting an xml-doc via ftp

    Hi,
    I want to add a 'schemaLocation'-attribute to an XML-document when I load it in the repository. Therefore, I use the precreate-repository event and created a Repository Event Handler (see code extract below).
    Everything works fine if I type the following code in SQL Plus:
    Declare
    v_return BOOLEAN;
    Begin
    v_return:=DBMS_XDB.createresource('/public/xml/test.xml', XMLType(bfilename('XMLDIR', 'test.xml'),nls_charset_id('AL32UTF8')));
    end;Unfortunately, when I try to insert an XML-document via ftp into the /public/xml folder it doesn´t work as expected and no 'schemaLocation'-attribute is added to the new resource.
    What's the reason for this strange behavior and how can I solve it?
    For your information: I use the Oracle Database 11g Enterprise Edition Release 11.2.0.1.0
    Thank you very much for your help!!!
    Repository Event Handler code extract:_
    create or replace
    PACKAGE BODY schemalocation AS
    PROCEDURE handlePreCreate (eventObject DBMS_XEVENT.XDBRepositoryEvent) AS
    XDBResourceObj DBMS_XDBRESOURCE.XDBResource;
    var XMLType;
    l_return BOOLEAN;
    l_xmldoc dbms_xmldom.DOMDocument;
    l_docelem dbms_xmldom.DOMElement;
    l_attr dbms_xmldom.DOMAttr;
    c1 clob;
    node     dbms_xmldom.DOMNode;
    txid varchar2(100);
    dDoc DBMS_XMLDOM.DOMDocument;
    nlNodeList DBMS_XMLDOM.DOMNodeList;
    BEGIN
    XDBResourceObj := DBMS_XEVENT.getResource(eventObject);
    dbms_lob.createTemporary(c1,TRUE);
    var:=DBMS_XDBRESOURCE.getcontentxml(XDBResourceObj);
    l_xmldoc := dbms_xmldom.newDOMDocument(var);
    l_docelem := DBMS_XMLDOM.getDocumentElement(l_xmldoc);
    ------ add schemaLocation attribute
    l_attr := DBMS_XMLDOM.createAttribute(l_xmldoc, 'xsi:schemaLocation');
    DBMS_XMLDOM.setValue(l_attr, 'urn:iso:std:iso:20022:tech:xsd:sese.023.001.01 http://www.test.com/Testswift.xsd');
    l_attr := DBMS_XMLDOM.setAttributeNode(l_docelem, l_attr);
    DBMS_XMLDOM.WRITETOCLOB(l_xmldoc, c1);
    ------- get the value of the TxId-tag
    dDoc := DBMS_XMLDOM.NEWDOMDOCUMENT(c1);
    nlNodeList := DBMS_XMLDOM.GETELEMENTSBYTAGNAME(dDoc, 'TxId');
    node := DBMS_XMLDOM.ITEM(nlNodeList, 0);
    txid:= dbms_xmldom.getnodevalue(dbms_xmldom.getfirstchild(node));
    l_return:=DBMS_XDB.createresource('/public/ok/'||txid||'.xml', XMLType(c1));
    END;

    Marco,
    Here's an example of the problem :
    create or replace package handle_events
    as
      procedure handlePreCreate(p_event dbms_xevent.XDBRepositoryEvent);
    end;
    create or replace package body handle_events
    is
    procedure handlePreCreate (p_event dbms_xevent.XDBRepositoryEvent)
    is
      XDBResourceObj dbms_xdbresource.XDBResource;
      doc XMLType;
      res boolean;
    begin
      XDBResourceObj := dbms_xevent.getResource(p_event);
      doc := dbms_xdbresource.getContentXML(XDBResourceObj);
      select insertchildxml(
        doc
      , '/root'
      , '@xsi:schemaLocation'
      , 'urn:iso:std:iso:20022:tech:xsd:sese.023.001.01 http://www.test.com/Testswift.xsd'
      , 'xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"'
      into doc
      from dual;
      res := dbms_xdb.CreateResource('/public/xml/result.xml', doc);
    end;
    end;
    declare
    res boolean;
    begin
    res := dbms_xdb.CreateFolder('/public');
    res := dbms_xdb.CreateFolder('/public/tmp');
    res := dbms_xdb.CreateFolder('/public/xml');
    end;
    declare
    res            boolean;
    resconfig      xmltype;
    my_schema      varchar2(30) := 'DEV';
    resconfig_path varchar2(300) := '/public/ResConfig.xml';
    resource_path  varchar2(300) := '/public/tmp';
    begin
      resconfig  := xmltype(
    '<ResConfig xmlns="http://xmlns.oracle.com/xdb/XDBResConfig.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.oracle.com/xdb/XDBResConfig.xsd http://xmlns.oracle.com/xdb/XDBResConfig.xsd">
      <event-listeners set-invoker="true">
        <listener>
          <description>My event handler</description>
          <schema>'||my_schema||'</schema>
          <source>HANDLE_EVENTS</source>
          <language>PL/SQL</language>
          <events>
            <Pre-Create/>
          </events>
          <pre-condition>
            <existsNode>
              <XPath>/r:Resource[r:ContentType="text/xml"]</XPath>
              <namespace>xmlns:r="http://xmlns.oracle.com/xdb/XDBResource.xsd"</namespace>
            </existsNode>
          </pre-condition>
        </listener>
      </event-listeners>
      <defaultChildConfig>
        <configuration>
          <path>'||resconfig_path||'</path>
        </configuration>
      </defaultChildConfig>
    </ResConfig>'
      res := dbms_xdb.CreateResource(resconfig_path, resconfig);
      dbms_resconfig.addResConfig(resource_path, resconfig_path, null);
    end;
    /Giving the following input XML file :
    <?xml version="1.0" encoding="utf-8"?>
    <root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>This works :
    SQL> declare
      2    res boolean;
      3  begin
      4    res := dbms_xdb.CreateResource('/public/tmp/test.xml',
      5               xmltype(bfilename('TEST_DIR','test.xml'), nls_charset_id('AL32UTF8')));
      6  end;
      7  /
    PL/SQL procedure successfully completed.
    SQL> select XMLSerialize(document xdburitype('/public/xml/result.xml').getXML()
    as clob indent size = 2)  result
      2  from dual
      3  ;
    RESULT
    <root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="
    urn:iso:std:iso:20022:tech:xsd:sese.023.001.01 http://www.test.com/Testswift.xsd
    "/>With the same document loaded via FTP, we get :
    SQL> select XMLSerialize(document xdburitype('/public/xml/result.xml').getXML()
    as clob indent size = 2)  result
      2  from dual
      3  ;
    ERROR:
    ORA-31011: XML parsing failed
    ORA-19202: Error occurred in XML processing
    LPX-00283: document encoding is UTF-16-based but default input encoding is not
    Error at line 1
    no rows selectedand the content looks like :
    < ? x m l   v e r s i o n = " 1 . 0 "   e n c o d i n g = " u t f - 8 " ? >
    < r o o t   x m l n s : x s i = " h t t p : / / w w w . w 3 . o r g / 2 0 0 1 / X M L S c h e m a - i n s t a n c e " / >As a workaround, I've found that serializing and re-parsing the document solves the problem :
      select insertchildxml(
        xmltype(doc.getclobval())
      , '/root'
      , '@xsi:schemaLocation'
      , 'urn:iso:std:iso:20022:tech:xsd:sese.023.001.01 http://www.test.com/Testswift.xsd'
      , 'xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"'
      into doc
      from dual;
    ...We then get the expected result after FTP transfer :
    SQL> select XMLSerialize(document xdburitype('/public/xml/result.xml').getXML()
    as clob indent size = 2)  result
      2  from dual
      3  ;
    RESULT
    <?xml version="1.0" encoding="UTF-8"?>
    <root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="
    urn:iso:std:iso:20022:tech:xsd:sese.023.001.01 http://www.test.com/Testswift.xsd
    "/>The workaround also works for the DOM version presented above.
    Any ideas?

  • Problem inserting XML doc (character set)

    Hi all,
    I'm having trouble trying to insert XML either "posting" it (xsql) or "putting" it
    (OracleXML putXML).
    The error that I get: "not supported
    oracle-character-set-174".
    The environment is:
    Oracle 8i 8.1.5
    (NLS_CHARACTERSET EL8MSWIN1253 for greek)
    JDK 1.2.2
    Apache Web Server 1.3.11
    Apache JServ 1.1
    XSQL v 0.9.9.1 and
    XMLSQL, XML parser v2 that comes with it.
    I had dropped all java classes and reloaded
    them using oraclexmlsqlload batch file.
    But still getting the same error.
    The thing that is that I am
    able to insert XML doc that was generated
    with an authoring tool called W4F that extracts data from HTML pages and map them to
    XML document, even with greek characters
    in it. But when XML is generated using
    an editor or the servlet like the following:
    newschedule.xsql like
    <?xml version="1.0"?>
    <?xml-stylesheet type="text/xsl" href="latestschedules.xsl"?>
    <page connection="dtv" xmlns:xsql="urn:oracle-xsql">
    <xsql:insert-request date-format="DD'/'MM'/'YYYY" table="schedule_details_view"
    transform="request-to-newschedule.xsl"/>
    <xsql:query table="schedule"
    tag-case="lower" max-rows="5" rowset-element="latestschedules"
    row-element="schedule">
    select *
    from schedules
    order by schedule_id desc
    </xsql:query>
    </page>
    request-to-newschedule.xsl like
    <?xml version = '1.0'?>
    <ROWSET xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xsl:version="1.0">
    <xsl:for-each select="request/parameters">
    <ROW>
    <SCHEDULE_ID><xsl:value-of select="Schedule_id_field"/></SCHEDULE_ID>
    <DESCRIPTION><xsl:value-of select="Description_field"/></DESCRIPTION>
    <DETAILS>
    <DETAILS_ITEM>
    <STARTING_TIME><xsl:value-of select="Starting_Time_field_1"/></STARTING_TIME>
    <DURATION><xsl:value-of select="Duration_field_1"/></DURATION>
    </DETAILS_ITEM>
    <DETAILS_ITEM>
    <STARTING_TIME><xsl:value-of select="Starting_Time_field_2"/></STARTING_TIME>
    <DURATION><xsl:value-of select="Duration_field_2"/></DURATION>
    </DETAILS_ITEM>
    <DETAILS_ITEM>
    <STARTING_TIME><xsl:value-of select="Starting_Time_field_3"/></STARTING_TIME>
    <DURATION><xsl:value-of select="Duration_field_3"/></DURATION>
    </DETAILS_ITEM>
    <DETAILS_ITEM>
    <STARTING_TIME><xsl:value-of select="Starting_Time_field_4"/></STARTING_TIME>
    <DURATION><xsl:value-of select="Duration_field_4"/></DURATION>
    </DETAILS_ITEM>
    <DETAILS_ITEM>
    <STARTING_TIME><xsl:value-of select="Starting_Time_field_5"/></STARTING_TIME>
    <DURATION><xsl:value-of select="Duration_field_5"/></DURATION>
    </DETAILS_ITEM>
    </DETAILS>
    </ROW>
    </xsl:for-each>
    </ROWSET>
    Hope that someone could help me on this ...
    Any advice is highly appreciated.
    Thanks in advance
    Nicos Gabrielides
    email: [email protected]

    Hi,
    How about applying an XSL on the existing XML doc to create another XML doc to filter out the table column not found in the target db table, so that all the columns are matched and then use putXML to load?
    Hope that helps.
    OTN team@IDC

  • EPub docs not displaying right

    I loaded a couple of ePub docs via iTunes, and neither displays correctly in iBooks. After the first page, there are a ton of blank pages. It seems to think that the books are 1000+ pages, which isn't right. They display fine on my nook. Has anyone tried importing some ePub books and had success?

    An ePub book is basically a set of XHTML 1.1 web files, with a bunch of XML files supporting them, wrapped in a zip package. XHTML 1.1 must be written correctly (if you ever write web pages that way, you may know what I mean). To be honest, I doubt that many of the ePub creators get it right (just like most web site creation tools do not produce valid web pages).
    While Apple may change iBooks to be more forgiving of metadata like the invalid timestamp, they should not be more forgiving of XHTML errors. The idea is to let the ebook be parsed by an XML parser, not to include all the rest of the crap involved in handling malformed HTML. The book publishers need to get their books right in the first place. They have no excuse.
    See http://bookworm.oreilly.com/publishers/ebook-testing/

  • Attaching two XML docs together using XPath

    Hi,
    I have a conceptual question about whether something can be done in Oracle XML DB.
    I have two XML docs, doc1 and doc2. I want to attach doc2 to doc1 at some particular subelement of doc1's root element. I know the path to this subelement because I have an XPath which uniquely identifies that subelement. Assuming that these two docs are XMLTYPEs, is there a way to do this using XML DB functions, given only the XPath? Also, keep in mind that I don't know the structure of the documents at development time
    To better explain my question here is a stupid-simple example:
    doc1:
    <company>
    <department name="Sales"/>
    <department name="Marketing"/>
    </company>
    doc2:
    <employees>
    <employee name="Fred"/>
    <employee name="Jim"/>
    </employees>
    I want to attach doc2 into doc1 under doc1's <department name="Sales"/> element.
    I know that the XPath to this element is "/company/department[@name='Sales']"
    Is there any kind of Oracle magic that, given only doc1, doc2 and this XPath, would give me doc3:
    <company>
    <department name="Sales">
    <employees>
    <employee name="Fred"/>
    <employee name="Jim"/>
    </employees>
    </department>
    <department name="Marketing"/>
    </company>
    Although it seems kind of silly, whether or not this is possible will have to determine whether I use Oracle XML DB for my application. Also, in some situations the subelement I am attaching under may be nested 3, 4 or more elements below the root.
    Thanks in advance for any help,
    -Brad

    Yep ... exactly what I'm trying to do ... but it still don't work. This is what I get when I paste that into my SQL*Plus interface:
    SQL> set long 100000
    SQL> select updateXML(
    2 xmltype('
    3 <Document>
    4 <DocInfo>
    5 <EntityRef>EntityName</EntityRef>
    6 </DocInfo>
    7 <Body>
    8 <EntityRef>Entity2</EntityRef>
    9 </Body>
    10 </Document>'),
    11 '//EntityRef[text()="Entity2"]',
    12 XMLType('<NewRef>Something New</NewRef>')) from dual;
    UPDATEXML(XMLTYPE('<DOCUMENT><DOCINFO><ENTITYREF>ENTITYNAME</ENTITYREF></DOCINFO
    <Document>
    <DocInfo>
    <EntityRef>EntityName</EntityRef>
    </DocInfo>
    <Body>
    <EntityRef>Entity2</EntityRef>
    </Body>
    </Document>
    Is there a version of something or a pointer or a wrong package or something that I should be looking for? It's acting almost as though the functionality is stubbed out or not casting right or something.
    Here's an even odder deal:
    SQL> set long 100000
    SQL> select updateXML(
    2 xmltype('
    3 <Document>
    4 <DocInfo>
    5 <EntityRef>EntityName</EntityRef>
    6 </DocInfo>
    7 <Body>
    8 <EntityRef>Entity2</EntityRef>
    9 </Body>
    10 </D[i]Long postings are being truncated to ~1 kB at this time.

  • Problems while writing xml doc to a  file

    Hi all , in my project (of distributed xml databases) i need to write the xml files from the main server to the clients.
    These xml files i had formed by fragmenting one xml doc and i did the fragmentation using ....
    TransformerFactory tf = TransformerFactory.newInstance();
              Transformer transformer = tf.newTransformer();
              transformer.transform(new DOMSource(root),
              new StreamResult(new FileOutputStream(outputFile)));
    Now the problem is that on the client where these fragments reside..i m not able to do the indexing of the document properly ie...
    some extra text nodes with no values are coming in the index...
    i dont know how to deal wid the extra nodes that i m getting after parsing the file and craeting an index for the same..
    may be its coz of the transformer func i m using....don know(???)
    Note : i m fragmenting the xml files into text files using the above function and then sending thm to the client via sockets.
    Also,after fragmenting i am getting sumthng like
    <?xml version="1.0" encoding="UTF-8"?>
    in all the files..is this a source of any problem....
    plz reply soon....

    You have not described how you "index" the files and what you mean by that.
    Are you processing them with SAX or DOM, or one of the variations of those means?
    Is there a chance that the "extra" nodes are simply text nodes with newlines ("\n")? There are usually a lot of extra text nodes in a file each containing only one newline.
    If you are using SAX, there is no requirement for the parser to collect all of the text inside an element into a single block before calling the characters method. You may get several calls to characters between the start of an element and the end. If you change parsers, you may even get a different number of calls, but the character data will always be the same.
    Dave Patterson
    As to the <?xml version="1.0" encoding="UTF-8"?> line, that is perfectly fine. It means that your file thinks it is valid XML. Whether or not it REALLY is valid depends on a validation of the file.

  • Table number xrefs disappear when roundtripping the XML doc back to FM

    I'm using FM 7.2p158 running on Windows XP on a Dell Optiplex GX520 with 1GB RAM. I've converted my legacy FM docs to structured FM, but my (CALS-formatted) table number xrefs disappear when I roundtrip the XML docs back to FM. How can I remedy this?
    Initially, I used my own conventions to name the table part elements as I have about 10-15 specific table types and I used those Table Tag names as table elements names (Invisible2, Invisible4, StepTable, ...), so I had 10-15 elements that were true "is fm table element" types in the EDD, DTD, and R/W rules. The table number xrefs worked as they should after roundtripping FM-XML-FM and the tables' shading, ruling, and Table Tags were correct.
    I consulted our XSLT developer for proper browser display of the XML files, and he suggested that I should use the CALS table model. I studied the Struct Dev Gd, then I searched this forum for postings on CALS tables and related topics and used suggestions offered by many of you good folks to create an EDD, DTD, and R/W rules to that end.
    I've run some tests using many iterations of my files (both CALS and non-CALS types) to roundtrip the FM files, but I cannot get the xrefs of the table number from the CALS-version table title element to display when I roundtrip the XML doc and open it in FM. I get this:
    -- In the XML doc text opened in FM, instead of "Table 1-1" for the xref, it leaves a blank space (although the source numbered table title is there).
    -- In the Structure View of the same XML doc, I see the following:
    - The CROSSREF element text says WHITESPACE.
    - Both the CROSSREF element and its source element continue to have the (matching) "Idref" and "Id" number displayed in this view.
    - The Idref attribute is disconnected from the CROSSREF element.
    - The "table" element is disconnected from its container element (TableAnchor).
    Once I apply the File/Import/Element Definitions command in the XML doc in FM, the XML becomes valid and both the CROSSREF Idref attribute and the table element are reconnected, but my xref of the table number is still WHITESPACE.
    The XML-converted doc source text reads:
    If you're using WebDrive, you will want to use the options shown
    in [CROSSREF Idref = "BEHJCAJB" format = "Table Number"/] on the [IndexEntry
    type = "Index" text = "WebDrive options"/]WebDrive control panel.[/Para]
    [TableAnchor]
    [table tabstyle = "Expressroom2" cols = "2"
    colwidths = "2.198in 3.500in" colsep = "1" rowsep = "1"
    frame = "all"]
    [title Id = "BEHJCAJB"][?FM MARKER [Cross-Ref] 86302: TableTitle: Table 1-1
    WebDrive control panel options?]WebDrive login values[/title]
    [tgroup cols = "2" colsep = "1" rowsep = "1"]
    [colspec colnum = "1" colname = "1" colwidth = "2.198in"]
    [/colspec][colspec colnum = "2" colname = "2" colwidth = "3.500in"]
    [/colspec][thead]
    [row rowsep = "1"]
    [entry colname = "1"][CellHeading]Field[/CellHeading][/entry]
    [entry colname = "2"][CellHeading]Value[/CellHeading][/entry]
    [/row]
    [/thead]
    But when I open the same XML-converted doc back in FM, I get the following:
    "If you're using WebDrive, you will want to use the options shown in on the WebDrive control panel."
    The CROSSREF Idref "BEHJCAJB" is [WHITESPACE] in the Structure View, so it's a blank space within the actual text in FM.
    I have excerpts from my EDD, DTD, and R/W rules that I can post, but would make this even more lengthy. (Sorry about the current length.) What do I need to change to make the xrefs work when I roundtrip the files?
    [I don't know whether it makes any difference or not, but I have changed the element names since I originally used a conversion table (to structure my legacy FM files); however, I persisted those element name changes throughout the EDD, DTD, and R/W rules files.]

    I'm using FM 7.2p158 running on Windows XP on a Dell Optiplex GX520 with 1GB RAM. I've converted my legacy FM docs to structured FM, but my (CALS-formatted) table number xrefs disappear when I roundtrip the XML docs back to FM. How can I remedy this?
    Initially, I used my own conventions to name the table part elements as I have about 10-15 specific table types and I used those Table Tag names as table elements names (Invisible2, Invisible4, StepTable, ...), so I had 10-15 elements that were true "is fm table element" types in the EDD, DTD, and R/W rules. The table number xrefs worked as they should after roundtripping FM-XML-FM and the tables' shading, ruling, and Table Tags were correct.
    I consulted our XSLT developer for proper browser display of the XML files, and he suggested that I should use the CALS table model. I studied the Struct Dev Gd, then I searched this forum for postings on CALS tables and related topics and used suggestions offered by many of you good folks to create an EDD, DTD, and R/W rules to that end.
    I've run some tests using many iterations of my files (both CALS and non-CALS types) to roundtrip the FM files, but I cannot get the xrefs of the table number from the CALS-version table title element to display when I roundtrip the XML doc and open it in FM. I get this:
    -- In the XML doc text opened in FM, instead of "Table 1-1" for the xref, it leaves a blank space (although the source numbered table title is there).
    -- In the Structure View of the same XML doc, I see the following:
    - The CROSSREF element text says WHITESPACE.
    - Both the CROSSREF element and its source element continue to have the (matching) "Idref" and "Id" number displayed in this view.
    - The Idref attribute is disconnected from the CROSSREF element.
    - The "table" element is disconnected from its container element (TableAnchor).
    Once I apply the File/Import/Element Definitions command in the XML doc in FM, the XML becomes valid and both the CROSSREF Idref attribute and the table element are reconnected, but my xref of the table number is still WHITESPACE.
    The XML-converted doc source text reads:
    If you're using WebDrive, you will want to use the options shown
    in [CROSSREF Idref = "BEHJCAJB" format = "Table Number"/] on the [IndexEntry
    type = "Index" text = "WebDrive options"/]WebDrive control panel.[/Para]
    [TableAnchor]
    [table tabstyle = "Expressroom2" cols = "2"
    colwidths = "2.198in 3.500in" colsep = "1" rowsep = "1"
    frame = "all"]
    [title Id = "BEHJCAJB"][?FM MARKER [Cross-Ref] 86302: TableTitle: Table 1-1
    WebDrive control panel options?]WebDrive login values[/title]
    [tgroup cols = "2" colsep = "1" rowsep = "1"]
    [colspec colnum = "1" colname = "1" colwidth = "2.198in"]
    [/colspec][colspec colnum = "2" colname = "2" colwidth = "3.500in"]
    [/colspec][thead]
    [row rowsep = "1"]
    [entry colname = "1"][CellHeading]Field[/CellHeading][/entry]
    [entry colname = "2"][CellHeading]Value[/CellHeading][/entry]
    [/row]
    [/thead]
    But when I open the same XML-converted doc back in FM, I get the following:
    "If you're using WebDrive, you will want to use the options shown in on the WebDrive control panel."
    The CROSSREF Idref "BEHJCAJB" is [WHITESPACE] in the Structure View, so it's a blank space within the actual text in FM.
    I have excerpts from my EDD, DTD, and R/W rules that I can post, but would make this even more lengthy. (Sorry about the current length.) What do I need to change to make the xrefs work when I roundtrip the files?
    [I don't know whether it makes any difference or not, but I have changed the element names since I originally used a conversion table (to structure my legacy FM files); however, I persisted those element name changes throughout the EDD, DTD, and R/W rules files.]

  • XML entities not properly displaying

    I have an XML doc with apostrophies and such and have changed
    them to the proper entity (&apos;) however, regardless of
    whether or not I change them they are always displayed as
    "&apos;" ...anyone know why? When I publish my flash file my
    XML text is displayed as such:
    "The cat&apos;s hat fell off."
    Thanks!
    Ewon

    Hi,
    this is probably because there's only one "end of line" character (probably after <?xml ... ?>). This is normal, but you must store the second line in a string data object, which will then receive the whole XML stream (except the xml header as it is stored in the first line). And that's done.
    BR
    Sandra

  • Problem inserting xml doc into tables

    I'm trying to load and xml doc into a table/columns using putXML. I clearly have elements in my xml doc that I do not want to load into the table. I am receiving the following error: The XML element tag 'VERB' does not match the name of any of the columns/attributes of the target database. I'm having difficulty figuring out how to exclude of ignore these elements.
    Any help would be greatly appreciated.
    Thanks,
    John

    Hi,
    How about applying an XSL on the existing XML doc to create another XML doc to filter out the table column not found in the target db table, so that all the columns are matched and then use putXML to load?
    Hope that helps.
    OTN team@IDC

  • Any config.xml fields not viewable/editable in admin console?

    While reading through the WL 10.3 docs, I discovered something very unexpected. There are some attributes that you can define in the config.xml that are not viewable or editable in the admin console. I found this in the "Programming WebLogic JTA" manual. The attributes in question are "MaxResourceUnavailableMillis", "MaxResourceRequestOnServer", and "MaxXACallMillis" in the JTA section.
    Is this unique? Are there other elements or attributes that can only be viewed or set in the config.xml, and not in the admin console?

    Hi Arulazi,
    Adding to Michael Wooten's post, the change you make (via the Tools ->
    Preferences -> Path -> Port) only changes the port number to which Workshop
    connects to. This will be used when you want the same IDE to connect to
    different workshop enabled WebLogic Servers.
    This change will not be reflected in the config.xml file.
    The information will be updated in the .workshop file found in the
    C:\Documents and Settings\username directory.
    If you want to change the listen port for the server you will have to edit
    it via the server console at http://localhost:7001/console
    Hope this helps.
    Thanks
    Raj Alagumalai
    WebLogic Workshop Support
    ,"Michael Wooten" <[email protected]> wrote in message
    news:[email protected]..
    >
    Hi Arulazi,
    I think this is just you assuming that changing the information in thatdialog
    box, effects the config.xml of the WebLogic Server instance Workshop itsusing
    I don't think it does anything to the config.xml. It only tells Workshopwhich
    WebLogic Server instance you want it to use.
    Again, unless you've actually seen some documentation that states thatperforming
    the operation you mentioned changes the config.xml, I think the behavioryou are
    currently getting is the way it is supposed to be :-)
    Regards,
    Mike Wooten
    "Arulazi D" <[email protected]> wrote:
    Hi,
    When I try to update the server port number in the Weblogic Workshop
    console (via
    Tools -> Preferences -> Path -> Port), I was unsuccessful in achieving
    that. I
    changed port number from 7001 to 7010. This doesn't modify the
    config.xml.
    When
    I start the samples server, it tries to start the server in the same
    port (i.e.,
    7001) causing bind exception. Is this something to do with configuration
    file
    not being updated. Am I getting wrong somewhere?
    Any thoughts on this?
    Thanks,
    Arul

  • Compare 2 XML Docs using JAXB

    Hello List,
    I use JAXB for parsing and generating XML docs. It works well after some time to learn to use it.
    But now I want compare 2 xml docs.
    I think the equal function is the right way, but I can't find any implementation from this function in the generated classes.
    Do I look right? Is it possible to compare xml docs with JAXB?
    Any other hints.
    regards Dietmar

    Earlier this year, I needed such a tool and finally wrote one after not being able to find one. It was a lot of work. It compared two DOM documents.
    In our case, we were testing a new server implementation to create XML result files from requests from our client. I connected to a new server and an old server and sent the identical input to both. I then validated the two results using DTD's (which is all we had) and then did a brute force comparison of the two Document objects.
    To make things more difficult, there were some known differences. The new version returned a few new tags and attributes in certain cases. I had to avoid using these as a reason to declare a mismatch. Also, there were timestamps and URLs returned in the files I was processing, so I had to ignore these tags as well.
    Another thing to consider is that attributes do not have to be presented in any sequence, so I had to compare in a non-order-specific way. I built two HashMaps, and first looked up each old attribute in the HashMap for new attributes. If I found a match, I removed this attribute from BOTH HashMaps, when I got to the end, anything lef t over in either HashMap was an orphan.
    It was a lot of work, and my solution is probably not usable outside of its environment, and I don't have permission to release the source anyway.
    Dave Patterson

Maybe you are looking for

  • Removing a single object when multiple objects share the same name?

    The below code uses a for loop to make spheres as in this thread: http://forum.java.sun.com/thread.jspa?forumID=21&threadID=320945 However, the name is always sphere. I have another part of the code that, using collision detection, removes a sphere u

  • How do I get to a access database to fill fields on a liveCycle form?

    I have created a form using LiveCycle Designer and I want to fill in some of the fields on this form by acessing a Acess Database. I have looked on the internet, but have not found anything to help me with this issue. Is there any books or manuals th

  • Value in KEAW but not in S_ALR report for a particular account

    Hello, Find value in CO in KEAW for a particular account but not in S_ALR_87013542 report . The account belongs to Cost of sales category . Can someone please inform the reason for this posting not appearing in S_ALR but in KEAW . With regards, Mrina

  • Blocking a domain - is it possible in mac mail

    I'm getting an extraordinary amount of junk mail (at work) from one particular domain. Is there any way to block a domain so that my office no longer receives all of this nonsense. Yes, I've already marked it as junk and it all goes to the junk folde

  • Regarding MIRO transaction

    Hello Friends My user trying to post MIRO Transaction but while he posting MIRO transaction Withholding Tax not getting post before that i ve seen in vendor master he is assinged Withholding Tax codes and also i have seen invoice entry also Withholdi