XML Order

Delving into exporting typeset material as XML. I've loaded a DTD and having decent success with what I need to do.
However, I untagged a frame not realizing it untagged every IN the frame as well. When I reapplied the tags I needed in the text of the new tags went to the END of the xml file, presumably because they were at the bottom of the XML structure.
I've looked a bit but haven't found a way to automatically re-order the XML structure to automatically follow the tagged content, page for page, top to bottom of page. Is there really no way to do so?
I've written quite a bit of scripting for InD and looked at the object model but didn't readily see anything there that might help either.
Thanks for any insight,
Ken

What does your query look like? Can you do that compuations in sql rather than in reports builder? Once they become scalar columns in reports, rather than formula columns or placeholder columns, you should be able to order them in the query builder screen.

Similar Messages

  • XML ordering

    Hello folks!
    I am using Flex Builder 3 to create a portfolio site. Now i
    have a .XML which i need data from. The XML contains an image, a
    title, a description and a date.
    Now i can retrieve the title and description. Ofcourse i can
    retrieve the date also but there a small thing i need.
    I want to retrieve the last 3 dates ordering DESC.
    How do i do this?
    Greetings

    Hello folks!
    I am using Flex Builder 3 to create a portfolio site. Now i
    have a .XML which i need data from. The XML contains an image, a
    title, a description and a date.
    Now i can retrieve the title and description. Ofcourse i can
    retrieve the date also but there a small thing i need.
    I want to retrieve the last 3 dates ordering DESC.
    How do i do this?
    Greetings

  • Extend xml for orders by BBP_SAPXML1_OUT_BADI

    Hi,
    We need to extend xml order export with specifical xml flag. We have some samples for extend catalogs (extend by structure TYPE BBPX1_CATALOG_TRANSMISSION), but we dont have such a structure in the order badi (the structure TYPE BBPX1_PURCHASE_ORDER_MESSAGE do not have any table type bbpx1_item_str to fill specifical flags).
    Could you help us ?
    Thanks in advance,
    Vincent Tanguy

    10.06.2010 - 10:08:01 CET - Reply by SAP
    Dear customer
    please remark note 806127 which describes how to swap user-defined
    fields using SAP-PI/XI. This notes was created based on SRM4.0/5.0 but
    its contect is as well valid for SRM6.0/7.0.
    The exchange of data with the SRM-application is realized by customer
    fields described in note 672960. This is the SRM70 solution instead of
    old customer fields described in note 458591.
    According to note 806127 there are the following steps required
    1.) Use customer enhancements in the Integration Repository to enhance
    the interfaces correspondingly
    for details please see
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm
    and follow this path
    Design and Configuration Time
    Design
    Designing Interfaces and Proxy Generation
    Developing Message Interfaces
    Data Types
    Data Type Enhancements
    2.) Generate proxies in the SRM system
    3.) Implement the BAdIs in the SRM system (only when the interface
    enhancements do not have the same name as the customer fields)
    In case the new field for your flag has same name in interface
    enhancement and as customer field then the data transport is done
    automatically (move-corresponding like). And you do not have to
    implement the BBP_SAPXML1_OUT_BADI
    kind regards
    Andreas Schaeff
    IMS SRM development support Germany

  • DI API Error Code - 1, Error Message - General Error while adding order

    Hi All,
        While adding sales order using di api(in .net web application), i receives error(code-1, message-general error) if some particular items are inserted as line items. For all other items, it works fine.
        I put code to export the order to be added as xml if its giving such error. Then I have written one vb code which accepts xml as input and adds order from it. I tried exported xml with this application and it worked, without any change in exported xml order.
        So I thought if general error comes, .net web page should export order xml and import it again and then use add method. But its not working. Though exported xml gets imported and order gets created if I use the other vb code(i run this after some 5 to 10 min, after order is not created from web application).
        Please help me out of this problem.
    Thanks and Regards,
    Yogesh.

    Hi Yogesh,
    I am not sure about the cause for your problem, but I would recommend to:
    a) use SQL Profiler to find out (hopefully) where the transaction actually breaks and
    b) involve SAP Support to find out what doesn't work when you use these particular items.
    HTH,
    Frank

  • How to export purchase order dtd from SRM 5.5

    In earlier versions of SRM one could export an XML DTD based on the corresponding IDoc. However, in 5.5 there is no purchase order IDoc.
    I need to send a vendor the DTD for the XML purchase order we are going to send to them electronically.
    Where can I find and download the XML DTD for purchase orders in SRM 5.5?

    Stuart,
    we were doing this to transmit XML orders to a Market Place but we had to use our PI server.
    If you have no PI server then I am not sure the option exists.
    If you have a PI server, I suggest you ask the PI person as I know nothing about PI.  The config for XML output in SRM is in SPRO > SRM Server > Cross Application Basic Settings > Set Output actions and Output Format
    Regards
    Allen

  • XML Schemas & XML SCHEMA COLLECTIONS: XSD.exe & the tool in C:\Program Files (x86)\Microsoft SDKs\Windows\v7..0A\Bin\x64?.

    Hi all,
    I just read Pages 346-348 of the book "Microsoft SQL Server 2012 Bible" written by A. Jorgensen, P. LeBlanc, J. Chinchilla, J. Segarra & A. Nelson (published by Wiley) regarding XML Schemas and XML SCHEMA COLLECTIONS: Step 1.  create and
    save orderxml.xml
    <Order OrderID="1">
    <Item>
    <ItemNumber>V001</ItemNumber>
    <Quantity>1</Quantity>
    <Price>299.99</Price>
    </Item>
    </Order>
    Step 2.  using the tool in the following location:
    C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\x64
    Open a command prompt, and navigate the preceding directory. The syntax for creating schema is: Xsd.exe C:\temp\orderxml.xml /outputdirectory:c:\temp  to create the orderxml.xsd file.  
    Step 3. Copy all the contents of the orderxml.xsd file to the clipboard, and create a new query window in SQL Server Management Studio, pasting in the content of the clipboard. To create the XML Schema Collection, you need to add the CREATE XML SCHEMA COLLECTION
    statement to the beginning of the schema as shown below:
    --MSss2012bibleP348.sql for XML Schema Collection OrderInformationSchemaCollection
    -- Copied and executed by SHC (Date & Time): 24 April 2015 8:05 AM
    USE ScottChangDB
    GO
    Create XML SCHEMA COLLECTION OrderInformationCollection AS
    N'<?xml version="1.0" encoding="utf-16"?>
    <xs:schema id="NewDataSet" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema"
    xmlns:msdata="urn:schema-microsoft-com:xml-msdata">
    <xs:element name="Order">
    <xs:sequence>
    <xs:element name="Item" minOccurs="0" maxOccurs="unbounded".
    <xs:complexType>
    <xs:sequence>
    <xs:element name="ItemNumber" type="xs:string" minOccurs="0" />
    <xs:element name="Quantity" type="xs:string" minOccurs="0" />
    <xs:element name="price" type="xs:string" minOccurs="0" />
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    </xs:sequence>
    <xs:attribute name="OrderID" type="xs:string" />
    </xs:complexType>
    </xs:element>
    <xs:element name="NewDataSet" msdata" msdata:IsDataSet="true"
    msdata:UseCurrentLocale="true">
    <xs:complexType>
    <xs:choice minOccurs="0" maxOccurs="unbounded'>
    <xs:element ref="Order" />
    </xs:choice>
    </xs:complexType>
    </xs:element>
    </xs:schema>' ;
    /* Apply it to the table/columns */
    ALTER TABLE ItemInfo
    ALTER COLUMN ItemData xml (OrderInformationCollection)
    GO
    I prepared (i) the orderxml.xml file for Step 1 and Step 2, and (ii) the MSss2012bibleP348.sql file for Step 3. But I am not sure that I can do the Steps (i) and (ii) in my PC that does not have the regular version of Microsoft SQL Server 2012 and Microsoft
    Visual Studio 2012. Furthermore, I  have difficulties to do Step 2 and Step 3 in my PC that is the part of Windows 7 Lan Computer System in my office: I navigated to my C:\Program Files (x86)\Microsoft SDKs\v7.0A\Bin\, I did not see the x64
    thing in the  Bin folder, but, I saw the xsd.exe in the Bin folder. If I click the xsd.exe and I get the following in the bottom of the PC screen:   
    xsd.exe Date modified:12/122011 12:55 PM    Date created:  12/12/2011  12:55 PM
    Applicaion    Size:81.8 KB
    Also, I see my PC screen flashes (and it looks like a dialog box with black background to flash for me to type the command) quickly. I am lost completely in this step and I don't understand the whole thing in doing Step 1, Step 2, and Step 3
    I briefly summarized/described/presented above.
    I need the following help from the experts of XML Schemas and XML Schema Collections in Microsoft SQL Server 2012 Management Studio:
    Help #1: I don't understan the concept of Step 1, Step2 and Step 3 to do XML Schema, XSD.exe, and XML Schema Collection in the SQL Server 2012!!?? I just have the SQL Server 2012 Management Studio (SSMS2012) in my PC.
    Help #2: How can I execute the xsd.exe in my C:\Program Files  (x86)\Microsoft SDKs\Windows\v7.0A\Bin\ folder?
    Help #3: I just learned the basic things of creating XML SCHEMA COLLECTIONS in my SSMS2012 directly. Is the MSss2012P348.sql (I created and presented above) right for the task? How can I use clipboard to create the XML Schema Collection in my ScottChangDB
    database?
    Please kindly help and give me the answers/comments for Help #1, Help #2 and Help #3.
    Thanks in advance,
    Scott Chang  

    Hi Scott,
    Help #1: I don't understan the concept of Step 1, Step2 and Step 3 to do XML Schema, XSD.exe, and XML Schema Collection in the SQL Server 2012!!?? I just have the SQL Server 2012 Management Studio (SSMS2012) in my PC.
    Step1 and Step2 not that related to SQL Server, you can get the XSD from a given XML with an online XSD generator.
    Google search: XSD generator
    Help #2: How can I execute the xsd.exe in my C:\Program Files  (x86)\Microsoft SDKs\Windows\v7.0A\Bin\ folder?
    Please see the link in the #1
    Help #3: I just learned the basic things of creating XML SCHEMA COLLECTIONS in my SSMS2012 directly. Is the MSss2012P348.sql (I created and presented above) right for the task? How can I use clipboard to create the XML Schema Collection in
    my ScottChangDB database?
    See the syntax and example in
    create XML schema collection
    If you have any question, feel free to let me know.
    Eric Zhang
    TechNet Community Support

  • XML docs with BLOB

    I know it is possible to save an XML document into a BLOB field. However, can anyone tell me if it is possible to pass a BLOB in an XML document. What I mean is can I have an XML document structured as follows? Is so, where can I find the syntax. We receive XML orders via XSQL page and would like to store this data in the DB.
    <xml version="1.0">
    <books>
    <book>
    <isbn>032541251</isbn>
    <title>How to Program in XML</title>
    <cover>****.jpg file with picture of book that can be store in BLOB ****</cover>
    <exceprt>****.PDF or MS Word .DOC of prelude for example****</except>
    </book>
    </books>
    </xml>
    Any help would be appreciated

    Refer
    http://builder.com.com/5100-31-5075709.html
    The XMLType may also be used.
    http://www.oracle.com/technology/sample_code/tech/java/codesnippet/xmldb/HowToLoadLargeXML.html

  • URL for posting Orders to XI system.

    Could somebody send me an example of the <u>simpliest possible way</u> that a (external) URL would look like for a Customer to send an XML Order to my XI system ?
    For instance in our Business Connector we give this URL to our Customers
    https: / /<bcserver.xyz.com>:9999/invoke/XML/Handle_XCBL_Post     
    the content-type header is text/xml and it contains an XML document in the body.
    What is the equivalent in XI ?  Do I need the Customer to build a large URL with namespaces, servicenames, party,clients etc etc.    Notice that the Business Connector URL currently being used by our various different Customer is nice and simple (as once the Order is received by that service the contents are interrogated for routings etc).

    Hi ,
    If you want to send from remote sever you will have to create URL like the following which includes namespace and sender service etc...
    http://172.16.17.22:8001/sap/xi/adapter_plain?namespace=http%3A//swift.com/us/GenericJMS&interface=MIOA_GenericJMS_v1&service=HTTP_Service_Swift&party=&agency=&scheme=&QOS=EO&sap-user=USERNAME&sap-password=PASSWORD&sap-client=100&sap-language=EN
    The above URL directly sends the XML file data to XI Integration Engine.
    If you want to send the XML data from the Webservice...
    The general format of the url is:
    http://url:port/XISOAPAdapter/MessageServlet?channel=:service:channel
    Regards,

  • Namespaces / apache.crimson.parser / BASDA XML / HELP!!

    This is probably an easy question but I can't find anyone to help me.
    I am using the apache.crimson.parser to parse and validate an Xml doc against the BASDA eBIS-XML purchase order schema but i can't get the Namespaces right.
    I have this at present for the Xml doc;
    <Order xmlns ="urn:schemas-microsoft-com:xml-data"
    xmlns:xsi ="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="urn:schemas-microsoft-com:xml-data
    http://www.cs.aston.ac.uk/hillsm/project/eBIS-XML_Order_v3.01.xml">
    ....and this for the schema;
    <Schema name="eBIS-XML_Order_v3.01.xml"
    xmlns="urn:schemas-microsoft-com:xml-data"
    xmlns:dt="urn:schemas-microsoft-com:datatypes">
    Does anyone have any ideas??

    Steven,
    let me first note that I'm not familiar with the specific Schema you mention here (apparently from M$), and it would have been helpful to see at least part of it in your posting, because it seems abnormal that Microslob uses the conventional xsd namespace for schema declarations (although it wouldn't surprise me).
    Anyways, let's do a first version without the xsd name space.
    The declarations in your xml file are correct.
    In the schema file, the first error is, that schema is misspelled as Schema. Secondly, schema does not allow a name attribute (get rid of it). There is also no reference to the namespace "http://www.w3.org/2001/SMLSchema". So, the default namespace has to be changed to that. The targetNamespace attribute specifies that this schema applies to the specified name space. Putting it all together:
    <?xml version="1.0"?>
    <schema xmlns="http://www.w3.org/2001/XMLSchema"
                 targetNamespace="urn:schemas-microsoft-com:xml-data"
                 xmlns:dt="urn:schemas-microsoft-com:datatypes">
           <!-- let's have fun and declare an Order element that would work with just one
                  order element defined in the xml file. -->
           <element name="Order" type="string"/>
    </schema>So this would validate OK with this xml file (provided that ..../eBIS-XML_Order_v3.01.xml is the above schema file):
    <?xml version="1.0"?>
    <Order xmlns ="urn:schemas-microsoft-com:xml-data"
              xmlns:xsi ="http://www.w3.org/2001/XMLSchema-instance"
              xsi:schemaLocation="urn:schemas-microsoft-com:xml-data
              http://www.cs.aston.ac.uk/hillsm/project/eBIS-XML_Order_v3.01.xml">
    </Order>                     So, in this example, the default namespace in the schema is set to "http://www.w3.org/2001/XMLSchema" and the targetNamespace attribute points to the xml file's default name space.
    However, the standard way of doing things differs. You certainly should not (mis-)set the schema's default name space to "http://www.w3.org/2001/XMLSchema".
    I do not know in what way Microsoft limits you, but I strongly recommend something along these lines in order to not have regrets, headache and coffein and nicotine addiction lateron:
    <?xml version="1.0"?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
                xmlns="urn:schemas-microsoft-com:xml-data"
                xmlns:dt="urn:schemas-microsoft-com:datatypes"
                targetNamespace="urn:schemas-microsoft-com:xml-data">
       <xsd:element name="Order" type="xsd:string"/>
    </xsd:schema>Also, in order to avoid confusion, Schema files should have the extension xsd - a minor sidepoint.
    Hope that helps,
    Leo.

  • Wrong Shiptocode are coming from XML File

    Hello Everybody I'm uploading xml orders to sap but when a customer has more than one ship to address Does not take what come in the xml file, it takes the default one. In the picture you can see how i sent the same order 12 times with an unique shiptocode and in the last 2 took DELIVERY ADDRESS. regards.

    Part II Order Lines for (int i = 0; i < oOrder.Lines.Count; i++)                     {                         order.Lines.SetCurrentLine(i);                         oOrder.Lines.SetCurrentLine(i);                         char[] delimiterChars = { '.' };                         string[] cantidad = oOrder.Lines.Quantity.ToString().Split(delimiterChars);                         order.Lines.ItemCode = oOrder.Lines.ItemCode;                         order.Lines.Quantity = Convert.ToDouble(cantidad[0]);                         //order.Lines.UnitPrice = oOrder.Lines.UnitPrice;                         //order.Lines.TaxCode = oOrder.Lines.TaxCode;                         order.Lines.UseBaseUnits = oOrder.Lines.UseBaseUnits;                         order.Lines.WarehouseCode = oOrder.Lines.WarehouseCode;                         order.Lines.CostingCode = oOrder.Lines.CostingCode;                         order.Lines.SalesPersonCode = oOrder.Lines.SalesPersonCode;                         //order.Lines.ShipToCode = oOrder.Lines.ShipToCode;                         //order.Lines.ProjectCode = oOrder.Lines.ProjectCode;                         //order.Lines.AgreementNo = oOrder.Lines.AgreementNo;                         SqlDataReader readerWTiable = sqlAdapter.ejecutarConsulta("SELECT WTLiable FROM [" + sapCompany.CompanyDB + "].dbo.OITM WHERE ItemCode='" + oOrder.Lines.ItemCode + "'");                         if (readerWTiable != null && readerWTiable.Read())                         {                             if (readerWTiable.GetValue(0).ToString().Equals("Y"))                             {                                 order.Lines.WTLiable = SAPbobsCOM.BoYesNoEnum.tYES;                             }                         }                         sqlAdapter.cerrarConexion();                         string specialPrice = @"SELECT CONVERT(FLOAT,Discount) AS 'Discount'                             FROM [" + sapCompany.CompanyDB + "].dbo.OSPP WHERE CardCode='" + order.CardCode + "' AND ItemCode='" + order.Lines.ItemCode + "'";                         SqlDataReader readerSpecialPrice = sqlAdapter.ejecutarConsulta(specialPrice);                         if (readerSpecialPrice != null && readerSpecialPrice.Read())                         {                                                           order.Lines.DiscountPercent = Convert.ToDouble(readerSpecialPrice.GetValue(0));                                                     }                         else {                             string specialPriceGrp = @"SELECT CONVERT(FLOAT,T0.Discount) AS 'Discount' FROM [" + sapCompany.CompanyDB + "].dbo.OSPG T0,["                                 +  sapCompany.CompanyDB +@"].dbo.OITM T1 LEFT OUTER JOIN [" +                                 sapCompany.CompanyDB + @"].dbo.OITB T2 ON T1.ItmsGrpCod=T2.ItmsGrpCod                                 WHERE T0.CardCode='" + order.CardCode + "'  AND T1.ItemCode='" + order.Lines.ItemCode + "'  and t0.ObjKey= T1.ItmsGrpCod";

  • Xml compilation problem

    Please can somebody help. I have copied the example out of
    the programming action script 3 .pdf (page 324) and I cant get it
    to compile. The error is 'Access of undefined property myXML.'. I
    have listed the code below. Can someone help
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute">
    <mx:Script>
    <![CDATA[
    var myXML:XML =
    <order>
    <item id='1' quantity='2'>
    <menuName>burger</menuName>
    <price>3.95</price>
    </item>
    </order>;
    trace(myXML.item[0].menuName);
    ]]>
    </mx:Script>
    </mx:Application>

    It looks like the solution to this one is to put the word
    “static” in front of the variable declaration:
    static var myXML:XML =
    <order>
    <item id='1' quantity='2'>
    <menuName>burger</menuName>
    <price>3.95</price>
    </item>
    </order>;
    It seems that when you put function calls directly into a
    <mx:Script> tag – that is, calls that are not enclosed
    in function definitions of their own -- then those are treated as
    static calls, and they can only operate on static variables.

  • Writing XML in multiple lines

    Hi,
    I am running into a glitch when i tried to write multiple XMLs into 1 file (each XML on each line).
    I am using XMLWriter and trying to use CompactFormat (in XMLWriter).
    Let me first explain my problem. I am trying to write several XML lines (let's say orders) into 1 file and i want each order to be in a single line. My problem is that all the xml orders are coming in the same line because i am using the compact format.. How can i make each order xml go into different lines in the same file?
                        try
                             OutputFormat format = OutputFormat.createPrettyPrint();
                             format = OutputFormat.createCompactFormat();
                             format.setSuppressDeclaration(true);
                             fileOutputStream = new FileOutputStream("C:\\CODE\\FINAL\\test.txt");
                             xmlWriter = new XMLWriter(fileOutputStream, format);
                        } catch(Exception e)
                             System.out.println("File not found");
                        }After this, i will prepare XML using DOM4J APIs and write that to this file using XMLWriter.
    Please help me how to write into different line..
    Thanks in advance

    One way is to first convert each XML into a string, e.g. via
          * Prints a textual representation of a DOM object into a text string..
          * @param document DOM object to parse.
          * @return String representation of <i>document</i>.
        static public String toString(Document document) {
            String result = null;
            if (document != null) {
                StreamResult strResult = new StreamResult(new StringWriter());
                try {
                    Transformer t = TransformerFactory.newInstance().newTransformer();
                    t.setOutputProperty(OutputKeys.ENCODING, "iso-8859-1");
                    t.setOutputProperty(OutputKeys.INDENT, "yes");
                    t.setOutputProperty(OutputKeys.METHOD, "xml"); //xml, html, text
                    t.setOutputProperty("{http://xml.apache.org/xslt}indent-amount", "4");
                    t.transform(new DOMSource(document.getDocumentElement()), strResult);
                } catch (Exception e) {
                    e.printStackTrace();
                result = strResult.getWriter().toString();
            return result;
        }//toString()then remove all line separators and add the result to the file followed by a line separator.

  • Creating XML in Webdynpro

    Hi All,
    I'm developing a webdynpro component. On click of submit in action I want to create a xml file.
    Can anyone tell me how can we achieve this.
    Regards,
    Nilesh.

    Hi,
    I guess the following links will help you in creating XML.
    http://java.sun.com/xml/tutorial_intro.html
    http://www.cafeconleche.org/books/xmljava/
    http://www.javaworld.com/jw-03-2000/jw-03-xmlsax.html
    http://developers.sun.com/sw/building/codesamples/dom/index.html
    import org.w3c.dom.Document;
    Main class for DOM Sample
    public class DOMSample {
    File name of Order
      static String orderFileName = "Order.xml";
    @param args the command line arguments
      public static void main(String[] args) {
        Document document = null;
        Order order = null;
        out("\nConstruct document using DOM in memory, save to file, and print it");
        // Build new DOM Document
        CreateOrderDOM cDOM = new CreateOrderDOM();
        document = cDOM.getDocument();
        out("New Order created");
        // Print XML content
        DOMUtil.printDOM(document);
        // Write to a file
        DOMUtil.writeXmlToFile("newOrder.xml",document);
        out("\n\nThe New Order stored to NewOrder.xml");
        // Create Order object based on Document
        order = new Order(document);
        out("\n\nPrint the Order's summary");
        order.print();
        out("\n\nConstruct document using existing XML Order," +
                          " apply discount, insert Tax and Total info to the" +
                          " Order, save to file, and print it");
        // Read XML from file to DOM
        document = DOMUtil.parse("Order.xml");
        if (document != null){
          // Print XML content
          out("\nPrint XML from file");
          DOMUtil.printDOM(document);
          // Get Order Price
          order = new Order(document);
          out("\nPrint the Order's summary");
          order.print();
          //Calculate total Items in Order
          int count = DOMUtil.countByTagName("Item",document);
          out("\nNumber Items in Order: " + count);
          out("Check for Discount");
          // Check for Discount
          if (order.isDiscount()){
            out("Apply Discount");
            order.applyDiscount();
          out("\nResult Order");
          order.print();
          // Add Tax and Total to the Order XML
          order.AddTaxAndTotal();
          // Print XML content
          out("\nPrint XML that include Tax and Total");
          DOMUtil.printDOM(document);
          // Write to a file
          DOMUtil.writeXmlToFile("DiscountOrder.xml",document);
          out("\n\nThe Order modified and stored to DiscountOrder.xml");
    Prints to the System output a message
    @param message String
      private static void out(String message) {
        System.out.println(message);

  • XML parser used in Oracle...DOM or SAX?

    Hi,
    My db version:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    PL/SQL Release 11.2.0.1.0 - Production
    CORE    11.2.0.1.0    Production
    TNS for Linux: Version 11.2.0.1.0 - Production
    NLSRTL Version 11.2.0.1.0 - Production
    Question:
    I get an XML feed and load it into a temporary table T1.
    My requirement is to load it in the exact sequence as I get the rows in xml and also populate a column in the temporary table as a sequence like 1 2 3 corresponding to the rows in the xml
    When I do load the xml, it gets loaded in same order the xml feed is sent. So no worries.
    But while I was researching I came to know that Oracle could use either DOM or SAX parser. If it uses SAX, then the order is maintained as in XML. But if DOM is used, the order wont be maintained.
    Please let me know, how I can ensure that the xml order is maintained as it is while loading into temp table.

    I apologize, here is more details
    {code}
    CREATE TABLE XMLTEMPTBL
      PARAM      NVARCHAR2(30 BYTE),
      PARAMORDERSEQ NUMBER(3)
    XML format:
    <?xml version="1.0"?>
    <ROWSET>
    <ROW>
    <PARAM1>abc</PARAM1>
    </ROW>
    <ROW>
    <PARAM2>def</PARAM2>
    </ROW> 
    <ROW>
    <PARAM3>ghi</PARAM3>
    </ROW> 
    <ROW>
    <PARAM4>jkl</PARAM4>
    </ROW>
    </ROWSET>
    PROCEDURE insertparams (p_xmldoc IN CLOB)
    IS    
      insctx   DBMS_XMLSTORE.ctxtype;
      ROWS     NUMBER;     
    BEGIN     
      /*inserting insdoc into a temp table*/
      insctx := DBMS_XMLSTORE.newcontext ('xmlTempTbl');
      ROWS := DBMS_XMLSTORE.insertxml (insctx, p_xmldoc);
      DBMS_XMLSTORE.closecontext (insctx);
    END;
    I want to insert into table this way:
    select * from xmltemptb;
    PARAM PARAMORDERSEQ
    abc 1
    def 2
    ghi 3
    jkl 4
    {code}
    My procedure is not 100% correct (but it gives an idea what code I am using to load into table), but I want to ensure the xml rows are loaded into the table in the same sequence.

  • Can I combine two methods of code to load various SWF files into the same location

    I presently have a set up where a large SWF file brought on the stage by clicking small icons from the scrollable thumbnail menu on the bottom of the stage. All of it happens at the same frame with .xml loading file.
    Here is the code for constructing the ImageLoader(for thumbnails) and SWFLoader for (bigger SWF files)
    [CODE]
       function _xmlCompleteHandler(event:LoaderEvent):void {
       _slides = [];
       var xml:XML = event.target.content; //the XMLLoader's "content" is the XML that was loaded.
       var imageList:XMLList = xml.image; //In the XML, we have <image /> nodes with all the info we need.
       //loop through each <image /> node and create a Slide object for each.
       for each (var image:XML in imageList) {
        _slides.push( new Slide(image.@name,
              image.@description,
              new ImageLoader("loadingAssets/appThumbnails/slideshow_image scroller greenSock_mine/assets/thumbnails/appThmb_imgs/" + image.@name + ".jpg",
                   name:image.@name + "Thumb",
                   width:_THUMB_WIDTH,
                   height:_THUMB_HEIGHT,
                   //centerRegistration:true,//messes up the code as places SWFLoader in the upper left corner which is 0,0 coordinates
                   //x:260, y:320,//doesn't work here but works in line 69
                   scaleMode:"proportionalInside",
                   bgColor:0x000000,
                   estimatedBytes:13000,
                   onFail:_imageFailHandler}),
              new SWFLoader("loadingAssets/appThumbnails/slideshow_image scroller greenSock_mine/assets/images/" + image.@name + ".swf",
                    name:image.@name + "Image",
                    width:_IMAGE_WIDTH,
                    height:_IMAGE_HEIGHT,
                    //centerRegistration:true,//messes up the code as places SWFLoader in the upper left corner which is 0,0 coordinates
                    x:0, y:144,
                    scaleMode:"proportionalInside",
                    bgColor:0x000000,
                    estimatedBytes:820000,
                    onFail:_imageFailHandler})
    [/CODE]
    Here is what I would like to resolve. I have another section on the site with an image collage. Every image is a button. I want to script this each image on click to go to the label with ImageLoader and SWFLoader AND TO OPEN A UNIQUE SWF (ASSOCIATED WITH AN IMAGE CLICKED) ON THAT PAGE
    Previously this is what I did to achieve it. I would specify a String:
    [CODE]
    var sourceVar_ProductsPopUps:String;
    [/CODE]
    and then all my buttons will have their unique SWF assigned for them which opens at another labeled section ("prdctsPopUps" in this example):
    [CODE]
    function onClickSumix1PopUp(event:MouseEvent):void {
      sourceVar_ProductsPopUps="prdcts_popups/sumix1-popup_tl.swf";
      gotoAndPlay("prdctsPopUps");
    [/CODE]
    Then in the "prdctsPopUps" section I would specify that var string to bring up SWF files. The value of sourceVar_ProductsPopUps allows to load mulitple SWFs from the previous page.
    [CODE]
    loaderProductPopUps = new SWFLoader(sourceVar_ProductsPopUps,
    [/CODE]
    But I need both of them to be working at the same time. First there is a sectionA from where a user can navigate to specifically targeted SWF to section B's SWFLoader. Then in the section B a user has an option to bring up other SWF files into SWFLoader from the scrollable thumbs menu. Is there a way to combine these two lines into one:
    [CODE]
              new SWFLoader("loadingAssets/appThumbnails/slideshow_image scroller greenSock_mine/assets/images/" + image.@name + ".swf",
    [/CODE]
    and
    [CODE]
    new SWFLoader(sourceVar_ProductsPopUps,
    [/CODE]

    Thanks for looking into my issue.
    Unfortunatelly I am not so advanced in AS and do not complitely understand the logic of the problem. I will try to decribe my set up more precise.
    So, my main flash file is broken into labeled sections on the main time line.
    One of the sections is "Applications" It has an animated collage of images. Each image acts as a button and once clicked brings a user to a section called "ApplicationsPopUps".
    "ApplicationsPopUps" section has small image thumbnails scroll menu at the bottom of the screen and a large SWFLoader in the middle of the screen. User can click on an image in the thumbnails scroll menu and a corresponding SWF file will load in the middle of the screen in SWFLoader. User can click on left/right navigation buttons and preceeding/following SWF file will load in SWFLoader.
    Everything works fine (with your previous help)
    Here is the working code for the ImageLoader and SWFLoader (please let me know if you need additional code on the page):
    function _xmlCompleteHandler(event:LoaderEvent):void {        _slides = [];       var xml:XML = event.target.content; //the XMLLoader's "content" is the XML that was loaded.        var imageList:XMLList = xml.image; //In the XML, we have  nodes with all the info we need.        //loop through each  node and create a Slide object for each.       for each (var image:XML in imageList) {         _slides.push( new Slide(image.@name,               image.@description,               new ImageLoader("loadingAssets/appThumbnails/slideshow_image scroller greenSock_mine/assets/thumbnails/appThmb_imgs/" + image.@name + ".jpg",               {                    name:image.@name + "Thumb",                    width:_THUMB_WIDTH,                    height:_THUMB_HEIGHT,                    //centerRegistration:true,//messes up the code as places SWFLoader in the upper left corner which is 0,0 coordinates                    //x:260, y:320,//doesn't work here but works in line 69                   scaleMode:"proportionalInside",                    bgColor:0x000000,                    estimatedBytes:13000,                    onFail:_imageFailHandler}),                 new SWFLoader("loadingAssets/appThumbnails/slideshow_image scroller greenSock_mine/assets/images/" + image.@name + ".swf",                   {                     name:image.@name + "Image",                     width:_IMAGE_WIDTH,                     height:_IMAGE_HEIGHT,                     //centerRegistration:true,//messes up the code as places SWFLoader in the upper left corner which is 0,0 coordinates                   x:0, y:144,                     scaleMode:"proportionalInside",                     bgColor:0x000000,                     estimatedBytes:820000,                     onFail:_imageFailHandler}) 
    Thumbnails in the section "ApplicationsPopUps" and images in the image collage in the section "Applications" represent the same photographs. So when a user clicks on one of the images in "Applications" section it would be natural that that image will load in the "ApplicationsPopUps" section. However "ApplicationsPopUps" section presently has a working code (as sampled above) It looks too complex for me and I do not know hot to implement this feature. I do want to keep the functionality of the thumbs image scroller in section "ApplicationsPopUps" as it is now. But I want to add that when a user click on an image from section"Applications" then that particular SWF file will load in SWFLoader in section "ApplicationsPopUps" and then the present functionality can as well be exectuted. Presently it just opens on a first image in xml order.
    P.S. I see that you had a download link in your answer. How did you do it? I could also upload a small sample file with my problem. This way you could see all the set up right away.

Maybe you are looking for

  • Power Mac G4 Won't startup and ejects boot disk.

    Hello, Recently, I got a used Power Mac G4. On startup, it gets to the loading bar and doesn't load anything. It's just a blank white bar with no text aside from the apple logo at the top of the window. I tried inserting the Tiger recovery disk, but

  • Per_person_type_usages_f table in HRA

    We are trying to load out of box Employment Dimension using Informatica and there are some joins for Per_person_type_usages_f table in SQL Transformation. I need columns like effective_start_date and effective_end_date to perform joins from Per_perso

  • Can I throw exception in constructor?

    I just want to add some constraints on the object. I'm thinking to add the constraints to the constructor, when every time create a new object , check first. If obey the rule, that's fine. If not, just throw it? Can I do like this way?? e.g Class Dis

  • [iPad] How can I get the popoverController pointer in the viewController

    UIViewController* viewController = [[UIViewController alloc] init]; UINavigationController* navcontroller = [[UINavigationController alloc] initWithRootViewController:viewController]; UIPopoverController* aPopover = [[UIPopoverController alloc] initW

  • Problem saving information about your mailboxes

    My Mail account freezes when a message comes up saying 'There is a problem saving information about your mailboxes' .. it just scrolls saying 'it may take a while to determine the problem, .. should I just leave it to do this or is there anything els