Any sample code on XML parsing

Hi,
I am writing an application that has to read and to generate XML (using schemas). Unfortuantely, I cannot find any sample code on how to do it using the Oracle supplied libraries (packages oracle.xml.* . Can anyone point me to some sample code, documentation or alternative?
Thanks a lot!

Hello Bert,
I didnt get your question very clearly.
1) Do you want to generate XML using Java classes based on XSD?
or
2) You want to parse XML that has a XSD specified with it?
For both these thing, we have sample codes. For the first option, there are Class Generators that does this for you. There are some samples provided with the XDK download. Look into the folder <xdk_home>xdk\demo\java\classgen.
For option 2, there are many samples on OTN itself. To name one.... AQSample downloaded from http://otn.oracle.com/sample_code/tech/dataint/content.html.
There is a sample with the JDK download also. The folder is <xdk_home>\xdk\demo\java\schema
Hope this helps.

Similar Messages

  • Problem to compile sample code with C++ Parser on Unix

    I just downloaded C++ parser and tried to compile the sample source code, but I got
    the following error:
    g++ -o DOMSample -I../include DOMSample.cpp -L../lib/xml8 -L../lib/core8 -L../lib/nls8 -L../lib/xmlc8 -L../lib/nsl -L../lib/socket
    Undefined first referenced
    symbol in file
    Node::getFirstChild(void) /var/tmp/ccarlA8y.o
    Node::getValue(void) /var/tmp/ccarlA8y.o
    XMLParser::xmlterm(void) /var/tmp/ccarlA8y.o
    XMLParser::getDocumentElement(void) /var/tmp/ccarlA8y.o
    xmlinit__9XMLParserPUcPFPvPCUcUi_vPvP8xmlsaxcbT3T1 /var/tmp/ccarlA8y.o
    Node::hasChildNodes(void) /var/tmp/ccarlA8y.o
    Node::getChildNode(unsigned int) /var/tmp/ccarlA8y.o
    Node::getName(void) /var/tmp/ccarlA8y.o
    Node::numChildNodes(void) /var/tmp/ccarlA8y.o
    XMLParser::xmlparse(unsigned char *, unsigned char *, unsigned int)/var/tmp/ccarlA8y.o
    Node::getType(void) /var/tmp/ccarlA8y.o
    ld: fatal: Symbol referencing errors. No output written to DOMSample
    collect2: ld returned 1 exit status
    make: *** [DOMSample] Error 1
    Please help me out. Thanks,
    null

    I have the similar problem when I tried to compile sample code with C++ parser on WinNT4. I am using Micrsoft Visual Studio V6.0. I added the include file and lib file in the path.
    Here are the error messages:
    Linking...
    FullDOM.obj : error LNK2001: unresolved external symbol "public: void __thiscall XMLParser::xmlterm(void)" (?xmlterm@XMLParser@@QAEXXZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class NamedNodeMap * __thiscall DocumentType::getEntities(void)" (?getEntities@DocumentType@@QAEPAVNamedNodeMap@@XZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class Node * __thiscall NamedNodeMap::item(unsigned int)" (?item@NamedNodeMap@@QAEPAVNode@@I@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: unsigned int __thiscall NamedNodeMap::getLength(void)" (?getLength@NamedNodeMap@@QAEIXZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class NamedNodeMap * __thiscall DocumentType::getNotations(void)" (?getNotations@DocumentType@@QAEPAVNamedNodeMap@@XZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class DocumentType * __thiscall XMLParser::getDocType(void)" (?getDocType@XMLParser@@QAEPAVDocumentType@@XZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: unsigned int __thiscall XMLParser::xmlparse(unsigned char *,unsigned char *,unsigned int)" (?xmlparse@XMLParser@@QAEIPAE0I@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: void __thiscall XMLParser::xmlclean(void)" (?xmlclean@XMLParser@@QAEXXZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: void __thiscall CharacterData::replaceData(unsigned long,unsigned long,unsigned char *)" (?replaceData@CharacterData@@QAEXKKPAE@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: void __thiscall CharacterData::deleteData(unsigned long,unsigned long)" (?deleteData@CharacterData@@QAEXKK@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: void __thiscall CharacterData::insertData(unsigned long,unsigned char *)" (?insertData@CharacterData@@QAEXKPAE@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: void __thiscall CharacterData::appendData(unsigned char *)" (?appendData@CharacterData@@QAEXPAE@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: unsigned char * __thiscall CharacterData::substringData(unsigned long,unsigned long)" (?substringData@CharacterData@@QAEPAEKK@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: unsigned int __thiscall CharacterData::getLength(void)" (?getLength@CharacterData@@QAEIXZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: void __thiscall CharacterData::setData(unsigned char *)" (?setData@CharacterData@@QAEXPAE@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: unsigned char * __thiscall CharacterData::getData(void)" (?getData@CharacterData@@QAEPAEXZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class Node * __thiscall Text::splitText(unsigned long)" (?splitText@Text@@QAEPAVNode@@K@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class Node * __thiscall Node::cloneNode(int)" (?cloneNode@Node@@QAEPAV1@H@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class Node * __thiscall NamedNodeMap::removeNamedItem(unsigned char *)" (?removeNamedItem@NamedNodeMap@@QAEPAVNode@@PAE@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: int __thiscall NamedNodeMap::setNamedItem(class Node *,class Node * *)" (?setNamedItem@NamedNodeMap@@QAEHPAVNode@@PAPAV2@@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class NamedNodeMap * __thiscall Node::getAttributes(void)" (?getAttributes@Node@@QAEPAVNamedNodeMap@@XZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class Attr * __thiscall Element::removeAttributeNode(class Attr *)" (?removeAttributeNode@Element@@QAEPAVAttr@@PAV2@@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class Attr * __thiscall Element::setAttribute(unsigned char *,unsigned char *)" (?setAttribute@Element@@QAEPAVAttr@@PAE0@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: void __thiscall Element::removeAttribute(unsigned char *)" (?removeAttribute@Element@@QAEXPAE@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class Attr * __thiscall Element::getAttributeNode(unsigned char *)" (?getAttributeNode@Element@@QAEPAVAttr@@PAE@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: void __thiscall Attr::setValue(unsigned char *)" (?setValue@Attr@@QAEXPAE@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: int __thiscall Element::setAttributeNode(class Attr *,class Attr * *)" (?setAttributeNode@Element@@QAEHPAVAttr@@PAPAV2@@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class Attr * __thiscall Document::createAttribute(unsigned char *,unsigned char *)" (?createAttribute@Document@@QAEPAVAttr@@PAE0@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class DocumentFragment * __thiscall Document::createDocumentFragment(void)" (?createDocumentFragment@Document@@QAEPAVDocumentFragment@@XZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: void __thiscall Element::normalize(void)" (?normalize@Element@@QAEXXZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class Node * __thiscall Node::removeChild(void)" (?removeChild@Node@@QAEPAV1@XZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class Node * __thiscall Node::replaceChild(class Node *)" (?replaceChild@Node@@QAEPAV1@PAV1@@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class Document * __thiscall Node::getOwnerDocument(void)" (?getOwnerDocument@Node@@QAEPAVDocument@@XZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class Node * __thiscall Node::getParentNode(void)" (?getParentNode@Node@@QAEPAV1@XZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class Node * __thiscall NodeList::item(unsigned int)" (?item@NodeList@@QAEPAVNode@@I@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: unsigned int __thiscall NodeList::getLength(void)" (?getLength@NodeList@@QAEIXZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class NodeList * __thiscall Document::getElementsByTagName(class Element *,unsigned char *)" (?getElementsByTagName@Document@@QAEPAVNodeList@@PAVElement@@PAE@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: void __thiscall Node::setValue(unsigned char *)" (?setValue@Node@@QAEXPAE@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class Node * __thiscall Node::getPreviousSibling(void)" (?getPreviousSibling@Node@@QAEPAV1@XZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class Node * __thiscall Node::getLastChild(void)" (?getLastChild@Node@@QAEPAV1@XZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class Node * __thiscall Node::getNextSibling(void)" (?getNextSibling@Node@@QAEPAV1@XZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class Node * __thiscall Node::getFirstChild(void)" (?getFirstChild@Node@@QAEPAV1@XZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class Node * __thiscall Node::insertBefore(class Node *,class Node *)" (?insertBefore@Node@@QAEPAV1@PAV1@0@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class EntityReference * __thiscall Document::createEntityReference(unsigned char *)" (?createEntityReference@Document@@QAEPAVEntityReference@@PAE@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class CDATASection * __thiscall Document::createCDATASection(unsigned char *)" (?createCDATASection@Document@@QAEPAVCDATASection@@PAE@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class ProcessingInstruction * __thiscall Document::createProcessingInstruction(unsigned char *,unsigned char *)" (?createProcessingInstruction@Document@@QAEPAVProcessingInstruction@@PA
    E0@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class Comment * __thiscall Document::createComment(unsigned char *)" (?createComment@Document@@QAEPAVComment@@PAE@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class Text * __thiscall Document::createTextNode(unsigned char *)" (?createTextNode@Document@@QAEPAVText@@PAE@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class Element * __thiscall XMLParser::getDocumentElement(void)" (?getDocumentElement@XMLParser@@QAEPAVElement@@XZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class Node * __thiscall Node::appendChild(class Node *)" (?appendChild@Node@@QAEPAV1@PAV1@@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class Element * __thiscall Document::createElement(unsigned char *)" (?createElement@Document@@QAEPAVElement@@PAE@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class Document * __thiscall XMLParser::getDocument(void)" (?getDocument@XMLParser@@QAEPAVDocument@@XZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class Document * __thiscall XMLParser::createDocument(void)" (?createDocument@XMLParser@@QAEPAVDocument@@XZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: unsigned int __thiscall XMLParser::xmlinit(unsigned char *,void (__cdecl*)(void *,unsigned char const *,unsigned int),void *,struct xmlsaxcb *,void *,unsigned char *)" (?xmlinit@XMLPar
    ser@@QAEIPAEP6AXPAXPBEI@Z1PAUxmlsaxcb@@10@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: unsigned int __thiscall Node::numChildNodes(void)" (?numChildNodes@Node@@QAEIXZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class NodeList * __thiscall Node::getChildNodes(void)" (?getChildNodes@Node@@QAEPAVNodeList@@XZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: int __thiscall Node::hasChildNodes(void)" (?hasChildNodes@Node@@QAEHXZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: unsigned char * __thiscall Attr::getValue(void)" (?getValue@Attr@@QAEPAEXZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: int __thiscall Attr::getSpecified(void)" (?getSpecified@Attr@@QAEHXZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: unsigned char * __thiscall Attr::getName(void)" (?getName@Attr@@QAEPAEXZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: unsigned char * __thiscall Node::getValue(void)" (?getValue@Node@@QAEPAEXZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: unsigned char * __thiscall Node::getName(void)" (?getName@Node@@QAEPAEXZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: short __thiscall Node::getType(void)" (?getType@Node@@QAEFXZ)
    LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16
    Debug/orafulldom.exe : fatal error LNK1120: 64 unresolved externals
    Error executing link.exe.
    orafulldom.exe - 65 error(s), 0 warning(s)
    null

  • Any sample code for an Extractor to read in a flat file?

    Hi SAP gurus,
    Are there any sample code for an extractor to read in a flat file?
    Are there any documentation on custom coding an extractor to dump
    information into an info source?
    Are there any documentation on the pit falls and contraints using Solution
    Manager, the BI tools, particularly on the Info Source?
    Thanks,
    Steve

    Thanks Muppet Mark
    I forgot to mention that I had also tried just fileObject.read() as well and it didn't work either.  It was the same run on sentence result I got with the script I showed above.  Seems odd.  However, the \r instead of \n did the trick.  I had some recollection of another line feed character but couldn't remember what it was, so thanks for that.
    Doug

  • Any Sample code for recording+playing streaming live video?

    Hi all,
    I'm new to FMS3,
    I wanna create a page for webcam live recording and playing,
    is there any sample code for reference (i can only found the code
    for live recording but do not have live record+play)?
    Many thanks.
    I have installed FMS3.0 and FME2.0 on my machine, so is it
    capable to do so?
    Many thanks.

    Thanks for your reply, but I have another question:
    My live file (test.flv) is recorded under this path:
    C:\xxxx\FMS3\applications\path\streams\_definst_\
    But seems FMS3 can only play video under this path:
    C:\xxxx\FMS3\applications\vod\media\
    My only success is on this source path rtmp://ip/vod/test in
    the component FLVPlayBack.
    So is it happen to all free version of FMS3 or I have to type
    sth more?
    Many thanks.

  • Request for sample code, Validating XML Schema

    Does anyone have some sample code to validate
    an XML Schema with the Oracle parser?
    Also, the classgen code seems to have more XML Schema classes in it. There is an xschema.jar full of XML Schema related code. Would it be possible to use this code?
    I've tried DOMSample.java with the v2 parser. It seems to happily echo Schema based XML files that are obviously wrong. (I use Tibco's XML Authority to verify the XML file and XML Schema).

    I do not have sample code but it is not a difficult API to call. I have worked on it before, so if you have a specific question on it, happy to help out if I can.

  • I want to an API or any sample code to make business calls to J.D.Edwards

    hi,
    i want to make use of J.D.Edwards from my java GUI application, by using my Application Interface i want to make use of Java Calls to the the J.D.Edwards. is any one is having API or Sample code fro this?
    plz help me out Regarding this.

    hi,
    i hav searched through google also
    i did not get anything regarding this, what all got apart from this is,
    in market we are having 3rd party onnectors for this.
    but i dotn use any of them.
    can any body help me regarding this plz.

  • Problem with running sample code from XML Schema Processor for Java

    Hi there,
    I downloaded the XML Schema Processor for Java and tried it out. Unfortunately, it failed at the first step. FYI, I included all xmlparserv2.jar and xmlschema.jar in my classpath.
    I compiled XSDSample.java with a warning: XSDSample.java uses a deprecated API. Recompile with "-deprecation" for details. There was no problem with compiling XSDSetSchema.java.
    When I tried to run report.xml by typing java XSDSample report.xml, I got Parsing report.xml
    NonParserException: null.
    I guess that report.xml from the sample is not valid.
    Could any one give me a hint? Any suggestion would be greatly appreciated.
    ---Denali
    null

    Please post this message at:
    Forums Home » Oracle Technology Network (OTN) » Products » Database » XML DB

  • Any sample video webinar code?

    Hi, I'm trying an experienced java developer but very new to flash. I'm trying to develop a php webapp that live streams a users webcam to hunderds of views, with chat and the ability to kick viewers out of the meeting. I downloaded flash builder 4 and lccs sdk and have gotten a simple webcam app working (not even using publisher/subscriber model yet), but haven't tackled permissions/roles, managing and cleaning up sessions and that sort of thing. Any sample code out there that you could share with me would be greatly appreciated.
    ps. I would consider other technologies if you think this one is not right for what I'm trying to do.
    Thank you,
    Kevin

    Hi ,
    Download the file at:
    http://download.oracle.com/otn/other/general/forms10gdemos9_0_4_2.zip
    Regards,
    Simon

  • Safari XML parser converts attributes to lower case?

    I am trying to create and serialize XML documents using Safari 2.01. It appears that during this process, XML attributes are always converted to lower case. Since XML is case sensitive, this causes errors when mixed case is expected. My sample code (below) works properly (attributes not converted to lower case) in FireFox, Netscape, etc.
    Questions are:
    Is there a way to load/serizlize XML in Safari so that this does not happen?
    If not, is this behavior by design or is it a bug? Will this be changed in future versions?
    Thanks for any assistance!
    Sample code:
    // Create XML document
    var xmlString = '<Test MixedCase="test">SomeText</Test>'
    var parser = new DOMParser();
    xmlDoc = parser.parseFromString(xmlString, "text/xml");
    // Get XML text
    var serializer = new XMLSerializer();
    text = serializer.serializeToString(xmlDoc);
    IBM Thinkpad T40   Windows 2000  
    IBM Thinkpad T40   Windows 2000  
      Windows XP  
      Mac OS X (10.2.x)  
      Mac OS X (10.0.x)  

    Are you sure the parser is changing the element names?
    (You didn't really mean "attributes", did you?) If it
    is, then that's a bug in the parser. Element names in
    XML are case-sensitive, i.e. they can be upper or
    lower case or any mixture of cases. There aren't
    supposed to be any "features" that let you fiddle with
    the case of element names.
    If you told me that you were using a Transformer to
    produce HTML, and that it was outputting <TR>, I
    wouldn't be surprised. Especially since XALAN is a
    transformer and not a parser. I would just suggest in
    that case that you should change your output method
    from HTML to XML, and to output <tr>. A Transformer
    won't change the case of element names if the output
    method is XML, but it may if the output method is
    HTML.Thanks for the response. Sorry about the vernacular mixup there.
    Here is our situation:
    javax.xml.parsers.SAXParser parser = SAXParserFactory.newInstance().newSAXParser();
    parser.parse(InputSource is, HandlerBase hb) <-- noted that this is a deprecated method
    This parse method here turns the html elements upper case.
    I have experimented with setting the XMLReader on the parser as a HTMLSerializer and XHTMLSerializer with no luck in changing the outcome.
    Hope this clears things up a bit more.

  • XML Parsing in Oracle 11.2.0.3 SE edition.

    Hi all,
    Previously we were using Oracle 11.2.0.1 SE edition which is now upgraded to 11.2.0.3 SE. Is there any difference in the XML parsing between both these versions ?

    The code for parsing is as below:-
    import oracle.xml.parser.schema.*;
    import oracle.xml.parser.v2.*;
    import oracle.sql.CHAR;
    import java.io.*;
    import java.sql.*;
    import oracle.jdbc.OracleDriver;
    import org.xml.sax.*;
    import org.xml.sax.helpers.*;
    // Parse the input XML document with Schema Validation
    in = new FileReader(path + "/" + filename);
    SAXParser sp = new SAXParser();
    sp.setXMLSchema(schemadoc);
    sp.setValidationMode(XMLParser.SCHEMA_VALIDATION);
    sp.setPreserveWhitespace(true);
    sp.setContentHandler(new gnvprdppetimport(filename, ratingImportId, billingImportId, productImportId));
    sp.parse(in);
    The insert statement statement is as below
    private static void createImport(String type, String importId, String filename, String minEdit, String maxEdit, String siteID, String siteName, String catalogueID, String catalogueName, String userID, String invoicingCompanyID, String invoicingCompanyName, String currencyCode, String currencyName)
    throws Exception {
    if (type == "RATING") {insert("ratingimport",new String[]
    {"ratingimport_id", "geneva_user_ora", "import_dtm", "file_name", "ratingedit_min_num", "ratingedit_max_num", "export_site_id", "export_site_name", "exp_rating_catalogue_id", "exp_rating_catalogue_name", "export_geneva_user_ora", "export_invoicing_co_id", "export_invoicing_co_name", "export_currency_code", "export_currency_name", "ratingconflict_boo"},
    new String[] {importId, getUserId(), getSystemDate(), filename, minEdit, maxEdit, siteID, siteName, catalogueID, catalogueName, userID, invoicingCompanyID, invoicingCompanyName, currencyCode, currencyName, "T"});
    }

  • Partial Update error / sample code

    Customer is trying to do Partial Update by refering the sample shown in PartialUpdatesGuide.pdf, however, baseline update is showing following error. Is there any sample code to do partial update with the actual success in some instance, or any resolution for this ?
    WARNING:provisioning warning: The option '--updatedir' is reserved. It has been removed from the command line
    Additional informations are:
    - after partial update, dgraph_input/updates does not have partial update file (directory is empty). It seems that they does not use Parial Update Pipeline in forge, this file is not created.
    - Dgidx log does not show any other error or warning

    The message you see is just a warning that indicates the Dgraph node in your AppConfig XML (either DgraphCluster.xml or AuthoringDgraphCluster.xml) is not specified properly. My guess is that yours looks like this:
    <dgraph id="DgraphA1" host-id="LiveMDEXHostA" port="25000"
    post-startup-script="LiveDgraphPostStartup">
    <properties>
    <property name="restartGroup" value="1" />
    <property name="DgraphContentGroup" value="Live" />
    </properties>
    *     <args>*
    *          <arg>--updatedir</arg>*
    *          <arg>./data/dgraphs/DgraphA1/dgraph_input/updates</arg>*
    *     </args>*
    <log-dir>./logs/dgraphs/DgraphA1</log-dir>
    <input-dir>./data/dgraphs/DgraphA1/dgraph_input</input-dir>
    +<update-dir>./data/dgraphs/DgraphA1/dgraph_input/updates</update-dir>+
    </dgraph>
    The error message is complaining about the args section. The updatedir argument gets sourced from the update-dir element and if you try to specify it in args, you see the message below.
    I think we'll need more information to solve the primary issue (what does your PartialForge.log say, is there anything in data\partials\forge_output). Dgidx does not run during a partial update so not having a warning or error there is expected.
    Regards,
    Patrick Rafferty
    http://branchbird.com

  • Sample code for routine

    Hi all,
    This is what I want to achieve. I have an attribute for an IO, but the values for that has to be decided at the transfer structure level. I want to write a routine in the transfer rules to populate the field.
    I have another field that gets populated from R/3. I need to write a routine which would take this value and see if it falls in the range and have to decide the value and populate.
    I have gl_account coming in, and in the routine I need to take that value of the gl_account and see if it falls in the range of 1 – 5000 or 6700 - 8130 if so assign a + sign and if not assign a – sign to the new field.
    Any sample code would be appreciated and rewarded.
    Thanks,
    Sri

    Global code used by conversion rules
    $$ begin of global - insert your declaration only below this line  -
    TABLES: ...
    DATA:   ...
    $$ end of global - insert your declaration only before this line   -
    $$ begin of routine - insert your code only below this line        -
    DATA: l_s_errorlog TYPE rssm_s_errorlog_int.
       Data:  temp1 TYPE RANGE OF TRAN_STRUCTURE-ZDEBITCREDIT,
       Data:  temp1_line LIKE LINE OF temp1.
       temp1_line-sign = 'I'.
       temp1_line-option = 'BT'.
       temp1_line-low = '001'.
       temp1_line-high = '5000'.
       APPEND temp1_line TO temp1
      Data:  temp2 TYPE RANGE OF TRAN_STRUCTURE-ZDEBITCREDIT,
       Data:  temp2_line LIKE LINE OF temp2.
       temp2_line-sign = 'I'.
       temp2_line-option = 'BT'.
       temp2_line-low = '5001'.
       temp2_line-high = '8000'.
       APPEND temp2_line TO temp2
    Data: temp(1) char.
    if TRAN_STRUCTURE-0glaccnt  IN temp1.
       temp3  = '+'.
    elseif TRAN_STRUCTURE-0glaccnt  IN temp2.
      temp 3= '-'.
    endif
      RESULT = temp3 .
    returncode <> 0 means skip this record
      RETURNCODE = 0.
    abort <> 0 means skip whole data package !!!
      ABORT = 0.
    $$ end of routine - insert your code only before this line         -

  • Xml parser v2.0.2.9

    We are in the beginning stages of our Oracle XML Gateway project and have made no customizations to out-of-the-box expected functionality of XML gateway product. Currently using Oracle 11.5.7 and RDBMS 8.1.7.3.0
    when running ecxver.sql, results indicated that there were invalid XML parser objects and that it needed to be reinstalled using patch 2199206.
    We downloaded the patch but our SysAdmin needs specific instructions on how to go about applying the patch (evidently it is just file replacement and she needs specific instructions) Our SysAdmin can't find any documentation about the XML parser v2.0.2.9 and installation of that patch.
    Am I correct in assuming that we actually need to run a sql script to LOAD the parser from the XDK library? If so, could someone please point us in the right direction?
    Your help is greatly appreciated!
    Meg Hanson

    Please send the TAR name to me.

  • Java and XML Parser. Please guide.

    Hello there,
    I need to pass an XML document using the SAX Parser.
    Please does any one have an XML Parser routine to parse
    the document or can some one guide me as to what to do?

    any sax parsers?What version of Java are you using? With Java 1.4 the XML parser is included in the SDK / JRE.
    If you're using an older version of Java, go to http://xml.apache.org and get the Xerces parser.

  • XML parser error occured in oracle 10g

    Hi,
    XML parser failed while we are using the XMLTYPE.TRANSFORM in oracle 10g product version is 10.2.0.3.0
    I am getting the fallowing error message
    XML-24521: (Error) Element not completed: 'PurchaseOrder' Parser Exception: Element not completed: 'PurchaseOrder'
    but it's working in oracle 9i,both XSD and XSL files are valid only and it's returns the XML data with only one line,the data is truncated in 10g but not in 9i
    In oracle 9i it's returns whole XML data
    is there any idea why the XML parser error in oracle 10g version

    You would be better asking XML questions over in the XML DB

Maybe you are looking for