Xsd + HashMap to XML - HowTo?

Hi,
I hava a xsd-file with an element looking like this.
                    <xs:element name="out" minOccurs="0">
                         <xs:complexType>
                              <xs:sequence>
                                   <xs:element name="field1" type="xs:string" minOccurs="0"/>
                                   <xs:element name="field3" type="xs:string" minOccurs="0"/>
                              </xs:sequence>
                         </xs:complexType>
                    </xs:element>And I have a HashMap containing many values.
Label    Value
field1   abc
field2   asjdh
field3   sdfgs
field4   jkxhvThe elements of ths xsd-element 'out' are a subset of the values in the HashMap.
I want to create a xml file where all elements of 'out' are filed.
<out>
<field1>abc</field1>
<field3>sdfgs</field3>
</out>But: How do I know which values I have to use?
Parsing the xsd? No!
We already use the xsd for jaxb class generating. I could take the generated class 'out' and use the Java Reflection API to get all setter methods of 'out'. With them I would get the label of the value and could use them. jaxb would write the needed xml-file.
But this doesn't feel right.
Any ideas for another way to solve this?
Martin

I think by default it's going to treat the Object as a JavaBean. so it looks only for 'get' and 'is' methods with 0 arguments.

Similar Messages

  • Error while registering xsd and inserting xml

    1) while inserting it is mentioning , no schema definition available for citeinfo
    2) while registering it is mentioning, with changes that i have made that it is not valid xdb schema
    how to register the xsd schema correctly.?
    SQL> desc register2;
    Name Null? Type
    TABLE of SYS.XMLTYPE(XMLSchema "fgdc-std-001-19981.xsd" Element "metadata") STORAGE Object-relationa
    SQL> alter session set events ='31156 trace name context forever, level 2'
    2 /
    Session altered.
    SQL> INSERT INTO register2
    2 VALUES (XMLType(bfilename('XMLDIR','metadata.xml'),
    3 nls_charset_id('AL32UTF8')));
    INSERT INTO register2
    ERROR at line 1:
    ORA-30937: No schema definition for 'citeinfo' (namespace '##local') in parent
    '/metadata/idinfo'
    SQL> BEGIN
    2 DBMS_XMLSCHEMA.registerSchema(
    3 SCHEMAURL => 'fgdc-std-001-199812.xsd',
    4 SCHEMADOC => bfilename('XMLDIR','fgdc-std-001-199812.xsd'),
    5 CSID => nls_charset_id('AL32UTF8'));
    6 END;
    7 /
    BEGIN
    ERROR at line 1:
    ORA-31000: Resource 'fgdc-std-001-1998-sect012.xsd' is not an XDB schema
    document
    ORA-06512: at "XDB.DBMS_XMLSCHEMA_INT", line 37
    ORA-06512: at "XDB.DBMS_XMLSCHEMA", line 61
    ORA-06512: at "XDB.DBMS_XMLSCHEMA", line 126
    ORA-06512: at line 2
    this is the xsd document
    <?xml version="1.0" encoding="utf-8"?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" blockDefault="#all">
    <xsd:element name="idinfo" type="idinfoType"/>
    <xsd:complexType name="idinfoType">
         <xsd:sequence>
              <xsd:element ref="citeinfo"/>
              <xsd:element ref="descript"/>
              <xsd:element ref="timeperd"/>
              <xsd:element ref="status"/>
              <xsd:element ref="spdom"/>
              <xsd:element ref="keywords"/>
              <xsd:element ref="accconst"/>
              <xsd:element ref="useconst"/>
              <xsd:element ref="ptcontac" minOccurs="0"/>
              <xsd:element ref="browse" minOccurs="0" maxOccurs="unbounded"/>
              <xsd:element ref="datacred" minOccurs="0"/>
              <xsd:element ref="secinfo" minOccurs="0"/>
              <xsd:element ref="native" minOccurs="0"/>
         </xsd:sequence>
    </xsd:complexType>
    <xsd:element name="citeinfo" type="citeinfoType">
    <xsd:complexType name="citeinfoType">
    <xsd:sequence>
    <xsd:element ref="origin">
         <xsd:element ref="pubdate">
         <xsd:element ref="pubtime">
         <xsd:element ref="title">
    <xsd:element ref="edition">
         <xsd:element ref="geoform">
    </xsd:sequence>
    </xsd:complexType>
    <xsd:element name="origin" type="originType"/>
    <xsd:simpleType name="originType">
         <xsd:restriction base="xsd:string"/>
    </xsd:simpleType>
    <xsd:element name="pubdate" type="pubdateType"/>
    <xsd:simpleType name="pubdateType">
         <xsd:restriction base="xsd:date"/>
    </xsd:simpleType>
    <xsd:element name="pubtime" type="pubtimeType"/>
    <xsd:simpleType name="pubtimeType">
         <xsd:restriction base="xsd:time"/>
    </xsd:simpleType>
    <xsd:element name="title" type="titleType"/>
    <xsd:simpleType name="titleType">
         <xsd:restriction base="xsd:string"/>
    </xsd:simpleType>
    <xsd:element name="edition" type="editionType"/>
    <xsd:simpleType name="editionType">
         <xsd:restriction base="xsd:double"/>
    </xsd:simpleType>
    <xsd:element name="geoform" type="geoformType"/>
    <xsd:simpleType name="geoformType">
         <xsd:restriction base="xsd:string"/>
    </xsd:simpleType>
    <xsd:element name="descript" type="descriptType"/>
    <xsd:complexType name="descriptType">
         <xsd:sequence>
              <xsd:element ref="abstract"/>
              <xsd:element ref="purpose"/>
              <xsd:element ref="supplinf" minOccurs="0"/>
         </xsd:sequence>
    </xsd:complexType>
    <xsd:element name="abstract" type="abstractType"/>
    <xsd:simpleType name="abstractType">
         <xsd:restriction base="xsd:string"/>
    </xsd:simpleType>
    this is the xml document
    <?xml version="1.0" encoding="ISO-8859-1"?><!DOCTYPE metadata SYSTEM "http://www.fgdc.gov/metadata/fgdc-std-001-1998.dtd"><metadata>
    <idinfo>
    <citation>
    <citeinfo>
    <origin>Jiohn</origin>
    <pubdate>Unknown</pubdate>
    <pubtime>Unknown</pubtime>
    <title>isolation_valve</title>
    <edition>we</edition>
    <geoform>vector digital data</geoform>
    <serinfo>
    <sername>trial</sername>
    <issue>akls</issue>
    </serinfo>
    <pubinfo>
    <pubplace>india</pubplace>
    <publish>rolta</publish>
    </pubinfo>
    <othercit>afdf</othercit>
    <onlink>\\gedora09\prfd\3.Input\O&amp;M\15Feb10\Rolta O&amp;M Data\103 shape files updated on 12.01.2009\Points\isolation_valve.shp</onlink>
    <lworkcit>
    <citeinfo>
    <origin>aedf</origin>
    <pubdate>20041203</pubdate>
    <pubtime>00290055</pubtime>
    <title>test xml</title>
    <edition>ert</edition>
    <geoform>audio</geoform>
    <onlink>ad</onlink>
    </citeinfo>
    </lworkcit>
    </citeinfo>
    </citation>
    <descript>
    <abstract>asdf</abstract>
    <purpose>asdf</purpose>
    <supplinf>werty</supplinf>
    </descript>
    <timeperd>
    <timeinfo>

    "Events" are not there just for fun - they have a purpose. Most of the time they should only be used when asked by Oracle support or when you know what you are doing...
    I assume you aren't using 11gR2 as suggested by Mark in an earlier thread...?

  • XSD schema to xml file generation using C#

    Hi fellow developers,
    I need small help with my current scenario.
    I have 2 xsd schemas one is input and other is output.
    Now my requirement is based on those xsd template or structure, i need to write a C# code that takes the 1 xsd template as input in xml format and then do some mapping and then set that values to 2 xsd template in xml format.
    Can you please guide or assist in this regards ??
    It would be helpful if we have the flexibility of configuring the schema properties.

    Hi
    Venky_Ferrari.
    Based on your description, your case related to XMLXSD, SO I will move your thread to
    Data Platform Development > XML, System.Xml, MSXML and XmlLite      
    forum for better support.
    Best regards,
    Kristin
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to convert XML into XSD Using Altova XML Spy

    Hi,
    How to convert XML file into XSD Using Altova XML Spy.
    I want to use that XSD as an External Def in my IR
    Regards
    Suman

    hi
    Following is the path where you could get the PDF's and zip file.
    https://www.sdn.sap.com/irj/sdn/howtoguides?rid=/webcontent/uuid/5024a59a-4276-2910-7580-f52eb789194b [original link is broken]
    please check out the following Heading, and at the bottom corner you will find the download option where you will get the zip file:
    How to Generate XSD Schemas from Existing MDM 5.5 Repositories
    You can download xomlite45.jar from sdn
    copy the jar file to your java installation location like c:>java in
    Java –jar xomLite45.jar MyFile.xml
    then you get correspondig MyFile.xsd
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/bf0e8a97-0d01-0010-f0a2-af3b18b7f4eb

  • How to generate XSD file for XML schema adobe form

    Hi,
    I want to generate XSD file for XML schema interfaces adobe forms. How can I do it. Where I can do it..or who will provide this file..
    Thanks
    Ram
    Edited by: Ramesh ram on Feb 23, 2010 6:33 PM

    Aaaaah, my mistake, sorry for that. Of course you should use the XML interface and I forgot it is not described in this tutorial. You can easily find another one where the XML based interface is used. But... you won´t need any tutorial. just create a WD context. Place a Interactive form element on your WD app screen, in the attributes you need to maintain the form template name. If you write a name suitable for you which no existing forms uses, the system will offer you to generate a XML based interface and right after that it will "send" you to the SFP transaction. That means you can like skipi the step defining the interface because it it is generated automatically and you only draw the layout for this generated interface.
    You should use XMl based interface for your WD app, because when using the ABAP dic based, some features are not available (I am not sure, but ABAP based works only for print form or something).
    Hope it is all clear now,
    have a nice day,
    Otto

  • How to create an XSD file from xml

    Hi,
    Is there any way to generated an XSD file from an already existing XML file.
    Does Jdeveloper 10g , has any feature to create the xsd file automatically?
    Please advice
    Regards

    Here are the steps I took to create an XSLT transformation in XI 3.0:
    1. I created my source and target XSDs using XMLSpy.
    2. I created the XSLT mapping from source to target in XMLSpy (referencing the souce XSD schema).
    3. I created another XSLT mapping to format the target into Excel XML.
    4. Import the source and target XSDs in the IR's External Definitions
    5. Zip each XSLT mapping (.xls) and import it into the IR's Imported Archives
    6. Reference the XSL mappings in the Interface Mapping

  • How to find XSD file? XML to ABAP using XSLT convertor

    Hi Gurus,
    I am trying to convert an XML file to ABAP internal tables using an XSLT transformation. I used the code posted by Durairaj (XSLT program Y_XML_2_ITAB_SIMPLE as mentioned in the link: [Y_XML_2_ITAB_SIMPLE|Parse data to Internal Table;) and the code worked fine.
    My XML file structure is different, and when I try to modify the code for my purposes I got stuck. While changing the XML file strings in the report, I am unable to replace the tag xsi:noNamespaceSchemaLocation="invoice_btm.xsd" correctly. I am also not sure what this file "invoice_btm.xsd" does and where it is stored. When I remove the tag, I get other errors and cannot proceed ahead.
    Can you please advice as to how I should proceed? Also, where can I see the XSD file? can I add a XSD file for my own XML? Or, is there a way to eliminate the need for an XSD file altogether?
    Thanks in advance.
    Regards,
    Shailesh.

    Hi guys,
    Any help would be most helpful. Thanks again,
    Hi guys,
    Any ideas on this issue? Thanks again for your help.
    Hi Naimesh,
    Thanks for the quick reply. I am getting the error "The element abap was expected for the XML-ABAP transformation". I have replaced the following:
    1) "INVOICES_BTM" with the string "ACCOUNT_INFO"
    2) "INVOICE_BTM" with the string "ROOTNODE"
    My XSLT:
    <xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:sap="http://www.sap.com/sapxsl" version="1.0">
      <xsl:template match="ACCOUNT_INFO">
        <asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
          <asx:values>
            <OUTPUT>
              <xsl:for-each select="ROOTNODE">
                <items>
                  <INV_DATE>
                    <xsl:value-of select="INVOICE_HEAD/INVOICE_DATE"/>
                  </INV_DATE>
                  <INV_NO>
                    <xsl:value-of select="INVOICE_HEAD/INVOICE_NUMBER/NUMBER"/>
                  </INV_NO>
                  <INV_EXT>
                    <xsl:value-of select="INVOICE_HEAD/INVOICE_NUMBER/EXTENSION"/>
                  </INV_EXT>
                  <INV_SEQ>
                    <xsl:value-of select="INVOICE_HEAD/INVOICE_NUMBER/SEQUENCE"/>
                  </INV_SEQ>
                </items>
              </xsl:for-each>
            </OUTPUT>
          </asx:values>
        </asx:abap>
      </xsl:template>
    </xsl:transform>
    My XML program:
    TYPES: BEGIN OF stru,
             inv_date(10),
             inv_no(50),
             inv_ext(10),
             inv_seq(10),
           END OF stru.
    DATA: outtab TYPE STANDARD TABLE OF stru .
    DATA: xslt_error  TYPE REF TO cx_xslt_exception,
          xslt_message  TYPE  string .
    DATA: xml_string TYPE string .
    CLEAR xml_string .
    CONCATENATE
    '<?xml version="1.0" encoding="ISO-8859-1"?>'
    '<ACCOUNT_INFO xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="ROOTNODE.xsd">'
      '<ROOTNODE>'
        '<INVOICE_HEAD LANGUAGE="DE" DIRECT_DEBIT_QUALIFIER="NO">'
          '<INVOICE_DATE>20040112</INVOICE_DATE>'
          '<INVOICE_NUMBER>'
            '<NUMBER>0306299999</NUMBER>'
            '<EXTENSION>1</EXTENSION>'
            '<SEQUENCE>01</SEQUENCE>'
          '</INVOICE_NUMBER>'
    '</INVOICE_HEAD>'
    '</ROOTNODE>'
    '<ROOTNODE>'
        '<INVOICE_HEAD LANGUAGE="DE" DIRECT_DEBIT_QUALIFIER="NO">'
          '<INVOICE_DATE>20040113</INVOICE_DATE>'
          '<INVOICE_NUMBER>'
            '<NUMBER>0306299888</NUMBER>'
            '<EXTENSION>2</EXTENSION>'
            '<SEQUENCE>02</SEQUENCE>'
          '</INVOICE_NUMBER>'
    '</INVOICE_HEAD>'
    '</ROOTNODE>'
    '</ACCOUNT_INFO>'
    INTO xml_string .
    TRY .
        CALL TRANSFORMATION ('ZH2_XML_TRANS_I1')
          SOURCE XML  xml_string
          RESULT     output = outtab.
      CATCH cx_xslt_exception INTO xslt_error.
        xslt_message = xslt_error->get_text( ).
    ENDTRY.
    break-point.
    Edited by: Shailesh S Kamath on Jan 16, 2012 2:17 PM
    Edited by: Shailesh S Kamath on Jan 30, 2012 2:47 PM

  • Generating "XSD" from an "XML" file

    Hi,
    I want a java program through which we can generate an "XSD" for
    the given "XML" file.
    I don't want any ready to use tools or ide's.
    Please send me links or code if exists.
    Thank You.

    http://forum.java.sun.com/thread.jspa?threadID=491512&messageID=2314233

  • XSD embedded in XML file

    I am receiving a file from one of our partners.
    The file contains both the xsd definition and then the xml content.
    Is XI able to read and process this?  I have been unable to get the file accepted as a valid input.
    If so, what do I need to have set up in the message type for the inbound file.
    Also, the partner has stated that the format may change (hence the reason for including the xsd).
    Is XI able to handle a changing message definition like this?
    Thanks in advance.
    C

    Hi Chris,
    the question is what you mean with 'is XI able to handle'. By default XI does not look into the message content at all. Hence, changing the structure of that format will not harm.
    Knowing the structure of the message is important in one of the following cases:
    1. You want to generate a proxy for the message (ABAP or java). I assume you do not want to do this.
    2. You want to access data in the message via xpath. This is normally done for defining content-dependend conditions (used e.g. in routing) but may also be used in business processes.
    If you do this it has to be assured that the xpath remains stable. That means that at least the path to the data you extract via this xpath does not change.
    3. You want to define a mapping. If you use the graphical mapping tool you have to provide the structure of the message you want to map (either by providing an XSD definition or by providing a sample message). If the structure of the message is changed there are good chances that such a Message Mapping will no longer work.
    (This depends on the kind of changes that have been applied.)
    If you do your mapping via java, XSLT, or ABAP again XI does not mind when the structure changes. Anyway, I can hardly imagine how you can program your mapping such that it automatically adapts to changing message structures.
    Greetings
                 Stephan
    Message was edited by: Stephan Naundorf

  • HashMap to xml

    I am new to java and xml. I've been trying to figure out a way to convert a HashMap into an XML string. I download castor and have been playing around w/ the marshallar but am having no luck.
    I create a hashmap as such:
              java.util.HashMap hm = new java.util.HashMap();
              hm.put("key","value");
              hm.put("key1","value1");
    then i attempt to send it to xml as such:
              Marshaller m = null;
              try{m=new Marshaller(new OutputStreamWriter(System.out));}catch(java.io.IOException ioe){
                   System.out.println(ioe);
              try{m.marshal(hm);}catch(org.exolab.castor.xml.ValidationException ve){
                   System.out.println(ve);
              }catch(org.exolab.castor.xml.MarshalException me){
                   System.out.println(me);
    In System.out this is all i get:
    <?xml version="1.0" encoding="UTF-8"?>
    <hash-map empty="false" empty="false"/>
    Any thoughts?
    Brandon

    I think by default it's going to treat the Object as a JavaBean. so it looks only for 'get' and 'is' methods with 0 arguments.

  • DTD and XSD Validation for xml file

    hi kindly reply to this mail guru'ssss
    i am facing a problem in parising a xml file against dtd and xsd.
    i have the dtd which contains only enitities that can be present in the xml file and the xsd file for validation against elements and attribute.
    when DTD is present then it is throwing errors like the elements should be declared.
    when i take out the doctype line and validate against schema its throwing the error that particular entity is not found or declared.
      public Vector validateSchema(String SchemaUrl, String XmlDocumentUrl)  
          SAXParser parser =new SAXParser();
         try{
             //parser.setNamespaceAware (true);     
             //parser.s
             parser.setFeature("http://xml.org/sax/features/validation",true);
             parser.setFeature("http://apache.org/xml/features/validation/schema",true);
             parser.setFeature("http://apache.org/xml/features/validation/schema-full-checking", true);
            // parser.setProperty("http://xml.org/sax/properties/declaration-handler", new DTDHandl());
             parser.setProperty("http://apache.org/xml/properties/schema/external-noNamespaceSchemaLocation",SchemaUrl);
            // parser.setFeature("http://xml.org/sax/features/namespace-prefixes", true);
            // System.out.println(parser.getDTDHandler());
            // UnparsedCache cache = new UnparsedCache();
           //  parser.setDTDHandler(cache);
             InputSource inputSource =new InputSource(new java.io.FileInputStream(new java.io.File(XmlDocumentUrl)));
           //  parser.setDTDHandler(new myDTDHandler());
             //parser.setEntityResolver(new CustomResolver());
         //  parser.setContentHandler(this);
             Validator handler=new Validator();
             parser.setErrorHandler(handler); 
             parser.parse(inputSource);
             if(handler.validationError==true)
               System.out.println("XML Document is not valid");
             else                  
               System.out.println("XML Document is valid");
             for(int i=0;i<ErrorLines.size();i++){
                 System.out.println(ErrorLines.elementAt(i));
       }catch(java.io.IOException ioe){  
         System.out.println("IOException"+ioe.getMessage());   
       }catch (SAXParseException e) {
         System.out.println("SAXParseException "+e.getMessage());   
      }catch (SAXException e) {
         System.out.println("SAXException"+e.getMessage());   
         return ErrorLines;
    what could be soln to this.

    Hi
    Venky_Ferrari.
    Based on your description, your case related to XMLXSD, SO I will move your thread to
    Data Platform Development > XML, System.Xml, MSXML and XmlLite      
    forum for better support.
    Best regards,
    Kristin
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Pi 7.1 ehp1 log-configuration.xml, howto create/edit in NWDS?

    Hello,
    In NWDS 2.0 You have a special mode in NWDS  to edit the file. You get tabs with Log Formatter, Log Destination, Log Controller and Source.
    How does it work in NWDS 7.1 EHP1?
    The log-configuration shipped with the example module is packed inside the sample adapter module jar. This seems not right? It should be in the ear?
    In nwds I create an ear, and then use the nwpacktool to repack it as an sda to be able to deploy with jspm. There is a firewall so I can't deploy from nwds.
    I'm building an adapter module. It works fine besides that the logcontroller doesn't display in the nwa, and I can't set the log levels.
    I've tried placing the log-configuration.xml both in the META-INF of the jar and the META-INF of the ear but it still doesn't work.
    Thanks for your help.
    Best regards
    Otto Frost

    Hello,
    The NWDS 7.1 EHP1 doesn't recognize the file in the META-INF.
    In 7.11 the log-configuration.xml isn't used anymore according to SAP.
    When the module is started the tracing location is displayed in the log-configurator automagically.
    My module wasn't started after deployment.
    To start it I had to go into the NWA - Operation Management -
    Systems - Start&Stop - Java EE applications - myPiModule
    It was stopped, but started up when I clicked the "Logs" link.
    After this it is visible in the tracing locations in the nwa log configurator.
    Best regards
    Otto Frost

  • Missing XSD line in XML file - how to add it?

    Dear all,
    We're trying to add in the XSD information to a file generated from R/3 by a standard program, which the developers don't want to adapt, as it's used by several other programs.  We'd like to do this in XI - does anyone know how or have any experience about why this would be a bad idea?
    Many thanks in advance,
    Lisa Howdle

    Hi Lisa,
    What I understood from your question is: SAP is generating a file and you want to add few more things to that file in XI.
    If we both are on the same page then you can create a xsd or extend the current xsd with the additional fields and then can load the file and send across XI.
    If we are not on the same page then can you throw some more light on this?
    Regards,
    ---Satish

  • How to bind dynamic xml with Java objects without xsd

    have a question, and hope someone here can help me.
    In my current project, I will get a xml file, containing some information of each user, and map them into a set of user objects.
    For each user, there are some fixed attributes, such as name, phone#, age, position, etc. The problem is, client can customize, and add new attibutes, such as address, favorite color, so there will be no xsd for the xml.
    What I want to do, is map fixed attributes to user object attributes, for example, name attribute to User.name, and they will have corresponding getters, and setters, but for custom attributes, I want to add them to a HashMap in User object, for example, use string "ADDRESS" as the key, and address as the value.
    Is there any way I can do this? Thank you very much for any help you can provide.

    It would not be too hard to do in regular code.
    First, make a HashSet with the Strings for the names of the known attributes that will be processed with setters.
    Then, get the NamedNodeMap via getAttributes(). That will give you all attributes -- both the ones you will handle with your setters and the ones you will handle via a HashMap.
    Then, loop through the NamedNodeMap. For each attribute, get the name and value. If the name is in the HashSet of known values, process it with a list of
    if ( attName.equals( "name" ))
        whatever.setName( value );
       continue;
    }If it is not in the HashSet, then set the value into your HashMap with the name and value.
    There is no standard way to do this.
    Dave Patterson

  • Issue in Conversion of String to XML (xsd) elements.

    Hi All,
    Please help in resolving the below issue.Please help me ASAP
    I am getting a strng value from Db adapter String= Mike,3453,USA
    I need to convert the data into xml by using below xsd.
    <?xml version="1.0" encoding='UTF-8' ?>
    <schema xmlns="http://www.w3.org/2001/XMLSchema"
    targetNamespace="http://www.uss.com/htr/IHCM204/MainRec"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    elementFormDefault="qualified"
    xmlns:nxsd="http://xmlns.oracle.com/pcbpel/nxsd"
    xmlns:tns="http://www.uss.com/htr/IHCM204/MainRec"
    attributeFormDefault="unqualified" nxsd:version="NXSD"
    nxsd:stream="chars" nxsd:encoding="US-ASCII">
    <element name="MainOutput">
    <complexType>
    <sequence>
    <element name="Target" maxOccurs="unbounded">
    <complexType>
    <sequence>
    <element name="name" type="string" nxsd:style="terminated" nxsd:terminatedBy="," />
    <element name="sal" type="string" nxsd:style="terminated" nxsd:terminatedBy="," />
    <element name="add" type="string" nxsd:style="terminated" nxsd:terminatedBy="," />
    </sequence>
    </complexType>
    </element>
    </sequence>
    </complexType>
    </element>
    </schema>
    Regards,
    Ana

    Say, for Example
    If you are getting response from db adapter as abc,def,ghi then use an transform activity to split the string.
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:oraext="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc">
    <xsl:template match="/">
    <ns:StringParsing>
    <ns:Name>
    <xsl:value-of select='substring(/ns:simpleelement/ns:dbString,1.0, oraext:last-index-within-string(/ns:simpleelement/ns:dbString,",") + 0.0)'/>
    </ns:Name>
    <ns:Address>
    <xsl:value-of select='substring(/ns:simpleelement/ns:dbString,oraext:last-index-within-string(/ns:simpleelement/ns:dbString,",") + 2.0)'/>
    </ns:Address>
    </ns:StringParsing>
    </xsl:template>
    </xsl:stylesheet>
    Let me know if it helps you.
    Edited by: BK574 on May 14, 2013 11:31 AM
    Edited by: BK574 on May 14, 2013 11:55 AM
    Edited by: BK574 on May 14, 2013 12:48 PM

Maybe you are looking for

  • CacheConnect

    Hello. I try to install cache connect but have error. Can anybody help me? thanks ./ttisql cc_name Copyright (c) 1996-2008, Oracle. All rights reserved. Type ? or "help" for help, type "exit" to quit ttIsql. All commands must end with a semicolon cha

  • Itunes window so big i cant register my new ipod

    I already have a nano and now i got the new 3rd generation (fat) nano videos and when i tunes loads up i cannot scroll over and down to the bottom right hand corner of my screen - tried pulling the window up so that i can make it wider but no dice...

  • Problem while Creating BOM using LSMW Direct Input

    Hi  all , I am trying to create the BOM Using LSMW Direct Input Method . I am getting problem at step 9 that is Read Data. It is able to read the values from header and item files . but it is not able to write , so the Written is 0 always . I put the

  • Pictures disappear when I move/copy from USB to mac Mini.

    Why the system deletes the pics? It started when I upgraded to Lion. It begins the copy but at the end just vanish from the folder. I´m  having a lot of trouble since I work on a magazine and almost all the pictures from the brands comes in USB stick

  • Pages for PhD-Dissertation?

    Dear Friends, *has anybody of you exerience with using Pages for long texts with a lot of foodnotes??* I am working on my PhD-Dissertation in the field of Law and Economics and I need a programme that is able to cope with lots of pages. I used micros