XML to single element: Attn: Henrique

Hi Henrique,
Could you pls tell me in detail about how to achieve One whole xml into one string element. I am new to all this and have not used xslt or java mapping before.
Regards,
Ashish

Hi ,
u can use XSLT mapping for inserting the complete input xml file in to string on output.
This is the sample code:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<input_tag>
<xsl:text disable-output-escaping="yes"><![CDATA[><![CDATA[]]></xsl:text>
<xsl:copy-of select="output_tag/string_name"/>
<xsl:text disable-output-escaping="yes"><![CDATA[]]]]></xsl:text>
<xsl:text disable-output-escaping="yes"><![CDATA[>]]></xsl:text>
</input_tag>
</xsl:template>
</xsl:stylesheet>.
or u can use java mapping also
below is the sample code:
//package com.xi.javamapping;
import java.io.DataInputStream;
//import java.io.File;
//import java.io.FileInputStream;
//import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.Map;
import com.sap.aii.mapping.api.StreamTransformation;
import com.sap.aii.mapping.api.StreamTransformationException;
public class XMLToString implements StreamTransformation {
     public void setParameter(Map arg0) {}
     public void execute(InputStream arg0, OutputStream arg1)
          throws StreamTransformationException {
          try {
               DataInputStream dataInputStream = new DataInputStream(arg0);
               StringBuffer sbr = new StringBuffer();
               String str = null;
               while ((str = dataInputStream.readUTF()) != null) {
                    String str1 = str.trim();
                    sbr.append(str1);
                    String string = new String(sbr);
                    byte[] b = string.getBytes();
                    arg1.write(b);
          } catch (IOException e) {
               e.printStackTrace();

Similar Messages

  • Add 1 single element in Java Mapping

    I have quite a simple requirement for my Java Mapping, however as I have done just message mappings and XSLT mappings maybe you could help how to achieve the following:
    I have an input message with attachment, what I want to do now is to read a string out of the attachment (this is already what I have done) and append a single element to the input message. No other elements should be changed.
    What would be a simple way to do this?
    Thank you very much
    Edited by: Florian G. on Nov 12, 2009 9:02 PM
    Edited by: Florian G. on Nov 12, 2009 9:03 PM

    Hi,
    You can access your attachements in:
    1. UDFs (by using package com.sap.aii.mappingtool.tf7.rt interface GlobalContainer method getInputAttachments())
    2. Java mappings (by using package com.sap.aii.mapping.api class TransformationInput method getInputAttachments())
    3. Adapter Modules
    For each area, you can find how to acccess the payloads by referring to the javadocs:
    http://help.sap.com/javadocs/pi/SP3/xpi/index.html?index-all.html
    They will all give you your attachment as text or binary data, but you will need to parse the data yourself. If your attachment itself is an XML as well, you might use DOM, SAX, stAX or other parsers if the structure is complex. Otherwise, a simple Java regex or  any simple String parsing will do as well for simple cases.
    Regards,
    S. Gökhan TOPÇ

  • WS-Security - Single element encryption ?

    Hi Guys,
    The credit card data is sensitive and we have messages going through XI which has CVV code the 3 digit code and since XI logs this, we are planning to use single element encryption (XML encryption) in the web service security.
    Customer asked that we can disable the logging only for this particular field, which is not possible in XI and thats the reason we are thinking to go for single element encryption. we have configured soap adapters on both the sender and receiver side.
    any suggestions how to acheive this or any different ideas would be really appreciated
    Thanks,
    Srini

    Hi Srinivas,
    You can go for SOAP adapter for your requirement.
    To add......if u wantt to check out the details of SOAP adapter.......
    SOAP Adapter: SOAP Adapter converts the SOAP messages into SAP XI message format that is SOAP with header attachments. This in an area many needs to really concentrate as it is heart of the ESA literature going forward.
    Refer Testing XI exposed Web-Services:
    /people/siva.maranani/blog/2005/03/01/testing-xi-exposed-web-services
    and Invoking XI Webservices:
    /people/siva.maranani/blog/2005/09/03/invoke-webservices-using-sapxi
    RFC to WebService - A Complete Walkthrough - Part 1
    /people/shabarish.vijayakumar/blog/2006/03/23/rfc--xi--webservice--a-complete-walkthrough-part-1
    and RFC -> XI -> WebService - A Complete Walkthrough -Part 2.
    /people/shabarish.vijayakumar/blog/2006/03/28/rfc--xi--webservice--a-complete-walkthrough-part-2
    You can down load a sample SOAP Client tool from SAP SOAP Client Tool.
    https://www.sdn.sap.com/irj/sdn/downloads
    Please refer How to Set Up a Web Service-Related Scenario with SAP XI for delving more deep.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/befdeb90-0201-0010-059b-f222711d10c0
    Reward points if this helps
    Regards
    Vani.

  • Xml Disassembler Promotes Elements, but not Attributes

    I have a strange issue. I am polling xml from SQL Server and debatching it on the Receive Port. Each of the debatched messages has an attribute on the root node that I wish to promote into context for routing (MessageDataPropertyBase). When I run the receive
    location, the messages are debatched and I see the attribute in the message context, but it does not get promoted.
    I used this exact same method in another application and it worked just fine. However, the difference is that the other application is promoting an element field, not an attribute field. So, to test it out I changed my message to include an element with
    my value, and changed my promoted field in the document schema to use the element instead of the attribute and VOILA! It promotes just as I would expect.
    One other test - I dropped a single message on the same port that did not need to be debatching and the attribute promoted exactly as I want. It only does not promote after being disassembled. I tried configuring the XML Disassembler both with and without
    a document schema specified (giving the envelope schema in both cases) and it made no difference.
    So here's the question...why will the XML Disassembler promote Element fields, but not Attribute fields?

    I just tried an example on BizTalk Server 2013, where I debatch my Orders and promote 3 Propeties on each Order (MessageID, ReceiverID and Total).
    In my example it works and all 3 Properties are promoted to context on each message.
    All 3 Properties in the Property Schema has the default "Property Schema Base" property "MessageDataPropertyBase". 
    So the short answer is: yes it will promote attributes, but clearly it doesn't work for you, so either you are doing something different than me and/or using another version of BizTalk than 2013?
    Morten la Cour

  • XML-24521: (Error) Element not completed

    I am trying to map a collection of information to a partnerlink's input variable, using a for-each xsl node in the transformation, however I receive this error during my testing:
    Target XML is invalid for the target schema.
    <Line 14, Column 38>: XML-24521: (Error) Element not completed: 'ExecuteGloviaSP4ProcessRequest'
    At first I thought this was an issue related to the database adapter, now I'm thinking it has to do with the collection or the xsd? But we modled the xsd after the OrderBooking PO xsd...
    Here's my Transformation_1.xml
    <?xml version="1.0" encoding="UTF-8" ?>
    <?oracle-xsl-mapper
    <!-- SPECIFICATION OF MAP SOURCES AND TARGETS, DO NOT MODIFY. -->
    <mapSources>
    <source type="WSDL">
    <schema location="http://Comp3/RFPOTest.wsdl"/>
    <rootElement name="invoiceCollection" namespace="http://199.244.49.95/NotesRFPOInvoice.xsd"/>
    </source>
    </mapSources>
    <mapTargets>
    <target type="WSDL">
    <schema location="http://bpel.thomasnow.com:80/orabpel/default/ExecuteGloviaSP4/ExecuteGloviaSP4?wsdl"/>
    <rootElement name="ExecuteGloviaSP4ProcessRequest" namespace="http://xmlns.oracle.com/ExecuteGloviaSP4"/>
    </target>
    </mapTargets>
    <!-- GENERATED BY ORACLE XSL MAPPER 10.1.2.0.0(build 050504) AT [FRI MAR 24 08:49:55 CST 2006]. -->
    ?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ns0="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://Comp3/RFPOTest.wsdl" xmlns:xsd1="http://199.244.49.95/NotesRFPOInvoice.xsd" xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/" xmlns:ns1="http://xmlns.oracle.com/ExecuteGloviaSP4" xmlns:wsa="http://schemas.xmlsoap.org/ws/2003/03/addressing" xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/" xmlns:ldap="http://schemas.oracle.com/xpath/extension/ldap" xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20" xmlns:ora="http://schemas.oracle.com/xpath/extension" xmlns:orcl="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc" exclude-result-prefixes="xsl ns0 soap tns xsd1 plnk ns1 wsa bpws ldap xp20 ora orcl">
    <xsl:template match="/">
    <xsl:for-each select="/xsd1:invoiceCollection">
    <ns1:ExecuteGloviaSP4ProcessRequest>
    <ns1:invCCN>
    <xsl:value-of select="xsd1:invoice/xsd1:invCCN"/>
    </ns1:invCCN>
    <ns1:invVendorNbr>
    <xsl:value-of select="xsd1:invoice/xsd1:invVendorNbr"/>
    </ns1:invVendorNbr>
    <ns1:invVendorApLoc>
    <xsl:value-of select="xsd1:invoice/xsd1:invVendorApLoc"/>
    </ns1:invVendorApLoc>
    <ns1:invVendorInvoiceNbr>
    <xsl:value-of select="xsd1:invoice/xsd1:invVendorInvoiceNbr"/>
    </ns1:invVendorInvoiceNbr>
    <ns1:invTotal>
    <xsl:value-of select="xsd1:invoice/xsd1:invTotal"/>
    </ns1:invTotal>
    <ns1:invFreight>
    <xsl:value-of select="xsd1:invoice/xsd1:invFreight"/>
    </ns1:invFreight>
    <ns1:invTax>
    <xsl:value-of select="xsd1:invoice/xsd1:invTax"/>
    </ns1:invTax>
    <ns1:invDate>
    <xsl:value-of select="xsd1:invoice/xsd1:invDate"/>
    </ns1:invDate>
    <ns1:invVendorTerms>
    <xsl:value-of select="xsd1:invoice/xsd1:invVendorTerms"/>
    </ns1:invVendorTerms>
    <ns1:invUNID>
    <xsl:value-of select="xsd1:invoice/xsd1:invUNID"/>
    </ns1:invUNID>
    <ns1:invGLDist>
    <xsl:value-of select="xsd1:invoice/xsd1:invGLDist"/>
    </ns1:invGLDist>
    </ns1:ExecuteGloviaSP4ProcessRequest>
    </xsl:for-each>
    </xsl:template>
    </xsl:stylesheet>

    Update:
    By mapping static values to the last three elements in the target schema, I was able to make this error go away.
    Here's the code:
    <?xml version="1.0" encoding="UTF-8" ?>
    <?oracle-xsl-mapper
    <!-- SPECIFICATION OF MAP SOURCES AND TARGETS, DO NOT MODIFY. -->
    <mapSources>
    <source type="WSDL">
    <schema location="http://Comp3/RFPOTest.wsdl"/>
    <rootElement name="invoiceCollection" namespace="http://199.244.49.95/NotesRFPOInvoice.xsd"/>
    </source>
    </mapSources>
    <mapTargets>
    <target type="WSDL">
    <schema location="http://bpel.thomasnow.com:80/orabpel/default/ExecuteGloviaSP4/ExecuteGloviaSP4?wsdl"/>
    <rootElement name="ExecuteGloviaSP4ProcessRequest" namespace="http://xmlns.oracle.com/ExecuteGloviaSP4"/>
    </target>
    </mapTargets>
    <!-- GENERATED BY ORACLE XSL MAPPER 10.1.2.0.0(build 050504) AT [FRI MAR 24 11:02:02 CST 2006]. -->
    ?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ns0="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://Comp3/RFPOTest.wsdl" xmlns:xsd1="http://199.244.49.95/NotesRFPOInvoice.xsd" xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/" xmlns:ns1="http://xmlns.oracle.com/ExecuteGloviaSP4" xmlns:wsa="http://schemas.xmlsoap.org/ws/2003/03/addressing" xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/" xmlns:ldap="http://schemas.oracle.com/xpath/extension/ldap" xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20" xmlns:ora="http://schemas.oracle.com/xpath/extension" xmlns:orcl="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc" exclude-result-prefixes="xsl ns0 soap tns xsd1 plnk ns1 wsa bpws ldap xp20 ora orcl">
    <xsl:template match="/">
    <xsl:for-each select="/xsd1:invoiceCollection/xsd1:invoice">
    <ns1:ExecuteGloviaSP4ProcessRequest>
    <ns1:invCCN>
    <xsl:value-of select="xsd1:invCCN"/>
    </ns1:invCCN>
    <ns1:invVendorNbr>
    <xsl:value-of select="xsd1:invVendorNbr"/>
    </ns1:invVendorNbr>
    <ns1:invVendorApLoc>
    <xsl:value-of select="xsd1:invVendorApLoc"/>
    </ns1:invVendorApLoc>
    <ns1:invVendorInvoiceNbr>
    <xsl:value-of select="xsd1:invVendorInvoiceNbr"/>
    </ns1:invVendorInvoiceNbr>
    <ns1:invTotal>
    <xsl:value-of select="xsd1:invTotal"/>
    </ns1:invTotal>
    <ns1:invFreight>
    <xsl:value-of select="xsd1:invFreight"/>
    </ns1:invFreight>
    <ns1:invTax>
    <xsl:value-of select="xsd1:invTax"/>
    </ns1:invTax>
    <ns1:invDate>
    <xsl:value-of select="xsd1:invDate"/>
    </ns1:invDate>
    <ns1:invVendorTerms>
    <xsl:value-of select="xsd1:invVendorTerms"/>
    </ns1:invVendorTerms>
    <ns1:invUNID>
    <xsl:value-of select="xsd1:invUNID"/>
    </ns1:invUNID>
    <ns1:invGLDist>
    <xsl:value-of select="xsd1:invGLDist"/>
    </ns1:invGLDist>
    <ns1:invICN>
    <xsl:value-of select="concat(0,&quot;&quot;)"/>
    </ns1:invICN>
    <ns1:invCurrency>
    <xsl:value-of select="concat(&quot;USD&quot;,&quot;&quot;)"/>
    </ns1:invCurrency>
    <ns1:invGLDistCode>
    <xsl:value-of select="concat(&quot; &quot;,&quot;&quot;)"/>
    </ns1:invGLDistCode>
    </ns1:ExecuteGloviaSP4ProcessRequest>
    </xsl:for-each>
    </xsl:template>
    </xsl:stylesheet>
    However I have a new error now, since I'm also mapping the Collection to the for-each XSL node.
    Target XML is invalid for the target schema.
    <Line 18, Column 1>: XML-20100: (Fatal Error) Expected 'EOF'.
    Searching...

  • How to use single element as both control as well as indicator in labview

    Hi All,
    I need to use single element for both control and as an indicator.
    I need not want to use its value property os shift register.

    Hi pmg,
                I think this thread will be helpful to you.
               http://forums.ni.com/t5/LabVIEW/Using-a-control-as-both-an-indicator-and-control/td-p/1113158 
    Thanks as kudos only

  • How do you assign multiple values to a single element in an array?

    I'm probably not wording the question right.
    I have an array, let's call it M[], and for each element in the array (we'll say M[1]), I need assign three integers: row, col and value.
    I need to set it up so I can do something like this:
    A.row = M[i].col;
    A[i].col = M[i].row;
    A[i].value = M[i].value;
    The algorithm isn't what I need help with, it's assigning .col, .row and .value to an index of an array.
    Please help if you can.

    You are right. You did not word your question perfectly, but I still think I get what you want.
    First of all: A single element in an array always has exactly one value. No more, no less.
    But that's not a problem. The element in an array is either of a primitive type (boolean, byte, char, short, int, long, float, double) or it's a reference (to a Object, String, MyClass, ...).
    You can simply write a class that holds your three values and create an array of that type:
    public class SomeData {
      public int row;
      public int col;
      public int value;
    // somewhere else:
    SomeData[] a = new SomeData[10];
    a[0] = new SomeData();
    a[0].row = 10;
    a[0].col = 5;
    a[0].value = 42;Note how you only assign a single value to the element (a[0]) itself. All other assignment actually go to fields of the object refered to by that element in the array.
    Also note that in Java types (such as classes, interfaces, ...) should start with a upper-case letter, while variables (local variables, members, parameters) and method names should start with a lower-case letter.
    Edit: I'm getting old ...

  • Thread: Could not generate the XML in single thread mode

    Hi all,
    I have created a report using PLSQL Procedure method after submitting the request I am getting the following Error.Couldn't sort out why I am getting the error while running the report.
    Error in "Multi threaded or single threaded execution block" of XXRX_REPORT_OUTPUT_PKG.insert_into_nested_table procedure
    ERROR :ORA-20005: Could not generate the XML in single thread mode
    XXRXERROR: XXRX_REPORT_OUTPUT_PKG.run_report SQLERROR: ORA-20005: ORA-20005: Could not generate the XML in single thread mode
    Can someone help me out finding the issue
    Thanks in Advance

    Hi,
    Please read SQL and PL/SQL FAQ
    We cannot guess what is the error if you don't post any part of your code.
    Additionally when you put some code or output please enclose it between two lines starting with {noformat}{noformat}
    i.e.:
    {noformat}{noformat}
    SELECT ...
    {noformat}{noformat}
    Regards.
    Al                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • "Error while parsing SOAP XML payload: no element found" received when invoking Web Service

    Running PB 12.1 Build 7000.  Using Easysoap.  Error ""Error while parsing SOAP XML payload: no element found" received when invoking Web Service".  This error does not appear to be coming from the application code.  Noticed that there were some erroneous characters showing up within the header portion of the XML ("&Quot;").  Not sure where these are coming from.  When I do a find within the PB code for ""&quot;" it gets located within two objects, whereas they both reference a "temp_xml_letter".  Not sure where or what temp_xml_letter resides???   The developer of this is no longer with us and my exposure to WSDL and Web Services is rather limited.  Need to get this resolved...please.
    This is the result of the search.  Notice the extraneous characters ("&quot;"):
    dar1main.pbl(d_as400_mq_xml)
    darlettr.pbl(d_email_xml)
    ---------- Search: Searching Target darwin for 'temp_xml'    (9:52:41 AM)
    ---------- 2 Matches Found On "temp_xml":
    dar1main.pbl(d_as400_mq_xml).d_as400_mq_xml:  export.xml(usetemplate="temp_xml_letter" headgroups="1" includewhitespace="0" metadatatype=0 savemetadata=0  template=(comment="" encoding="UTF-8" name="temp_xml_letter" xml="<?xml version=~"1.0~" encoding=~"UTF-16LE~" standalone=~"yes~"?><EmailServiceTransaction xmlns=~"http://xml.xxnamespace.com/Utility/Email/EmailService" ~" xmlns:imc=~"http://xml.xxnamespace.com/IMC~" xmlns:xsi=~"http://www.w3.org/2001/XMLSchema-instance~" xmlns:root=~"http://xml.xxnamespace.com/RootTypes~" xmlns:email=~"http://xml.xxnamespace.com/Utility/Email~" xsi:schemaLocation=~"http://xml.xxnamespace.com/Utility/Email/EmailService http://dev.xxnamespace.com/Utility/Email/EmailService/V10-TRX-EmailService.xsd~"><EmailServiceInformation><EmailServiceDetail __pbband=~"detail~"><ApplicationIdentifier> applicationidentifier </ApplicationIdentifier><AddresseeInformation><AddresseeDetail><Number> number </Number></AddresseeDetail></AddresseeInformation><EmailMessageInformation><Ema
    darlettr.pbl(d_email_xml).d_email_xml:  export.xml(usetemplate="temp_xml_letter" headgroups="1" includewhitespace="0" metadatatype=0 savemetadata=0  template=(comment="" encoding="UTF-8" name="temp_xml_letter" xml="<?xml version=~"1.0~" encoding=~"UTF-16LE~" standalone=~"yes~"?><EmailServiceTransaction xmlns=~"http://xml.xxnamespace.com/Utility/Email/EmailService" ~" xmlns:imc=~"http://xml.xxnamespace.com/IMC~" xmlns:xsi=~"http://www.w3.org/2001/XMLSchema-instance~" xmlns:root=~"http://xml.xxnamespace.com/RootTypes~" xmlns:email=~"http://xml.xxnamespace.com/Utility/Email~" xsi:schemaLocation=~"http://xml.xxnamespace.com/Utility/Email/EmailService http://dev.xxnamespace.com/Utility/Email/EmailService/V10-TRX-EmailService.xsd~"><EmailServiceInformation><EmailServiceDetail __pbband=~"detail~"><ApplicationIdentifier> applicationidentifier </ApplicationIdentifier><AddresseeInformation><AddresseeDetail><Number> imcnumber </Number></AddresseeDetail></AddresseeInformation><EmailMessageInformation><Ema
    ---------- Done 2 Matches Found On "temp_xml":
    ---------- Finished Searching Target darwin for 'temp_xml'    (9:52:41 AM)

    Maybe "extraneous" is an incorrect term.  Apparantly, based upon the writeup within Wiki, the parser I am using does not interpret the "&quot;"?  How do I find which parser is being utilized and how to control it?
    <<<
    If the document is read by an XML parser that does not or cannot read external entities, then only the five built-in XML character entities (see above) can safely be used, although other entities may be used if they are declared in the internal DTD subset.
    If the document is read by an XML parser that does read external entities, then the five built-in XML character entities can safely be used. The other 248 HTML character entities can be used as long as the XHTML DTD is accessible to the parser at the time the document is read. Other entities may also be used if they are declared in the internal DTD subset.
    >>>

  • How to send multiple data for a single element

    Hi All,
    I have a requirement where I have to send multiple data for single element per single transaction. For example
    Id details
    1 abcd
    1 efgh
    1 def
    Now, when I am selecting this ID from database, I have to get all the details in a single xsd like
    <id>1</id>
    ---><details>abcd</details>
    <details>efgh</details>
    <details>def</details>
    Thanks

    Hi,
    The following XSLT...
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:template match="/">
    <xsl:variable name="root" select="/"/>
    <root>
    <xsl:for-each select="distinct-values(/root/entry/id)">
    <xsl:variable name="id" select="."/>
    <entry>
    <id><xsl:value-of select="$id"/></id>
    <xsl:for-each select="$root/root/entry[id = $id]">
    <details><xsl:value-of select="details"/></details>
    </xsl:for-each>
    </entry>
    </xsl:for-each>
    </root>
    </xsl:template>
    </xsl:stylesheet>Will work for a document like this...
    <root>
    <entry>
    <id>1</id>
    <details>detail1</details>
    </entry>
    <entry>
    <id>1</id>
    <details>detail2</details>
    </entry>
    <entry>
    <id>2</id>
    <details>detail3</details>
    </entry>
    </root>Hope this helps...
    Cheers,
    Vlad

  • Error in Parsing XML using fx:XML/ [Error- 1090: XML parser failure: element is malformed]

    Hi All,
    I am getting error while loading XML in <fx:XML> tag.
    Error:
    TypeError: Error #1090: XML parser failure: element is malformed.
    MXML Code:
    <fx:Declarations>
    <fx:XML id="xmlSource2" source="sample.xml"/>
    </fx:Declarations>
    Sample XML Used: (sample.xml)
    <?xml version="1.0" encoding="UTF-8"?>
    <File>
        <Chemical id="000035676" displayFormula="C39-H45-N2-O6"
            displayName="Dimethyltubocurarine">
            <NameList>
                <NameOfSubstance>
                    Dimethyltubocurarine
                    <SourceList>
                        <Source>MESH</Source>
                    </SourceList>
                </NameOfSubstance>
                <SystematicName>
                    Tubocuraranium, 6,6',7',12'-tetramethoxy-2,2',2'-trimethyl-
                    <SourceList>
                        <Source>NLM</Source>
                    </SourceList>
                </SystematicName>
                <Synonyms>
                    Dimethyltubocurarine
                    <SourceList>
                        <Source>NLM</Source>
                    </SourceList>
                </Synonyms>
                <Synonyms>
                    Dimethyltubocurarinium
                    <SourceList>
                        <Source>NLM</Source>
                    </SourceList>
                </Synonyms>
                <Synonyms>
                    Methyltubocurarinum
                    <SourceList>
                        <Source>NLM</Source>
                    </SourceList>
                </Synonyms>
            </NameList>
            <NumberList>
                <CASRegistryNumber>
                    35-67-6
                    <SourceList></SourceList>
                </CASRegistryNumber>
                <RelatedRegistryNumber>
                    518-26-3 (iodide.hydriodide)
                    <SourceList>
                        <Source>MESH</Source>
                    </SourceList>
                </RelatedRegistryNumber>
            </NumberList>
            <ClassificationList>
                <ClassificationCode>
                    Neuromuscular nondepolarizing agents
                    <SourceList>
                        <Source>MESH</Source>
                    </SourceList>
                </ClassificationCode>
            </ClassificationList>
            <FormulaList>
                <MolecularFormula>
                    C39-H45-N2-O6
                    <SourceList>
                        <Source>NLM</Source>
                    </SourceList>
                </MolecularFormula>
            </FormulaList>
            <FormulaFragmentList></FormulaFragmentList>
            <NoteList></NoteList>
            <LocatorList>
                <FileLocator
                    url="http://cnetdb.nci.nih.gov/cgi-bin/srchcgi.exe?DBID=****3&SFMT=****_basic%2F10%2F0%2F0&TYPE=search&SRCHFORM=passthru%3D%Asrchform%3ASRCH%3A&FIELD_001=[CAS]35-67-6&#38;GoButton=Search&#38;FIELD_001_CTL=EXPR&#38;FIELD_908=&#38;FIELD908_CTL=HASABSTRACT&#38;FIELD_903=&#38;FIELD_903_CTL=YEARFORE&#38;DOCPAGE=10">CANCERLIT</FileLocator>
                <FileLocator
                    url="http://toxnet.nlm.nih.gov/cgi-bin/sis/search/r?dbs+toxline:@and+@term+@rn+35-67-6+@term+@org+DART">DART/ETIC</FileLocator>
                <FileLocator
                    url="http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?cmd=search&db=PubMed&term=35-67-6[ECNO]+OR+&#34;~&#34;[MH]">MEDLINE</FileLocator>
                <FileLocator
                    url="http://www.nlm.nih.gov/cgi/mesh/2K/MB_cgi?term=35-67-6&rn=1">MESH</FileLocator>
                <FileLocator
                    url="http://toxnet.nlm.nih.gov/cgi-bin/sis/search/r?dbs+toxline:@term+@rn+35-67-6+@OR+@mh+""">TOXLINE</FileLocator>
            </LocatorList>
        </Chemical>
    </File>
    Also, when I am using HttpService to load same XML I am getting no such error!!
    <s:HTTPService id="employeeService"
                           url="sample.xml"
                           result="employeeService_resultHandler(event)"
                           fault="employeeService_faultHandler(event)"/>
    Please help!!
    Thanks.
    Abhinav

    I think url in XML is creating problem here.
    <FileLocator
                    url="http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?cmd=search&db=PubMed&term=23-95-0[ECNO]+OR+&#34;~&#34;[MH]">MEDLINE</FileLocator>
    Is there any way to parse this XML using <fx:XML/> ??
    Thanks.

  • Graph & Chart: select and colour single element of data series

    Hi,
    my question is about formatting Keynote graph: i.e. bar graph 2d or 3d, is it possible select and colour differently a single element of series? In Powerpoint exists that possibility, but in Keynote I can't find the way to select only one element. If I change colour, all series elements change.
    Thanks in advance
    Antonella

    Hi Pasha ,
    yes, i am quite sure that bars are overlapping and checked with the 3 options you have mentioned.
    3. I have tried streching the graph horizontally but still the same display.
    2. I did moved to mouse to the edge points of bar .. it only mentioned one data series instead of two
    1. See if the db column contains NON-ZERO values ? ..
    I am not sure of it but when deploying the model in VC , i got a warning message saying " Zero fill is checked without Max length in field "Gross Turnover Actual " of entity " query name "
    Let me know, how this efffects the display and what do i need to do to resolve the issue .
    Appreciate your valuable inputs ...
    Thnks,
    NR

  • Diferencia entre RT FIFO shared variable Single element y Multi-element.

    Si en las propiedades de una Shared  Variable, elijo el tipo de dato como Booleano y activo RT-FIFO, Cuál es el tamaño del buffer en la opción Single element? Si elijo Multi-elemet, entiendo que el tamaño lo determino en "Number of Booleans".
    Gracias

    Hola Ainhoa!
    Estuve leyendo un poco respecto a la diferencia entre ambas opciones. Realmente no pude encontrar el tamaño del buffer, por lo que pude entender la diferencia principal es el acceso de más de un lector o escritor a la variable.
    En el caso del single element, solo un elemento permanece en el buffer por lo que si tienes dos lectores, ambos obtendran el mismo valor. Así mismo el tipo single-element FIFO no reporta alertas cuando existe un underflow u overflow en el buffer. En el caso del multi-element, por cada lector o escritor que accese la variable se creará un nuevo buffer independiente y los valores que lean serán así mismo independientes. Finalmente, en LV 8.6 tu puedes definir el tamaño del buffer, dentro de la categoría Networking. Te dejo una liga a un poco más de información que espero te sea de utilidad:
    http://zone.ni.com/devzone/cda/tut/p/id/4679
    Que tengas un excelente día!
    Oswald Branford

  • What sql will be for oracle for FOR XML AUTO, XMLSCHEMA, ELEMENTS XSINIL

    Hi all,
    I have developed an application which supports both database sql server and oracle. I am using sql
    select * from test FOR XML AUTO, XMLSCHEMA, ELEMENTS XSINIL, ROOT('test')
    to fetch records in xml format from SQL Server.
    I want to know what sql will be for oracle to get same result set in xml format.
    Thanks in advance.
    Edisphere software
    Vijay singh

    here is one way...
    declare
      qryctx         DBMS_XMLquery.ctxType;
      v_message CLOB;
      v_sql          VARCHAR2(400);
    begin  v_sql  := 'SELECT * FROM DUAL';
      qryctx := DBMS_XMLquery.newContext(v_sql);
      v_message :=  DBMS_XMLquery.getXML(qryCtx);
      DBMS_XMLquery.closeContext(qryCtx);
    dbms_output.put_line(v_message);
    end;
    Sample  output is:
    ===========
    <?xml version = '1.0'?>
    <ROWSET>
       <ROW num="1">
          <DUMMY>X</DUMMY>
       </ROW>
    </ROWSET>Validate it against a schema
    xmldoc XMLTYPE;
    v_xml_schema varchar2(4000) :='your schema definition';
      xmldoc := XMLTYPE(v_xml).createSchemaBasedXML(v_xml_schema);
      xmldoc.schemaValidate();Edited by: user130038 on Sep 20, 2011 6:00 AM

  • Single Element in Multiple hierarchies

    Hi ,
    Is it possible to have single element in multiple hierarchies in OBI EE .Lets say I have an prebuilt hierarchies
    Programs-->Campaigns and Offer--> Treatment?
    Can i create one more hierarchy Programs--> Campaigns --> Offer.It doesnot allow me to drag the offer_name to any other hierarchy since offer--> treatment hierarchy is present.
    Any pointers?
    Thanks & Regards,
    Gaurav

    Hi YSS,
    Thanks for yopur reply.
    The example which u sent to me is different to the requirement which iam looking for.Here is the more detailed abt my scenario.I have a cost element and under this cost element i have for example 4 hierarchies.under each hierarchy there are several sub nodes.in my query i want to disply like this.
    Hierarchy 1       Kf1 Kf2 Kf3
        sub node 1
          sub node 2
           Result
    Hierarchy 2
        sub node 1
          sub nde 2
           Result
    I hope now its more clear.please let me know if its possible and also can u explain how we can create Hierarchy variables to enable end user to select required hierarchies while running the query.
    Thanks,
    Vaka

Maybe you are looking for

  • Unable to make in-app purchase, all restrictions are off

    I am trying to buy the Sygic World app through the Sygic trial app that can be downloaded from the iTunes store. However, for some reason, whenever I try to buy the app, I get an error saying something like: "Oops. Error processing an in-app purchase

  • I have a massive 267GB yellow 'other' file in my memory. How can i find out what it is?

    I am cleaning up my Mac and have gone through the usual processes of removing downloads, emptying trash and other usual cleaning up of unwanted files.  On my memory storage I have a massive yellow "other" usage of 267Gb but cannot find out what this

  • Apple TV cable hookup

    Is there cable adapters available that would let you hook up an Apple TV to an older TV with RCA hookups (yellow for video, red and white for audio)?

  • Recon A/c field changeable in MIRO

    I want to make the Reconciliation A/c field changeable in MIRO. Is there any user exit available? VS Edited by: vs on Jan 11, 2008 3:19 AM

  • Getting Spammed!

    I have had this particular web e-mail address for the best part of 10 years and have never used it for commercial purposes before and it has never recieved any Spam e-mails! however, since joining the BT Community forum and using it to sign up whilst