Converting hexadecimal XML data to a string

Hello!
Until now I generated XML data with the FM 'SDIXML_DOM_TO_XML'.
After that I did a loop over the xml_as_table in which I was casting each line of that table to a string.
ASSIGN <line> TO <line_c> CASTING.
After the inftroduction of unicode in our system I get a error:
In the current program an error occured when setting the field symbol <LINE_C> with ASSIGN or ASSIGNING (maybe in combination with the CASTING addition).
When converting the base entry of the field symbol <LINE_C> (number in base table: 32776), it was found that the target type requests a memory alignment of 2
What does it mean? Does somebody have a solution.
I need this function for sending this XML data as string over a simple old CPIC connection.
Best regards
Martin

Hello Martin
Perhaps my sample report ZUS_SDN_XML_XSTRING_TO_STRING provides a solution for your problem.
*& Report  ZUS_SDN_XML_XSTRING_TO_STRING
*& Thread: Converting hexadecimal XML data to a string
*& <a class="jive_macro jive_macro_thread" href="" __jive_macro_name="thread" modifiedtitle="true" __default_attr="1029652"></a>
REPORT  zus_sdn_xml_xstring_to_string.
*-- data
*-- read the XML document from the frontend machine
TYPES: BEGIN OF xml_line,
        data(256) TYPE x,
      END OF xml_line.
DATA: xml_table TYPE TABLE OF xml_line.
DATA: go_xml_doc       TYPE REF TO cl_xml_document,
      gd_xml_string    TYPE string,
      gd_rc            TYPE i.
PARAMETERS:
  p_file  TYPE localfile  DEFAULT 'C:payload_idoc.xml'.
START-OF-SELECTION.
  CREATE OBJECT go_xml_doc.
  " Load XML file from PC and get XML itab
  CALL METHOD go_xml_doc->import_from_file
    EXPORTING
      filename = p_file
    RECEIVING
      retcode  = gd_rc.
  CALL METHOD go_xml_doc->get_as_table
    IMPORTING
      table   = xml_table
*      size    =
*      retcode =
" NOTE: simulate creation of XML itab
  go_xml_doc->display( ).
  create object go_xml_doc.
  CALL METHOD go_xml_doc->parse_table
    EXPORTING
      table   = xml_table
*      size    = 0
    receiving
      retcode = gd_rc.
  CALL METHOD go_xml_doc->render_2_string
*    EXPORTING
*      pretty_print = 'X'
    IMPORTING
      retcode      = gd_rc
      stream       = gd_xml_string
*      size         =
  write: / gd_xml_string.
END-OF-SELECTION.
Regards
  Uwe

Similar Messages

  • Have XML data in a string, can't extract it to the XML bean class

    Hi All, I have a string that contains XML data, for example,
    string str has "<one>1<\one><two>2<\two>". i have the XML beans classes,
    but i am unable to get this data out of the string and add it to the xml bean
    classes.
    I anybody has a clue as to how to code this, please help ASAP.
    Thanks,
    kuneev

    Hi Kunnev,
    Lets say I have an xsd
    <?xml version="1.0"?>
    <xs:schema
         xmlns:xs="http://www.w3.org/2001/XMLSchema"
         xmlns:bea="http://www.bea.com/xmlbeans/Sample.xsd"
         targetNamespace="http://www.bea.com/xmlbeans/Sample.xsd"
         elementFormDefault="qualified"
         attributeFormDefault="unqualified">
    <xs:element name="Person">
    <xs:complexType>
    <xs:sequence>
    <xs:element name="FirstName" type="xs:string" />
    <xs:element name="LastName" type="xs:string" />
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    </xs:schema>
    Now after I compile this I would get XMLBean classes
    Like Person is a xmlBean class. The code snippet below shows how I can convert
    a string into a xmlbean of type Person.
    XmlOptions xopt = new XmlOptions();
    xopt.setDocumentType(Person.type);
    Person x0 = (Person) XmlObject.Factory.parse(
    "<xml-fragment>" +
    "<FirstName>desc---1</FirstName>" +
    "<LastName>desc---2</LastName>" +
    "</xml-fragment>", xopt);
    Person pp = (Person)x0;
    Now pp is a XMLBean object which can be added to the tree.
    Let me know if you have any questions.
    Thanks a lot,
    Vimala
    "kuneev" <[email protected]> wrote:
    >
    Hi All, I have a string that contains XML data, for example,
    string str has "<one>1<\one><two>2<\two>". i have the XML beans classes,
    but i am unable to get this data out of the string and add it to the
    xml bean
    classes.
    I anybody has a clue as to how to code this, please help ASAP.
    Thanks,
    kuneev

  • How to convert an xml data(clob) in database to string format in bpel??

    Now I am learning SOA ,I have one scenario which I store the each record  in xml format in database  from file adapter ,extract the xml data and store the data in another  table ...Give me any suggestions which I slove these issue .
    Thanks in advance.

    Hi
    You can try the below xpath function to convert the xml into string - orcl:get-content-as-string(/xsdLocal:SAPOrderRequest)
    To convert the string back to XML - ora:parseEscapedXML(bpws:getVariableData('stringpayloadVar'))
    Regards
    Albin I

  • JAXB: Read XML data from a String?

    Hi,
    I get XML data not from file but as a string and I wanted to use JAXB to parse it and get my Java Objects.
    The unmarshall methods wants an "InputStream", but "StringBufferInputStream" is deprecated, so that I don't know a way to use my String as InputStream.
    Can someone give me a hint other then writing the data in a file first?

    Hi FrankSch,
    The unmarshall methods wants an "InputStream", but
    "StringBufferInputStream" is deprecated, so that I
    don't know a way to use my String as InputStream.
    Can someone give me a hint other then writing the data
    in a file first?Yes, the class StringBufferInputStream is deprecated, and the deprecation notice reads:
    Deprecated. This class does not properly convert characters into bytes. As of JDK 1.1, the preferred way to create a stream from a string is via the StringReader class.
    The JDK API usually mentions an alternative to the deprecated method/class and in this case, you should use java.io.StringReader. It has one constructor and should suite you nicely:
    StringReader(String s) That way, you get an InputStream object; you can now use JAXB.
    Hope this helps,
    -ike, .si

  • Xml data considered than strings character in«append»&«insert-aft»operation

    Hello,
    I use BPEL10.1.3.1. Here is my problem. I recuperate in a database a CLOB data type :
    <c>
    <d>
    <e></e>…
    </d>
    <f>
    <g></g>
    <h></h>…
    </f>
    </c>
    I insert this CLOB data type in a new variable "compteRenduXml" (type : simple type, xsd language). When I visualize my "compteRenduXml" variable, it is a xml data (that's OK).
    I am trying to insert the "compteRenduXml" variable after the <b>…</b> operation :
    <a>
    <b>…</b>
    </a>     
    The problem is the variable I would like to insert is considered than strings character (and not xml data ! ).
    After, when I try to insert a value in "<e>abcd</e>" for example, I have this error : « The XPath chain does not return any node. »
    Can you help me ?
    Thank you.
    Tania

    If in my Sqlloader script I use :
    INTO TABLE XML_DOCUMENT_TABLE_VWO TRUNCATE
    XMLType(xmlcol)
    FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"'
    xmlcol
    I have always this error whith the two XML document (< 255 kb, & > 255 Kb)
    Table XML_DOCUMENT_TABLE_VWO, loaded from every logical record.
    Insert option in effect for this table: TRUNCATE
    Column Name Position Len Term Encl Datatype
    XMLCOL FIRST * , O(") CHARACTER
    Record 1: Rejected - Error on table XML_DOCUMENT_TABLE_VWO.
    ORA-00904: "SYS_NC_ROWINFO$": invalid identifier

  • Form converts to XML data and I need the pdf form to be visable

    Hello all,
    I just created a form in pro 8 for our salesmen and it is a sales order form. I have sent it out to them to fill out and return it by pressing the email button in the form and some have come back as XML date stream and some came back as the original form with all fields filled in. I want to know how to get all of them to come back filled in instead of the XML Data. All salesmen have Reader 8 installed on the machines. Can anyone help me with this problem?
    Thanks in advance,
    Tony

    Hi there,  I'm myseld using the Application data-field in order to collect mobile forms OFFLINE.
    I can collect as many mobile form as i want BUT, of course, need to be online to sync the data from mobile to their cloud.
    Hope that helps.
    Otherwise, would probably need to plug ur idevice and look for the application database with such tool as iConnector.

  • Converting the system date to a string

    Hi,
    I am attempting to change the names of files by appending the system timestamp to them. At present, the names are in the following format: documentname.txt_1062092608316. I would like the timestamp to be more readable, along the lines of "MM/DD/YYYY."
    I have been using the following code in an attempt to convert the timestamp into something readable, but have not had any success. The appended timestamp still appears as a series of numbers.
    timeStamp = System.currentTimeMillis();
    strTimeStamp = String.valueOf( timeStamp );(At a later point, I concatenate strTimeStamp to the document's name, as in the above example.)
    Any help in figuring this out would be much appreciated.
    TIA,
    Jeff

    Format formatter;
        // The year
        formatter = new SimpleDateFormat("yy");    // 02
        formatter = new SimpleDateFormat("yyyy");  // 2002
        // The month
        formatter = new SimpleDateFormat("M");     // 1
        formatter = new SimpleDateFormat("MM");    // 01
        formatter = new SimpleDateFormat("MMM");   // Jan
        formatter = new SimpleDateFormat("MMMM");  // January
        // The day
        formatter = new SimpleDateFormat("d");     // 9
        formatter = new SimpleDateFormat("dd");    // 09
        // The day in week
        formatter = new SimpleDateFormat("E");     // Wed
        formatter = new SimpleDateFormat("EEEE");  // Wednesday
        // Get today's date
        Date date = new Date();
        // Some examples
        formatter = new SimpleDateFormat("MM/dd/yy");
        String s = formatter.format(date);
        // 01/09/02
        formatter = new SimpleDateFormat("dd-MMM-yy");
        s = formatter.format(date);
        // 29-Jan-02
        // Examples with date and time; see also
        // e316 Formatting the Time Using a Custom Format
        formatter = new SimpleDateFormat("yyyy.MM.dd.HH.mm.ss");
        s = formatter.format(date);
        // 2002.01.29.08.36.33
        formatter = new SimpleDateFormat("E, dd MMM yyyy HH:mm:ss Z");
        s = formatter.format(date);
        // Tue, 09 Jan 2002 22:14:02 -0500

  • How to Convert Normal XML date or Oracle date to JDE Julian Date

    We can do a simple mathematical step in XSLT :
    'xpath20:format-dateTime(xpath20:current-dateTime(),"[Y0001][d001]") - 1900000'
    Or in SQL :
    Select to_char(sysdate,'YYYYDDD')-1900000 from dual;
    Julian Date is: Year in 4 digits, YYYY, and Number of days in 3 digits, DDD
    JDE Julian Date is Julian Date -1900000 (ie it counts Julian date from 1900 Year)
    "[Y0001][d001]” returns date in Year in 4 digit + number of days in 3 digits. This is the Julian date.
    Subtracting 1900000 ( ie YR ’1900’ & DAY ‘000’) gives the required JDE Julian Date.
    Edited by: prakash.pankaj on Jul 8, 2011 2:13 PM
    Edited by: prakash.pankaj on Jul 8, 2011 4:02 PM
    Edited by: panks on Jul 20, 2011 3:43 PM

    Hi,
    getTime() (in Date) will give you that date in milliseconds since January 1, 1970 00:00:00 GMT.
    To my knowledege, this is the same as Unix date format.

  • Convert XML data to byte array...

    Hello All,
    In my application, i have an XML file and the corresponding XSD file. This XML file is having some date, which i want to convert into an byte[] and then save it in a file. 
    How i can convert the XML data in the byte[]? Here as an example of the xml file and the byte[] data which i want to save in a file.
    <?xml version="1.0" encoding="utf-8"?>
    <HeadersInfo>
    <header>
    <id>0</id>
    <Name>H1</Name>
    </header>
    <header>
    <id>1</id>
    <Name>H2</Name>
    </header>
    </HeasersInfo>
    In the above example 'id' field is of type 'uint' and 'name' field is of type 'string' with max length of '5'. So in this case my byte array should be as shown below:
    00 00 00 01 48 31 00 00 00
    00 00 00 02 48 32 00 00 00
    Here underlines values are for the 'id' parameter where as values in bold are for 'Name' parameter for all the header values in sequence. Name parameter is null (0x00) padded.
    Thanks in advance,
    IamHuM

    Hi,
    the following example extract the id, name values using LINQ To Xml and writes it to a memory stream using a binary writer and returns the result as a byte array:
    internal static byte[] GetXmlAsByteArray()
    var document = XDocument.Parse("<HeadersInfo>"
    + " <header><id>1</id><Name>H1</Name></header>"
    + " <header><id>2</id><Name>H2</Name></header>"
    // additional testing
    + " <header><id>32767</id><Name>H1234</Name></header>"
    + " <header><id>305419896</id><Name>H56789</Name></header>"
    + "</HeadersInfo>");
    const int NameLength = 5; // Max length for a name
    byte[] zeroBytes = new byte[NameLength]; // Helper to fill name
    using (var ms = new MemoryStream())
    using (var writer = new BinaryWriter(ms))
    // write each header
    foreach (var header in document.Root.Elements("header"))
    int id = (int)header.Element("id");
    string name = (string)header.Element("Name");
    byte[] nameBytes = System.Text.Encoding.UTF8.GetBytes(name);
    Console.WriteLine("id: {0}, Name: {1}", id, name);
    // Write id
    writer.Write(GetUIntBytes((uint)id));
    // Write name NameLength (5) max, otherwise padded
    if (nameBytes.Length > NameLength)
    writer.Write(nameBytes, 0, NameLength);
    else
    writer.Write(nameBytes, 0, nameBytes.Length);
    if (nameBytes.Length < NameLength)
    writer.Write(zeroBytes, 0, NameLength - nameBytes.Length);
    byte[] result = ms.ToArray();
    // dump array
    foreach (var value in result)
    Console.Write("{0:X2} ", value);
    Console.WriteLine();
    return result;
    public static byte[] GetUIntBytes(uint value)
    if (BitConverter.IsLittleEndian)
    // swap bytes
    value = ((value & 0x00ff) << 24)
    | ((value & 0xff00) << 8)
    | ((value & 0x00ff0000) >> 8)
    | ((value & 0xff000000) >> 24);
    return BitConverter.GetBytes(value);
    For a general purpose solution you should create a class and split the example into separate methods to extract the data and write the values (integers, strings).
    Regards, Elmar

  • Is there a tool to convert XML data model into berkeleydb automatically?

    Hi all,
    Is there already a tool which convert a xml data model definition file into C++ source code with berkeleydb as underlying db implementation?
    If there is already one, I don't need to spend the time to code it.
    Regards,
    -Bruce

    Hello,
    One suggestion is to take a look at the Berkeley DB XML documentation at:
    http://docs.oracle.com/cd/E17276_01/html/toc.htm
    and see if you find what you are looking for.
    Thanks,
    Sandra

  • How to convert XML data into binary data (opaque data)

    Hi,
    I am trying to develop a process that delivers files after reading data from a database.
    However, it is required not to deliver the data immediately. We want to perform some checks before the files get written.
    So the way we want to design this is,
    1. Read data from database (or any other input). The data is in XML format (this is a requirement, as in general, we have xml data)
    2. This data is written, opaquely, to a JMS queue that can store binary data, along with what is the filename of the file that would be written (filename is passed using JMS Headers)
    3. When required, another process reads the JMS queue's binary data, and dumps into a file
    The reason I want to use opaque data while inserting in the JMS queue is, that enables me to develop a single process in Step 3 that can write any file, irrespective of the format.
    My questions are
    1. How to convert the xml data to opaque data. In BPEL I may use a embedded java, but how about ESB. Any other way....?
    2. how to pass filename to the jms queue, when payload is opaque. Can I use a header attribute...custom attributes?
    3. Which jms message type is better for this kind of requirement - SYS.AQ$_JMS_BYTES_MESSAGE or SYS.AQ$_JMS_STREAM_MESSAGE

    Ana,
    We are doing the same thing--using one variable with the schema as the source of the .xsl and assigning the resulting html to another variable--the content body of the email, in our case. I just posted how we did it here: Re: Using XSLT to generate the email HTML body
    Let me know if this helps.

  • How to Convert internal table data into xml and xml data into internal tab

    Hi Guys,
          I have a requirement  that  i have to convert the internal table data into xml format and viceversa . for my requirement  i came to know that i have to use Transformations concept.  i done the converting the data from internal table into xml data by using standard Tranformations. My Question is 
    1) Can i use same Transformation to convert the xml data into abap internal table. if it is possible then how ???
    2) Is it possible using the standard Transformation  or I have to go for XSLT approach
    Please help me out from this guys,
    Thanks and Regards
    Koti

    Hi Koti,
    This is possible. There is a link. With the help of this link you can convert ABAP data to XML and vice versa.
    Link: http://www.heidoc.net/joomla/index.php?option=com_content&view=article&id=15:sapxslt&catid=22:sap-xslt&Itemid=31

  • Get xml data from a web service into Forms?

    Hello folks! I am reading active directory info from a web service into forms via imported java classes. I can read from functions that return strings just fine, but I have to get the output from getGroupUsers which returns an XmlDataDocument. How do I read this in and parse it in Forms?
    I will be grateful if y'all could point me to an example.
    Thank you,
    Gary
    P.S. Here is a snippet of how I get the full name by passing an ID:
    DECLARE
    jo ora_java.jobject;
    rv varchar2(100);
    BEGIN
    jo := ADSoapClient.new;
    rv := ADSoapClient.getUserName(jo, 'user_ID');
    :block3.fullname := rv;

    Hello,
    Since you are already dealing with server-side JAVA, I would suggest you create a method that would do the parsing server-side and what your PL/SQL will be dealing with is just the return string.
    Here is a method I use to read an XML file (actually, it is an Oracle Reports file converted to XML) and from the string version, I will do search, replace and other things.
    So, from getGroupUsers which returns an XmlDataDocument, you can adapt this method to get your data server-side and let the form module read the output data.
    <blockquote>
    private String processFileXml(String fileName, int iFile) throws ParserConfigurationException, SAXException,
    IOException, XPathExpressionException{
    try{                
    DocumentBuilderFactory domFactory = DocumentBuilderFactory.newInstance();
    domFactory.setNamespaceAware(true);
    InputStream inputStream = new FileInputStream(new File(fileName));
    DocumentBuilder builder = domFactory.newDocumentBuilder();
    Document doc = builder.parse(inputStream);
    StringWriter stw = new StringWriter();
    Transformer serializer = TransformerFactory.newInstance().newTransformer();
    serializer.transform(new DOMSource(doc), new StreamResult(stw));
    return stw.toString();
    catch (Exception e){
    System.err.println(e);
    System.exit(0);
    return "OK";
    </blockquote>
    Let me know if this is of nay help.
    Thanks.

  • How to read XML data stored in CLOB in Concurrent prog Output

    Hi All,
    I'm trying to Generate the XML Data as concurrent Program output. I have a PL/SQL package which generated the XML data by using SQL/XML functions. I'm storing the generated XML data in a CLOB variable. But when i try to read the data using fnd_file.put_line(fnd_file.OUTPUT,XML_Data) it doesn't display data more than 32767 bytes.
    Please help me out to understand what could be done to read the data in chunks. I have tried many logic's to print chunks of data but the output tags are either chopped off and errors out saying Tag not found.
    My logic is as below:
    v_handler:= DBMS_XMLGEN.newContext(v_xml_query);
    --Sets NULL handling options
    DBMS_XMLGen.SetNullHandling(v_handler, dbms_xmlgen.EMPTY_TAG ) ;
    --Set special character handling
    DBMS_XMLGEN.setConvertSpecialChars(v_handler, TRUE);
    -- Specified whether to use an XML attribute to indicate NULLness of particular entity in the XML document
    DBMS_XMLGen.useNullAttributeIndicator(v_handler,TRUE);
    -- set Checking invalid chars
    DBMS_XMLGEN.setCheckInvalidChars(v_handler, TRUE);
    -- get the xml data as required
    v_xml_data:= DBMS_XMLGEN.getXMLtype(v_handler);
    SELECT XMLROOT(v_xml_data.extract('/*'),VERSION '1.0').getClobVal() into v_new_xml_Data from dual;
    -- get the length of the xml generated
    v_clob_len := dbms_lob.getlength(v_new_xml_Data);
    FND_FILE.PUT_LINE(FND_FILE.LOG,'The Clob length is :'|| v_clob_len);
    -- logic to process string more than 32767 Processing by each character
    v_offset :=1;
    while (v_offset <= v_clob_len)
    LOOP
    v_char := dbms_lob.substr(v_new_xml_Data, 1, v_offset);
    IF (v_char = CHR(10))
    then
    fnd_file.new_line(fnd_file.output, 1);
    else
    fnd_file.put(fnd_file.output, v_char);
    end if;
    v_offset := v_offset + 1;
    END LOOP;
    FND_FILE.PUT_LINE(FND_FILE.LOG,'The offset is :'|| v_offset);
    FND_FILE.NEW_LINE(FND_FILE.OUTPUT, 1);
    THe above logic is for character by character which is a performance burden? Please let me know if there is any other work around for this

    Hi,
    Thanks for Replying. I have refered http://blog.oraclecontractors.com/?p=69 and then i added that piece of code. Basically, i'm trying to generate a report using XML publisher. To generate the XML data i'm writing a pl/sql package with SQl/XML functions. DBMS_XMLGEN would help me convert the XML Data as is. When the concurrent program runs this XML data will merge with RTF layout and generate required report. I'm able to generate the Report for data less then 32767 bytes. More than the limit i need to pass chunks of XML data to read as output. That's the reason i'm using fnd_file.output. But it reads only 32767 size at a time.
    WHen i use the given logic, it works perfectly fine, but it loops for each character, for example if you have 30,000 characters it loops the same, which is peformance burden.
    So i tried to write the logic of chunks but still i get the error that XML tag is not found or missing. I'm hoping this is very common issue, but after all my trails, i didn't find the right solution.
    the other logic i tried was :
    v_new_xml_data varchar2(32767)
    v_iterations := CEIL(v_clob_len/v_chunk_length); -- v_chunk_length is 32767 and v_clob_length is length of the XML data stored inthe clob variable
    For i in 0..v_iterations
    LOOP
    FND_FILE.put_line (fnd_file.log,'the loops v_pos :'||i||' and v_clob_length :'||v_clob_len);
    v_new_xml_data := DBMS_LOB.SUBSTR ( V_XML_DATA,v_chunk_length,(i*v_chunk_length)+1);
    FND_FILE.PUT_LINE (FND_FILE.OUTPUT,v_new_xml_data); -- read the output for every 32767 chunks
    FND_FILE.PUT_LINE(FND_FILE.LOG, 'Chunk length is :'||((i*v_chunk_length)+1));
    END LOOP;
    FND_FILE.put_line (fnd_file.log,'out of loop');
    FND_FILE.put_line (fnd_file.log,'length of new xml is '||v_clob_len);
    Please, let me know if you need Further clarifications on the same.

  • XML Data Source

    I try to use XML files as data source with Oracle Report 9i. Even if the .xml and the .dtd files are well-formed and validate is OK, Oracle Report doesn't recognize the groups, columns,... How to format correctly DTDs file?? With easy .dtd it works, but for more complex code it doesn't work.

    Refer the link for data definition and Data Source format.
    http://otn.oracle.com:8877/reports/help/
    Advanced column Types support:
    Formatting support for xml columns types, date / timeInstant : XML Simple Types columns can be defined in xml schema to specify the format for date/timeInstant types column in XML Data Source. Based on the format string mentioned in XML schema XMLPDS will parse the XML Stream and
    convert the XML Data to Report specific format.
    simpleType : dateformatColumn :
    <xsd:simpleType name='dateformatcolumn'>
    <xsd:restriction base='xsd:date'>
    <xsd:pattern value='dd-MMM-yy'/>
    </xsd:restriction>
    </xsd:simpleType>
    simpleType : dateTimefomatColumn
    <xsd:simpleType name='dateTimefomatcolumn'>
    <xsd:restriction base='xsd:timeInstant'>
    <xsd:pattern value='MM-dd-yyyy hh:mm:ss'/>
    </xsd:restriction>
    </xsd:simpleType>
    MaxLength support for xml string column types : By default column length for all string columns will be 4000 bytes as set in config file. Maxlength for string type columns can be overwritten by defining and using a simpletype column in XML schema used for data definition
    simpleType : stringColumn
    <simpleType name='stockString1'>
    <restriction base='xsd:string'>
    <maxLength value='7'/>
    </restriction>
    </simpleType>
    The XML schema format with simple type :
    <xsd:element name="tableName" type="tableType"/>
    <xsd:simpleType name='dateformatColumn'>
    <xsd:restriction base='xsd:date'>
    <xsd:pattern value='format string '/>
    </xsd:restriction>
    </xsd:simpleType>
    <xsd:simpleType name='dateTimefomatcolumn'>
    <xsd:restriction base='xsd:timeInstant'>
    <xsd:pattern value='format string'/>
    </xsd:restriction>
    </xsd:simpleType>
    <simpleType name='stringColumn'>
    <restriction base='xsd:string'>
    <maxLength value=' maximum column size '/>
    </restriction>
    </simpleType>
    <xsd:complexType name="tableType">
    <xsd:sequence>
    <xsd:element name="rowName" minOccurs="0" maxOccurs="unbounded">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="columnName1" type="xsd:string"/>
    <xsd:element name="columnName2" type="xsd:decimal"/>
    <xsd:element name="columnName3" type="xsd:dateformatColumn"/>
    <xsd:element name="columnName4" type="xsd:dateTimefomatcolumn"/>
    <xsd:element name="columnName5" type="xsd:stringColumn"/>
    <xsd:element name="columnNameN" type="xsd:date"/>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:sequence>
    </xsd:complexType>
    XSD file using advanced column types :
    <xsd:schema xmlns:xsd="http://www.w3.org/2000/10/XMLSchema">
    <xsd:simpleType name='stockDate'>
    <xsd:restriction base='xsd:date'>
    <xsd:pattern value='dd-MMM-yy'/>
    </xsd:restriction>
    </xsd:simpleType>
    <xsd:simpleType name='Transaction'>
    <xsd:restriction base='xsd:timeInstant'>
    <xsd:pattern value='MM-dd-yyyy hh:mm:ss'/>
    </xsd:restriction>
    </xsd:simpleType>
    <simpleType name='stockID'>
    <restriction base='xsd:string'>
    <maxLength value='15'/>
    </restriction>
    </simpleType>
    <xsd:element name="XML">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="G_STORE" minOccurs="0" maxOccurs="unbounded">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="STORE_NAME" type="stockID"/>
    <xsd:element name="CITY" type="xsd:string"/>
    <xsd:element name="REGION" type="xsd:string"/>
    <xsd:element name="TRANSACTION_START" type="stockDate"/>
    <xsd:element name="TRANSACTION_PHASE1" type="Transaction"/>
    <xsd:element name="TRANSACTION_PHASE2" type="Transaction"/>
    <xsd:element name="TRANSACTION_END" type="stockDate"/>
    <xsd:element name="SALES" type="xsd:integer"/>
    <xsd:element name="DESCRIPTION" type="xsd:string"/>
    <xsd:element name="SALES_ROW_COUNT" type="xsd:integer"/>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:schema>
    With Regards
    Reports Team

Maybe you are looking for

  • Error Message 11556 when trying to sign in to iTunes Store

    For the past week or so, when trying to sign in to the iTunes Store, I get an unknown error message (11556). I don't have any connectivity problems... I can connect to the internet without any problems... my iTunes opens the internet when I click on

  • HT2204 My iPad says it is unable to connect to iTunes for my apps and screen is jammed how can I sort

    When. I tried to download a new app and put in my password it asked for verification of credit card which I entered then it said unable to connect to iTunes and the screen is shaded and will not allow me to connect to previously downloaded apps. It s

  • Thout Conditionally Hiding a column

    Hi Experts, I am using OBIEE 11.1.1.5. I have a requirement that i have a report with 3 columns column1, column2 and column3. If Value='Value1' i have to Hide column1 and column2. If Value='Value2' HIde column2. If Value='Value3' Hide column1, column

  • I need to cancel my cloud.

    I need to take my credit card out the system that is still being charged after I cancel this the first time. I will sue Adobe if the company continues to not help me with this manner.

  • Importing into Lightroom 4

    In LIghtroom 4 I have tried to create a customan naming template, but when I request a date, it appears to user the Current Date rather than the Capture Date from the Metadata.  Any ideas?