XML Creation in DB itself !!

Hi,
Can anybody tell me if there is a way out in 9i XDB to create an XML Document within the DB itslef ? i.e. i don't want to load the XML content from any external source and then play around with it. I want to generate the content, create the XML content and store it in the Database itself.
Does anybody know how to do that ?
Thanks in Advance,
Piyush

One easy way to accomplish this is to take an XML-View on some relational tables, like that:
CREATE VIEW emp_xml AS
SELECT XMLElement("employee",
XMLAttributes(empno "id"),
XMLForest(ename "name", job "job", sal "salary"))
FROM emp
WHERE empno = 7369;
This will create an XML-instance that you can further process.

Similar Messages

  • The XML document builds on itself when called twice. Help!!!

    When I run the Sample program for the Oracle classgen for Java
    the XML document node repeats itself when called the second
    time. This is what I mean:
    import oracle.xml.classgen.*;
    import oracle.xml.parser.*;
    public class TestWidl
    static WIDL w1 = new WIDL();
    public static void main (String args[])
    test();
    test();
    static void test ()
    try
    DTD dtd = w1.getDTDNode();
    w1.setNAME("WIDL1");
    w1.setVERSION(WIDL.VERSION_1_0);
    SERVICE s1 = new SERVICE("Service1", "Service_URL");
    s1.setINPUT("File");
    s1.setOUTPUT("File");
    BINDING b1 = new BINDING("Binding1");
    b1.setTYPE(BINDING.TYPE_INPUT);
    BINDING b2 = new BINDING("Binding2");
    b2.setTYPE(BINDING.TYPE_OUTPUT);
    VARIABLE v1 = new VARIABLE("Variable1",
    VARIABLE.NULLOK_FALSE);
    v1.setTYPE(VARIABLE.TYPE_STRING);
    v1.setUSAGE(VARIABLE.USAGE_INTERNAL);
    v1.setVALUE("value");
    VARIABLE v2 = new VARIABLE("Variable2",
    VARIABLE.NULLOK_TRUE);
    v2.setTYPE(VARIABLE.TYPE_STRING1);
    v2.setUSAGE(VARIABLE.USAGE_HEADER);
    VARIABLE v3 = new VARIABLE("Variable3",
    VARIABLE.NULLOK_FALSE);
    v3.setTYPE(VARIABLE.TYPE_STRING2);
    v3.setUSAGE(VARIABLE.USAGE_FUNCTION);
    v3.setMASK("mask");
    CONDITION c1 = new CONDITION("CRef1", "CMatch1");
    c1.setSERVICE("Service1");
    c1.setTYPE(CONDITION.TYPE_SUCCESS);
    CONDITION c2 = new CONDITION("CRef2", "CMatch2");
    c2.setTYPE(CONDITION.TYPE_RETRY);
    CONDITION c3 = new CONDITION("CRef3", "CMatch3");
    c3.setSERVICE("Service3");
    c3.setTYPE(CONDITION.TYPE_FAILURE);
    REGION r1 = new REGION("Region1", "Start", "End");
    b1.addNode(r1);
    b1.addNode(v1);
    b1.addNode(c1);
    b1.addNode(v2);
    b2.addNode(c2);
    b2.addNode(v3);
    w1.addNode(s1);
    w1.addNode(b1);
    w1.addNode(b2);
    w1.validateContent();
    w1.print(System.out);
    catch (Exception e)
    System.out.println(e.toString());
    e.printStackTrace();
    The XML output looks like this:
    First Call to test():
    <?xml version = '1.0' encoding = 'ASCII'?>
    <!DOCTYPE WIDL SYSTEM "file:/home/hmiranda/tmp/WIDL_dtd.txt">
    <WIDL NAME="WIDL1" VERSION="1.0">
    <SERVICE NAME="Service1" URL="Service_URL" INPUT="File"
    OUTPUT="File"/>
    <BINDING NAME="Binding1" TYPE="Input">
    <REGION NAME="Region1" START="Start" END="End"/>
    <VARIABLE NAME="Variable1" NULLOK="False" TYPE="String"
    USAGE="Internal" VALUE="value"/>
    <CONDITION REF="CRef1" MATCH="CMatch1" SERVICE="Service1"
    TYPE="Success"/>
    <VARIABLE NAME="Variable2" NULLOK="True" TYPE="String1"
    USAGE="Header"/>
    </BINDING>
    <BINDING NAME="Binding2" TYPE="Output">
    <CONDITION REF="CRef2" MATCH="CMatch2" TYPE="Retry"/>
    <VARIABLE NAME="Variable3" NULLOK="False" TYPE="String2"
    USAGE="Function" MASK="mask"/>
    </BINDING>
    </WIDL>
    Second Call to test:
    Please note how service1 repeats itself. I would expect that
    the XML string would look like the first output:
    How can I fix this??
    <?xml version = '1.0' encoding = 'ASCII'?>
    <!DOCTYPE WIDL SYSTEM "file:/home/hmiranda/tmp/WIDL_dtd.txt">
    <WIDL NAME="WIDL1" VERSION="1.0">
    <SERVICE NAME="Service1" URL="Service_URL" INPUT="File"
    OUTPUT="File"/>
    <BINDING NAME="Binding1" TYPE="Input">
    <REGION NAME="Region1" START="Start" END="End"/>
    <VARIABLE NAME="Variable1" NULLOK="False" TYPE="String"
    USAGE="Internal" VALUE="value"/>
    <CONDITION REF="CRef1" MATCH="CMatch1" SERVICE="Service1"
    TYPE="Success"/>
    <VARIABLE NAME="Variable2" NULLOK="True" TYPE="String1"
    USAGE="Header"/>
    </BINDING>
    <BINDING NAME="Binding2" TYPE="Output">
    <CONDITION REF="CRef2" MATCH="CMatch2" TYPE="Retry"/>
    <VARIABLE NAME="Variable3" NULLOK="False" TYPE="String2"
    USAGE="Function" MASK="mask"/>
    </BINDING>
    <SERVICE NAME="Service1" URL="Service_URL" INPUT="File"
    OUTPUT="File"/>
    <BINDING NAME="Binding1" TYPE="Input">
    <REGION NAME="Region1" START="Start" END="End"/>
    <VARIABLE NAME="Variable1" NULLOK="False" TYPE="String"
    USAGE="Internal" VALUE="value"/>
    <CONDITION REF="CRef1" MATCH="CMatch1" SERVICE="Service1"
    TYPE="Success"/>
    <VARIABLE NAME="Variable2" NULLOK="True" TYPE="String1"
    USAGE="Header"/>
    </BINDING>
    <BINDING NAME="Binding2" TYPE="Output">
    <CONDITION REF="CRef2" MATCH="CMatch2" TYPE="Retry"/>
    <VARIABLE NAME="Variable3" NULLOK="False" TYPE="String2"
    USAGE="Function" MASK="mask"/>
    </BINDING>
    </WIDL>
    Any Help is appreciated.
    Hector.
    null

    Hector Miranda (guest) wrote:
    : When I run the Sample program for the Oracle classgen for Java
    : the XML document node repeats itself when called the second
    : time. This is what I mean:
    : import oracle.xml.classgen.*;
    : import oracle.xml.parser.*;
    : public class TestWidl
    : static WIDL w1 = new WIDL();
    : public static void main (String args[])
    : test();
    : test();
    : static void test ()
    : try
    : DTD dtd = w1.getDTDNode();
    : w1.setNAME("WIDL1");
    : w1.setVERSION(WIDL.VERSION_1_0);
    : SERVICE s1 = new SERVICE("Service1", "Service_URL");
    : s1.setINPUT("File");
    : s1.setOUTPUT("File");
    : BINDING b1 = new BINDING("Binding1");
    : b1.setTYPE(BINDING.TYPE_INPUT);
    : BINDING b2 = new BINDING("Binding2");
    : b2.setTYPE(BINDING.TYPE_OUTPUT);
    : VARIABLE v1 = new VARIABLE("Variable1",
    : VARIABLE.NULLOK_FALSE);
    : v1.setTYPE(VARIABLE.TYPE_STRING);
    : v1.setUSAGE(VARIABLE.USAGE_INTERNAL);
    : v1.setVALUE("value");
    : VARIABLE v2 = new VARIABLE("Variable2",
    : VARIABLE.NULLOK_TRUE);
    : v2.setTYPE(VARIABLE.TYPE_STRING1);
    : v2.setUSAGE(VARIABLE.USAGE_HEADER);
    : VARIABLE v3 = new VARIABLE("Variable3",
    : VARIABLE.NULLOK_FALSE);
    : v3.setTYPE(VARIABLE.TYPE_STRING2);
    : v3.setUSAGE(VARIABLE.USAGE_FUNCTION);
    : v3.setMASK("mask");
    : CONDITION c1 = new CONDITION("CRef1", "CMatch1");
    : c1.setSERVICE("Service1");
    : c1.setTYPE(CONDITION.TYPE_SUCCESS);
    : CONDITION c2 = new CONDITION("CRef2", "CMatch2");
    : c2.setTYPE(CONDITION.TYPE_RETRY);
    : CONDITION c3 = new CONDITION("CRef3", "CMatch3");
    : c3.setSERVICE("Service3");
    : c3.setTYPE(CONDITION.TYPE_FAILURE);
    : REGION r1 = new REGION("Region1", "Start", "End");
    : b1.addNode(r1);
    : b1.addNode(v1);
    : b1.addNode(c1);
    : b1.addNode(v2);
    : b2.addNode(c2);
    : b2.addNode(v3);
    : w1.addNode(s1);
    : w1.addNode(b1);
    : w1.addNode(b2);
    : w1.validateContent();
    : w1.print(System.out);
    : catch (Exception e)
    : System.out.println(e.toString());
    : e.printStackTrace();
    : The XML output looks like this:
    : First Call to test():
    : <?xml version = '1.0' encoding = 'ASCII'?>
    : <!DOCTYPE WIDL SYSTEM "file:/home/hmiranda/tmp/WIDL_dtd.txt">
    : <WIDL NAME="WIDL1" VERSION="1.0">
    : <SERVICE NAME="Service1" URL="Service_URL" INPUT="File"
    : OUTPUT="File"/>
    : <BINDING NAME="Binding1" TYPE="Input">
    : <REGION NAME="Region1" START="Start" END="End"/>
    : <VARIABLE NAME="Variable1" NULLOK="False" TYPE="String"
    : USAGE="Internal" VALUE="value"/>
    : <CONDITION REF="CRef1" MATCH="CMatch1"
    SERVICE="Service1"
    : TYPE="Success"/>
    : <VARIABLE NAME="Variable2" NULLOK="True" TYPE="String1"
    : USAGE="Header"/>
    : </BINDING>
    : <BINDING NAME="Binding2" TYPE="Output">
    : <CONDITION REF="CRef2" MATCH="CMatch2" TYPE="Retry"/>
    : <VARIABLE NAME="Variable3" NULLOK="False" TYPE="String2"
    : USAGE="Function" MASK="mask"/>
    : </BINDING>
    : </WIDL>
    : Second Call to test:
    : Please note how service1 repeats itself. I would expect that
    : the XML string would look like the first output:
    : How can I fix this??
    : <?xml version = '1.0' encoding = 'ASCII'?>
    : <!DOCTYPE WIDL SYSTEM "file:/home/hmiranda/tmp/WIDL_dtd.txt">
    : <WIDL NAME="WIDL1" VERSION="1.0">
    : <SERVICE NAME="Service1" URL="Service_URL" INPUT="File"
    : OUTPUT="File"/>
    : <BINDING NAME="Binding1" TYPE="Input">
    : <REGION NAME="Region1" START="Start" END="End"/>
    : <VARIABLE NAME="Variable1" NULLOK="False" TYPE="String"
    : USAGE="Internal" VALUE="value"/>
    : <CONDITION REF="CRef1" MATCH="CMatch1"
    SERVICE="Service1"
    : TYPE="Success"/>
    : <VARIABLE NAME="Variable2" NULLOK="True" TYPE="String1"
    : USAGE="Header"/>
    : </BINDING>
    : <BINDING NAME="Binding2" TYPE="Output">
    : <CONDITION REF="CRef2" MATCH="CMatch2" TYPE="Retry"/>
    : <VARIABLE NAME="Variable3" NULLOK="False" TYPE="String2"
    : USAGE="Function" MASK="mask"/>
    : </BINDING>
    : <SERVICE NAME="Service1" URL="Service_URL" INPUT="File"
    : OUTPUT="File"/>
    : <BINDING NAME="Binding1" TYPE="Input">
    : <REGION NAME="Region1" START="Start" END="End"/>
    : <VARIABLE NAME="Variable1" NULLOK="False" TYPE="String"
    : USAGE="Internal" VALUE="value"/>
    : <CONDITION REF="CRef1" MATCH="CMatch1"
    SERVICE="Service1"
    : TYPE="Success"/>
    : <VARIABLE NAME="Variable2" NULLOK="True" TYPE="String1"
    : USAGE="Header"/>
    : </BINDING>
    : <BINDING NAME="Binding2" TYPE="Output">
    : <CONDITION REF="CRef2" MATCH="CMatch2" TYPE="Retry"/>
    : <VARIABLE NAME="Variable3" NULLOK="False" TYPE="String2"
    : USAGE="Function" MASK="mask"/>
    : </BINDING>
    : </WIDL>
    : Any Help is appreciated.
    : Hector.
    Move
    WIDL w1 = new WIDL();
    out of test() and modify it as
    public class TestWidl
    static WIDL w1 = new WIDL(); ...
    and this will work.
    Oracle XML Team
    http://technet.oracle.com
    Oracle Technology Network
    null

  • XML Creation Using Jdevloper

    Hi Gurus.
    I m developing a web service using Jdevloper. In this I am creating one xml file.
    problem is I want to store this xml file under my web service package. but Its gettingcreated to another location
    here is my file creation code
    File file = new File("./generic-config.xml");
    this file is creating under " C:\OAFramework\jdevbin\j2ee\home "
    What is the reason behind this ? and how to store it inside my web service folder
    my web service folder is " C:\OAFramework\jdevhome\jdev\mywork\GenericWebservices\GenericWebservice "
    Regards,
    Ajay

    File file = new File("./generic-config.xml");This line creates a file relative to the "working directory" of the JVM. the JVM you are running in must therefore have the working directory "C:\OAFramework\jdevbin\j2ee\home". if you are running within a Servlet container, you may be able to use http://docs.oracle.com/javaee/5/api/javax/servlet/ServletContext.html#getRealPath%28java.lang.String%29 to get the path to your servlet directory. otherwise, i don't know a way of getting that path from within the jvm.

  • XML creation/parsing/validation & performance

    Hello friends. I'm faced with a situation in which I need to create and parse many relatively small xml documents. Most of the XML I will be exchanging is very simple, such as:
    <? xml version="1.0"?>
    <transactionId>12345</transactionId>
    <accountId>98765</accountId>
    <address>123 Main Street</address>
    I have done enough research and prototyping to create and parse these simple documents using the DOM model. I have really started to wonder if I'd be better of simply hardcoding the creation and parsing of these documents. I'm getting some of these documents as a String over HTTP and then creating a DOM which I then can parse and am just not sure if what I am gaining in good programming practice is worth incurring the overhead of the DOM creation and parsing process.
    I'm even more divided on the issue of using DTDs or XML Schemas to validate the structure of these tiny documents. I will be having to exchange a lot of these tiny XML messages and am comfortable with the fact that the parties I am trading XML with are not going to be changing things up on the fly.
    On the other hand, I am a beginner in the XML world and am sure there could be a hundred things I haven't thought off.
    I am grateful for any assistance.
    CM

    Also,
    I assume that the values in you XML document are values from Java Objects, so why not have an interface defining a "toXml()" method for application classes to implement. All the classes would need to do is to know how to write its properties (variables) to an XML document. Again JDOM can handle his very easily... see below code....
    /** method to return the entity properties as an XML string.
    * @return the objects properties in an XML document String.
    public String toXml() {
    XMLOutputter out = null;
    String xml = null;
    Document document = new Document(new Element( "gallery-xml" ));
    Element root = document.getRootElement();
    Element content = new Element("gallery");
    content.addContent(new Comment("Details of Gallery as an XML document"));
    * Add attributes to xml document
    DateFormat format = DateFormat.getDateInstance();
    content.addContent(new Element( "image-id" ).addContent( getUUID() ));
    content.addContent(new Element( "name" ).addContent( this.getImageName() ));
    content.addContent(new Element( "student-name" ).addContent( this.getStudentName() ));
    //content.addContent(new Element( "image-bytes" ).addContent( new String(this.getImageBytes()) ));
    content.addContent(new Element( "image-file" ).addContent( this.getImageFile() ));
    content.addContent(new Element( "date-created" ).addContent( format.format( this.getDateCreated() )));
    content.addContent(new Element( "description" ).addContent( this.getDescription() ));
    content.addContent(new Element( "subset" ).addContent( this.getSubset() ));
    content.addContent(new Element( "year" ).addContent( this.getYear() ));
    content.addContent(new Element( "course-id" ).addContent( this.getCourseId() ));
    root.addContent( content );
    //write to a string
    out = new XMLOutputter(" ", true);
    xml = out.outputString(document);
    if (Logger.DEBUG) System.out.println( out.outputString( document ) );
    return xml;

  • XML Creation

    I have three big stumbling blocks when creating XML files (thru scripting).
    1) How can I utilize variables inside my xml code.
    ex. var myRoot = new XML ("<job> <task> 1 </task> </job>")
    How can I replace the 1 with a variable?
    2) How can I have quotes appear in the elements?
    ex. <winexe> "R:\Apps\AfterEffects6\Support Files\aerender.exe" </winexe>
    It generates an error (needs a following ')' )when adding them into the code, since it's trying to terminate the '= new XML ("'
    3) How can I add "comment" code to the XML document
    ex. I need it to say: <!-- Set Frame Settings -->
    Thanks for your help!
    -Dave

    Not sure why I couldn't get the quotes working before... Perhaps I needed to add a space after it..
    This works:
    var catWinexe = " \"R:\\Apps\\AfterEffects6\\Support Files\\aerender.exe\" ";
    Another question:
    I've now moved onto UI creation... What I would like to do is create edittext boxes, which would populate my variables.. I'm having a problem on my first attempt..
    // Add a panel to contain the components
    win.pnlA = win.add("panel", [10, 10, 400, 450], "Settings");
    win.pnlA.displayTextLbl = win.pnlA.add("statictext", [10, 415, 100, 430], "XML Name:");
    XMLName = win.pnlA.add("edittext", [100, 415, 225, 430], 'XMLTest5');
    var logFile = new File("/c/TEMP/" + XMLName + ".xml");
    Most of the rest of the script creates lots more static and edit texts with other panels... My problem is, I'm not sure how to get the result of the edittext (in my example, XMLTest5) to appear in the variable/filename. My filename is unwantingly written as [object EditText].xml
    Thanks again for your help.
    -Dave

  • Default encoding used for XML creation

    Hi Experts
    I'm using the SAP XML library to create XML documents e.g. to exchange generic data between different SAP systems as well as between SAP and None-SAP systems.
    Everything works fine but one important question came up several times. Which encoding is used by default if a DOM is created but no specific encoding is set? Can this default encoding be changed e.g. in some system settings?
    If the XML document created in my coding contains unreadable characters or parsing is not possible the encoding to be used can be set by the administrator in own customizing tables. At the moment I'm trying to find under what circumstances the default can be used and when a particular characters set / byte order has to be defined. Furthermore instead of "try and error" I'd like to find (and describe) the attributes based on which the correct character set to be used can be determined.
    Thank you in advance for any hints!
    Best regards,
    Matthias

    Unicode defines several character sets and that java uses one of those that has been specified as the encoding in the code itself.. Several of these supported are 16 bit character sets like Chinese character sets and so forth. The default encoding however for a java application is ISO-8859-1 which is an 8-bit encoding.
    The classes java.io.InputStreamReader, java.io.OutputStreamWriter, and java.lang.String can convert between Unicode and a number of other character encodings. However this conversion has to be performed explicitly in the code. so java by default doesnt support 16 bit characters unless specified in the code or in certain cases respective MIME headers are used properly.

  • Get data stored in xml of pdf-form itself at the runtime

    Hello,
    I generate a pdf form with some data includet e.g. firstname = dave. personID = 12345.
    all this data (import-parameter is a table) is "stored" in the xml of my form:
    <?xml version="1.0" encoding="UTF-8"?>
    <xfa:data xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/">
       <data>
          <IF_TABLE_PERSON>
               <DATA xfa:dataNode="dataGroup">
                    <FIRSTNAME>Dave</RFIRSTNAME>
                   <PERSONID>12345</PERSONID>
    firstname is binded to a textfield therefore there is no problem to get it.
    because it is a table i could get the value in several ways:
    a) myFirstNameField.rawValue;
    b) this.resolveNode("$record.IF_TABLE_PERSON.DATA[1]").FIRSTNAME.value;
    The PartnerID must not be binded anywhere (no hidden fields!). The question is, how do i get the value of PERSONID directly from xml?
    xfa.datasests.data ..... ????
    Thanks!

    Just one more question to get it right:
    <xfa:data xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/">
       <data>
          <IF_TABLE_PERSON>
             <DATA>
                <FIRSTNAME/>
                <PERSONID>
              </DATA>
             <DATA>
                <FIRSTNAME/>
                <PERSONID>
              </DATA>
          </IF_TABLE_PERSON>
    In case I want to get the content of IF_TABLE_PERSON -Tag I use xfa.datasets.data.data.IF_TABLE_PERSON.saveXML("pretty");
    I have tried to get through to PERSONID like this:
    xfa.datasets.data.data.IF_TABLE_PERSON.PERSONID.saveXML("pretty");  ---- it is undefined, because it is inside another DATA-tag and there are several of them
    So I have to use something like an array?!
    xfa.datasets.data.data.IF_TABLE_PERSON[1].PERSONID.saveXML("pretty");    --- doesn't work either
    What is the correct way to "loop" trough the schema in this case?

  • DOM XML creation

    Hi Experts,
    I want to create a XML file representing the orgainzation structure tree in HR by Creating a DOM tree using the standard classes and methods. I am refereing to the following link
    http://help.sap.com/saphelp_nw04/Helpdata/EN/86/8280db12d511d5991b00508b6b8b11/frameset.htm
    CAn any one share abap code or example related to this?
    Thanks and Regards,
    SHilpa Dhawan

    Is there any chance that you have came across with [this document|http://help.sap.com/saphelp_nw04/Helpdata/EN/86/8280d212d511d5991b00508b6b8b11/content.htm]?
    Cheers

  • XML creation in AS2

    Hello everyone,
    Im trying to create a text node within a child node:
    user_xml.firstChild.appendChild( user_xml.createTextNode("<![CDATA[------]]>") );
    but when I trace this I get:
    user_xml = <UserDetails>&lt;![CDATA[------]]&gt;</UserDetails>
    Which is not what I need.
    What I need returning is:
    user_xml = <UserDetails><![CDATA[------]]></UserDetails>
    Any help with this matter would be really appreciated.
    Thank you in advance.

    I'm experiencing this problem also.  In my case, I'm loading xml into an array.   Tracing the xml gives me this Chuir&lt;br /&gt;An do chuir and tracing the array gives me this "Chuir<br />An do chuir",   I've tried .split('&lt;').join('<').split('&gt;').join('>'); at various points but I've not been successful.  If anyone could give me any pointers, I'd be grateful.
    Regards
    Marion

  • Grouping items from query for xml creation

    Hello,
    I am working on a new photo gallery that uses categories.
    Each category is stored in a category xml element. then the images
    are stored in the category element. I am having trouble figuring
    out how to create this on the fly. With only one category it works
    fine but I am having diffuculty seperating it into groups. The db
    schema is like this imagePath, imageTitle, imageDesc, category. I
    will post the code i am currently using to create the xml now and
    show where i need the categories to loop. Thanks in advance. I am
    posting a second approach with the code where the query is put in a
    array and then I statacially add in what to look for in the array.
    This approach would be fine if i could make it dynamic and grab the
    Exteriors and Interiors from the catList variable. Thanks again for
    any insight on solving this problem.
    Justin
    Justin

    ...i would use a XMLListCollection filterFunction for that...
    that generates a special view of your collection
    r.F.

  • Stack XML creation for specific package

    Hello
    I want to upgrade my ERP 6.0 EHP4 system's LSOFE 603 to 604 but I received I need a stack.xml for upgrade. Our Solution Manager 7.0 EHP1 system is recognising ERP system's SP levels but it is not giving me an upgrade option for LSOFE. I only saw latest SP which was 7 and all other SP's latest levels but not upgrade packages.
    How can I create a stack.xml for LSOFE 604?

    hi,
    If you operate a Netweaver system that contains at least one ERP software component (ERECRUIT, SEM-BW, FINBASIS or LSOFE), you must not use a stack XML file created for an SAP ERP system. Instead, you have to use a stack XML file for SAP NetWeaver systems. The EHP4 packages for the ERP software components have to be added manually in phase IS_SELECT.
    Generating the Stack XML File
    First of all, create a stack XML file for NetWeaver systems. This can be done either via the SAP Service Marketplace or in the Maintenance Optimizer of your SAP Solution Manager.
    check and update.
    Jansi

  • XML creation for UPS.

    Does anyone here have any experience with using foxpro to create XML files for the purpose of exporting to UPS?
    It seems I can't use something like cursortoxml() because the UPS xml requirement are obviously more than field names.
    I'm trying to avoid writing a totally custom xml code, and I was wondering if anyone has experience with a similar situation.
    thanks.

    Its very unlikely that you will have a table(s) in your application that will have or need the exact fields, etc. that are used by UPS. A lot of the UPS info can be defaulted or will be completed from various tables like product info, customer address, and
    packaging info from any warehouse/distribution functions. 
    Also the XML for UPS is multi-layered whereas the export of a table is single layered.
    I therefore suggest the following:
    a) learn to use VFP Collections
    b) build a procedure with a Collection of at least 4 parts i) XML tag, ii) XML attributes, iii) the XML tag data value (as a string of course), iv) an object link for any lower Collection in order to replicate the multi layer XML requirement.
    c) as you process through your data/function building/obtaining the relevant "XML" elements required by UPS call the procedure you created under b) above.  So that tag names, attributes, tag values, and whether the item is to be appended at
    the existing level or at a lower level can be used by the procedure.
    d) Having completed the building of the UPS data within a Collection have another procedure that can take a Collection and build the entire XML string from it. Use recursion to step down and back up the XML levels.  At this stage you may also decide
    to import a text file containing the constant XML leading text/string; plus closing string. That way when the XML parameters etc. are changed by UPS, you only need to change a text file and not your program.
    The English Bob

  • XML creation help

    hi all ! Im trying to create a XML with the following structure:
    <Programa> <!--root -->
    <Agenda><sub>Piso</sub></Agenda>And Im trying to generate that with the following code:
    Element root = doc.createElement("Programa");
                doc.appendChild(root);
                //create a comment and put it in the root element
                Comment comment = doc.createComment("Agenda");
                root.appendChild(comment);*/
                //create child element, add an attribute, and add to root
                Element child = doc.createElement("Agenda");
                child.appendChild(doc.createElement("sub"));
                child.appendChild(doc.createTextNode("Piso"));But the result Im getting is:
    <Programa>
    <Agenda>
    <sub/>Piso</Agenda>
    </Programa>How should it be?
    Thanks!

    So far my code to generate the XML is:
    String[] splitString = cadena.split(",");
    for(int i=1; i<splitString.length;i++){
    System.out.println(splitString);
    //create child element, add an attribute, and add to root
    Element child = doc.createElement("Agenda");
    Element sub = doc.createElement("sub");
    sub.appendChild(doc.createTextNode(splitString[i]));
    child.appendChild(sub);
    root.appendChild(child);The idea is to have the the spaces like this:
    so it would be:
    <Agenda><sub>DATA1</sub></Agenda>
    <Agenda><sub>DATA2</sub></Agenda>
    <Agenda><sub>DATA3</sub></Agenda>
    SPACE
    So all I have to do is to make a new element named space for example.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Xml creation and copying information from multiple documents

    Hi
    I havent used java in at least a couple of years and im really rusty,
    i have a xml document that specifies the layout of a word document it has a specific table that needs to be filled,
    what i would like to do is design some code in java to
    (1)access a word document
    (2)copy some specific information from it and
    (3) paste this information into the xml sheet at appropriate locations so that i can populate the table,
    (4)i would also like for when there is more then one set of information for the table to be copied and pasted further down the word document so it can be populated, and this would continue till all elements from the origional document have been copied,
    i hope tha makes sense
    Its just i dont even know where to start

    Another approach, where you only need a subset of Flow A from various other documents, is to tag the source documents so that the subsets are uniquely identified by Condition Codes.
    In the documents that re-use the content, import the entire Flow A's from all the source documents, and switch off the conditions not of interest.
    I do this with domestic vs. export manuals, where the export manual body imports the entire Flow A of the domestic, and turns off the condition code for domestic-only content.
    Text inset caveats still apply.
    CC count could get unwieldy.

  • Large xml creation advise

    HI,
    I need your to create xml files for about 10000 combinations of data that will be housed in a sybase database. The XSD for the XML is defined (by the ppl who will process the XML) and the database design is flexible.
    I have prevoiously (about 3 years ago) worked with DOM to generate small to moderate size XML files but am not sure that would work for this large a size (memoy issues). Can you please advise what is the best way to approach this, given the recent development in XML technology and java?
    Any help is appreciated?

    To generate an XML output file you do not need to use DOM. Need more information to answer your question:
    - Does the output xml file contain data from more than one table in the database?
    - Does the db vendor (I am not familiar with the latest version of Sybase) provide xml as an output format of queries/stored procedures
    -- Dorai

Maybe you are looking for

  • SoundTrak Crashed!! How I got my data back.

    If you get the beachball during a record, by what could be the screen saver kicking in or the disk drive going to sleep (all of which should be disabled to start with), then you might get a file which shows size and a good time of creation, but it wo

  • Calendar item off by one hour after daylight savin...

    Hi, When I accept an outlook meeting invitation from my phone (Lumia 520) it gets into the phone´s calendar one hour earlier than sceduled in the invitation. I have checked settings, the outlook invite as well as my phone has the same timezone settin

  • I want to give custome error page in web dynpro application

    Hi , I want to give custom error page for time out condition in my web dynpro application  . Kindly give me a soulation ASAP. Thank's and regard's. Vikash.

  • How can I insert a link to a YouTube video in RoboHelp?

    How can I insert a link to a YouTube video in a RoboHelp CHM topic or in a WebHelp topic. On YouTube, I can select Share \ Embedded and get this HTML: <iframe width="560" height="315" src="//www.youtube.com/embed/hz1egoBSukE?list=PLAAC40DA8171E6038" 

  • How to create bid without vevdors

    Hi everyone!! dose someone can help me and tell me how can i create bid with no vendor? I would like to create a bid without choosing vendor and publish the bid. The Vendors will be added to the bid after the publishing. Thanks, Yaron Malka.