How to manipulate xml structure?

Hi there,
I have a xml data, which has this format when I read it first in flex via HTTPService:
<items>
            <item title="firstItemTitle>
                <Feature title="Speed">
                    <Machines>
                        <Machine name="machine1">
                            <Value>60m/s</Value>
                        </Machine >
                        <Machine name="machine2">
                            <Value>50m/s</Value>
                        </Machine >
                    </Machines>
                </Feature>
                <Feature title="Automatic">
                    <Machines>
                        <Machine name="machine1">
                            <Value>Yes</Value>
                        </Machine >
                        <Machine name="machine2">
                            <Value>No</Value>
                        </Machine >
                    </Machines>
                </Feature>
            </item >
             <item title="nextItemTitle">
            </item >
</items>
I want to manipulate this structure to be used in tree component, who's leaf would be replaced with a tabular structure(as shown in the attached image).
Can you kindly let me know how can this be achieved? Appreciate your help...
Thanks in advance,
Cheers!
Deepak

any help pls?

Similar Messages

  • How to manipulate XML?

    Hi guys
    I have this XML returned to my app:
    <menu>
    <categoria nome="cat1">
    <item>item 1</item>
    <item>item 2</item>
    <item>item 3</item>
    </categoria>
    <categoria nome="cat2">
    <item>item 1b</item>
    <item>item 2b</item>
    <item>item 3b</item>
    </categoria>
    <categoria nome="cat3">
    <item>item 1c</item>
    <item>item 2c</item>
    <item>item 3c</item>
    </categoria>
    </menu>
    this is retrieved by an HTTPService
    <mx:HTTPService id="xmlMenu" url="data/menu.xml"
    method="POST" useProxy="false" result="handler()"
    resultFormat="e4x" />
    How to manipulate the XML data in then result handler using
    action script?
    - show nodes length
    - get the atribute of node categoria
    - get to the values of node item
    i've tried
    xmlMenu.lastResult.menu.length.toString()
    xmlMenu.lastResult.menu.categoria[0].length.toString()
    xmlMenu.lastResult.menu.categoria[0].@nome
    xmlMenu.lastResult.menu.categoria[0].item[0]
    nothing happens

    A better way to get the result is:
    <mx:HTTPService ..result="handler(event)"
    and in the handler:
    private function handler(oEvent:ResultEvent):void //might
    need to import ResultEvent
    var xmlMenu:XML = oEvent.result;
    trace(xmlMenu.toXMLString())
    Now you can use the e4x expressions;
    trace(xmlMenu.categoria[0].item[0]); //ashould trace "item 1"
    Tracy

  • How create an xml structure in a pdf form

    Hi genius guys,
    some one can help me to create a correct xml structure (root, subroot1, subroot2, etc etc) in a pdf form and not only the single tag?
    Example: I give a pdf with form to be filled and after I extract xml data. Now I have this:
    <?xml version="1.0" encoding="UTF-8"?>
    <fields xmlns:xfdf="http://ns.adobe.com/xfdf-transition/"
    ><A1classe
    >1995</A1classe
    ><A1cognome
    >Fanna</A1cognome
    ><A1nome
    >Tonino</A1nome
    ><Annodifondazione xfdf:original="Anno di fondazione"
    >1965</Annodifondazione
    ><C1classe
    >1976</C1classe
    ><C1cognome
    >Di Gennaro</C1cognome
    ><C1nome
    >Antonio</C1nome
    ><Campionato
    >ECCELLENZA</Campionato
    ><Campodigioco
    >Comunale di Villabartolomea</Campodigioco
    ><Colorisociali
    >Giallo Rosso</Colorisociali
    ><D1classe
    >1984</D1classe
    ><D1cognome
    >Fontolan</D1cognome
    ><D1nome
    >Beppe</D1nome
    ><Girone
    >A</Girone
    ><P1classe
    >1980</P1classe
    ><P1cognome
    >Zoff</P1cognome
    ><P1nome
    >Dino</P1nome
    ><P2classe
    >1974</P2classe
    ><P2cognome
    >Garella</P2cognome
    ><P2nome
    >Claudio</P2nome
    ><S1cognome
    >Baudo</S1cognome
    ><S1mansione
    >Presidente</S1mansione
    ><S1nome
    >Pippo</S1nome
    ><S2cognome
    >Togni</S2cognome
    ><S2mansione
    >Vice Presidente</S2mansione
    ><S2nome
    >Darix</S2nome
    ><Sede
    >Via Pisacane,8 - Villabartolomea</Sede
    ><Squadra
    >VILLABARTOLOMEA</Squadra
    ><T1cognome
    >Dallara</T1cognome
    ><T1mansione
    >Allenatore</T1mansione
    ><T1nome
    >Toni</T1nome
    ><T2cognome
    >Silvan</T2cognome
    ><T2mansione
    >Magazziniere</T2mansione
    ><T2nome
    >Mago</T2nome
    ></fields
    >
    and I need this:
    <?xml version="1.0" encoding="UTF-8"?>
    <root xmlns:xfdf="http://ns.adobe.com/xfdf-transition/"
    ><attaccanti>
    <A1classe
    >1995</A1classe
    ><A1cognome
    >Fanna</A1cognome
    ><A1nome
    >Tonino</A1nome
    >
    </attaccanti>
    <Annodifondazione xfdf:original="Anno di fondazione"
    >1965</Annodifondazione
    >
    <centrocampisti>
    <C1classe
    >1976</C1classe
    ><C1cognome
    >Di Gennaro</C1cognome
    ><C1nome
    >Antonio</C1nome>
    </centrocampisti>
    <Campionato
    >ECCELLENZA</Campionato
    ><Campodigioco
    >Comunale di Villabartolomea</Campodigioco
    ><Colorisociali
    >Giallo Rosso</Colorisociali
    >
    <difensori>
    <D1classe
    >1984</D1classe
    ><D1cognome
    >Fontolan</D1cognome
    ><D1nome
    >Beppe</D1nome
    ></difensori>
    <Girone
    >A</Girone
    ><portieri>
    <P1classe
    >1980</P1classe
    ><P1cognome
    >Zoff</P1cognome
    ><P1nome
    >Dino</P1nome
    ><P2classe
    >1974</P2classe
    ><P2cognome
    >Garella</P2cognome
    ><P2nome
    >Claudio</P2nome
    ></portieri>
    <societa>
    <S1cognome
    >Baudo</S1cognome
    ><S1mansione
    >Presidente</S1mansione
    ><S1nome
    >Pippo</S1nome
    ><S2cognome
    >Togni</S2cognome
    ><S2mansione
    >Vice Presidente</S2mansione
    ><S2nome
    >Darix</S2nome
    ></societa>
    <Sede
    >Via Pisacane,8 - Villabartolomea</Sede
    ><Squadra
    >VILLABARTOLOMEA</Squadra
    ><tecnici>
    <T1cognome
    >Dallara</T1cognome
    ><T1mansione
    >Allenatore</T1mansione
    ><T1nome
    >Toni</T1nome
    ><T2cognome
    >Silvan</T2cognome
    ><T2mansione
    >Magazziniere</T2mansione
    ><T2nome
    >Mago</T2nome
    >
    </tecnici></root
    >
    Thanx, Paolo

    I solve the trouble using "." to separate the tagname and create the correct structure for xml.
    example:
    team.player.1name
    team.player.1surname
    team.player.1rol
    team.player.2name
    team.player.2surname
    team.player.2role
    this give me:
    <team>
         <player>
              <1name>XXXX</1name>
              <1surname>YYY</1surname>
              <1role>forward</1role>
         </player>
    <player>
              <2name>XXXX</2name>
              <2surname>YYY</2surname>
              <2role>forward</2role>
         </player>
    </team>

  • How to change  XML  Structure from one form to another form using OO ABAP.

    Hi Experts,
    In my Scenario, i need to do ABAP Mapping in order to change Incoming structure from one form to another.
    My Input to ABAP Mapping (OO ABAP Program)would be :
         <A>..........</A>
         <B>..........</B>
         <C> .........</C>
         <D>..........</D>
         <E>..........</E>
         <F>..........</F>
    OO ABAP Program need to read this input and change the XML Structure into below form:
         <A>..........</A>
         <B>..........</B>
         <C> .........</C>
          <X>
                <D>..........</D>
                <E>..........</E>
          <F>...............<F>
    Please provide inputs (sample Code) to solve this issue.
    Thanks,
    Kish.
    Edited by: Kishore Reddy Thamma on Jan 22, 2008 2:51 PM
    Edited by: Kishore Reddy Thamma on Jan 22, 2008 2:52 PM

    Hi,
    Please provide sample code or Material for converting XML Structure from one form to another using OO ABAP and
    Steps for ABAP MAPPING.
    Thanks,
    Kish.

  • How to Manipulate XML message in BPM

    Hi,
    We are running an Async to Sync bridge for our SAP ORDERS ORDERS05 IDoc to CXML order request interface.  When we post the CXML order and get a response, we are trying to send a STATUS SYSTAT01 IDoc to SAP.  We need to pass in the IDoc number for the orginal ORDERS IDoc in the STATUS IDoc. 
    In BPM, we are able to extract the DOCNUM for the ORDERS IDoc using the Container operation.  However, we are not able to place this DOCNUM in the STATUS IDoc.
    However, we cannot use a Container operation to put back the value.  Any ideas on how to do this?  We want to manipulate the STATUS IDoc.
    Thanks,
    Jay Malla
    Genentech SAP XI Team

    Hi Jay,
    Let me summarize:
    1. you have the value somewhere in the "incomming message"
    2. you want to place it in "STATUS IDoc"
    3. both of these messages are in one integration process
    right?
    so why don't you do a simple transformation:
    Incoming message + Response status message -> STATUS IDoc ?
    Further reference:
    http://help.sap.com/saphelp_nw04/helpdata/en/21/6faf35c2d74295a3cb97f6f3ccf43c/content.htm
    I believe there's no need to use REQUEST_DOCNUM
    If I misuderstood your problem please tell me:)
    Regards,
    Michal

  • How i can manipulate xml  writeXML()

    I am using wirteXML() Method for creating xml from
    ADF BC Viewobject from generated xml i want to create txt file with the help of xslt but my consern is when i am creating concern file i want it align properly for that reason what i can do if is it possible to give RPAD for my view object query (i tried to give that it is working for Varchar of type but this method is not working for Number of type in this case how i can go forward )
    How to manipulate xml ,If I want add spaces in any node values of an xml file using oracle.xml.parser.v2.DOMParser
    Message was edited by:
    prabeethsoy

    Hi zxxxxwe,
    >>I need to know how to get the numbers from the phonebook
    What do you mean by "phonebook", does it mean contact list or contact history.
    Currently, there is no API to get contact history in Windows phone for privacy
    If you need to get contact information, for WP8/8.1 Silverlight, see:
    #Walkthrough: Accessing contact and calendar data for Windows Phone 8
    https://msdn.microsoft.com/en-us/library/windows/apps/hh286414(v=vs.105).aspx
    For WinRT, See:
    https://msdn.microsoft.com/en-us/library/windows/apps/windows.applicationmodel.contacts.aspx
    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.

  • Indesign Javascript and xml structure

    Hi to all
    I am new to program javascript in Indesign, and I am looking for some example on how modify the xml structure inside a document using a javascript script.
    i.e.
    if I have a structure like this in the original document:
    root
    section
    tag1
    tag2
    tag3
    I need to transform it in this way( this is just an example, may be more complex):
    root
         section
              tag1
              tag2
              tag3
    Any help on where or how to solve this is very appreciate.
    Thanks a lot

    I think the MoveXMLElement.jsx script there shows pretty well what's involved. Here's something that addresses something closer to your example:
    var root = app.activeDocument.xmlElements[0];
    root.xmlElements.item("tag1").move(LocationOptions.AT_END, root.xmlElements.item("section"));
    root.xmlElements.item("tag2").move(LocationOptions.AT_END, root.xmlElements.item("section"));
    root.xmlElements.item("tag3").move(LocationOptions.AT_END, root.xmlElements.item("section"));
    You want to be careful about the order you do things and when you grab references to the xml structure objects, since you're changing them as you go (i.e. root.xmlElements[3] might refer to tag3 when you start, but will be invalid once you start moving things into section).
    If the xml structure in your InDesign document is the result of an xml import, you might consider transforming the xml as you import it. It's faster and more natural there.
    Hope that helps,
    Jeff

  • How can I get the XML structure from a flat structure?

    Hi all,
    in my XI SP 12 I use a JMS adapter to read information using the WebSphereMQ transport protocol.
    The structure that I receive have this format:
    <Name_A.KeyFieldValue><Name_A.fieldName_A1_Value>...<Name_A.fieldName_AN_Value>
    <NumberRecordType_B><NumberRecordType_c>
    <Name_B.KeyFieldValue><Name_B.fieldName_B1_Value>...<Name_B.fieldName_BN_Value>
    <Name_B.KeyFieldValue><Name_B.fieldName_B1_Value>...<Name_B.fieldName_BN_Value>
    <Name_C.KeyFieldValue><Name_C.fieldName_C1_Value>...<Name_C.fieldName_CN_Value>
    <Name_C.KeyFieldValue><Name_C.fieldName_C1_Value>...<Name_C.fieldName_CN_Value>
    the problem is that in this structure each line is not separated by a carriage return or a comma, I have all the information in a single line:
    <Name_A.KeyFieldValue><Name_A.fieldName_A1_Value>...<Name_A.fieldName_AN_Value><NumberRecordType_B><NumberRecordType_c><Name_B.KeyFieldValue><Name_B.fieldName_B1_Value>...<Name_B.fieldName_BN_Value>...<Name_B.KeyFieldValue><Name_B.fieldName_B1_Value>...<Name_B.fieldName_BN_Value><Name_C.KeyFieldValue><Name_C.fieldName_C1_Value>...<Name_C.fieldName_CN_Value>...<Name_C.KeyFieldValue><Name_C.fieldName_C1_Value>...<Name_C.fieldName_CN_Value>
    and the customer don't want to insert a line separator.
    Then, the question is:
    How can I get the XML structure from this structure?
    If possible, I don't want to develop new Module and add it in the JMS Module Sequence.
    PS I have already read the article "How to Use the Content Conversion Module with the XI 3 J2EE JMS Adapter.pdf" and it doesn't seem to help me.
    Best Regards,
    Paolo

    To get context parameters from your web.xml file you can simply get the ActionServlet object from an implementing action object class. In the perform (or execute) method make the following call.
    ServletContext context = getServlet().getServletContext();
    String tempContextVar =
    context.getInitParameter("<your context param >");

  • How to use For-Each Structure with Multiple node XML structure

    Hi,
      How to use for-each (BPEL 2.0) construct for Multinode XML structure.
    Here is the easy case: I have list of suppliers specified by supplier
    <supplierList>
    <supplier>1</supplier>
    <supplier>2</supplier>
    <supplier>3</supplier>
    </supplierList>
    Now there is a web service http://hostname/getsupplierdetails/wsdl which accepts one supplier at a time.
    like
    <supplier>1</supplier>
    reponse object is
    <message> notfound/found </message>
    But how can I use for each of XML node to call this service and collect the result like
    <supplierList1>
         <Suppinfo>
            <supplier>1</supplier>
            <message> not found</message>
    </suppinfo>
        <suppinfo>
            <supplier>1</supplier>
            <message> not found</message>
    </suppinfo>
    </supplierlist1>
    Thanks

    For looping you use foreach loop and , loop for the number of occurences and when constructing response, adding a new element you have to use bpelx:append.  Good sample at Enterprise Integration: Oracle SOA Suite 11g: Populating a list or an array in BPEL without using XSLT.

  • How to map a deep xml structure to flat structure

    Hi, I'm trying to map a deep xml structure to a flat file structure. See this:
    <SalesPoint>
             <header>
                  <idTx></idTx>
                  <opCode></opCode>
             </header>
             <body>
              <DataSet>
                   <codOperacion></codOperacion>
                   <codCanalDeVenta></codCanalDeVenta>
                   <cuitDeposito>
                   <docMinorista>
                   <fechaOperacion>
                   <codCC>
                   <Details>
                         <Dato>
                                        <nroSerieEquipo></nroSerieEquipo>
                            <codNMU></codNMU>
                            <codOrigenEquipo></codOrigenEquipo>
                            <codConcepto></codConcepto>
                             <codSegmento></codSegmento>
                            <motivoSiniestro></motivoSiniestro>
                         </Dato>
                   </Details>
              </DataSet>
             </body>
    </SalesPoint>
    to:
    <SalesPoint>
            <idTx></idTx>
            <opCode></opCode>
         <codOperacion></codOperacion>
         <codCanalDeVenta></codCanalDeVenta>
         <cuitDeposito></cuitDeposito>
         <docMinorista></docMinorista>
         <fechaOperacion></fechaOperacion>
         <codCC></codCC>
            <nroSerieEquipo></nroSerieEquipo>
            <codNMU></codNMU>
         <codOrigenEquipo></codOrigenEquipo>
         <codConcepto></codConcepto>
         <codSegmento></codSegmento>
         <motivoSiniestro></motivoSiniestro>
    </SalesPoint>
    Thanks in advance!!!!

    I do not think this is a complex XML structure. All that you need to take care is about the contexts. How ever it is not possible to give u the complete mapping here. If you have tried mapping already and facing some issues.. please put it here.. so that some one can help you.
    VJ

  • How can I fill structure from the line with contetnt of a XML file inside?

    How can I fill structure from the line with contetnt of a XML file inside?
    I have array of lines with XML documents inside. All XML's have the same structure.
    I need to fill array of structures (with the same structure like given XML's) from data of these XML's.
    How can I do this? I am trying Transformation with ora:parseEscapedXML, but receive error: "XPath expression failed to execute.
    Error while processing xpath expression, the expression is "ora:processXSLT("Transformation_1.xsl", bpws:getVariableData("ProcessedFiles"))", the reason is javax.xml.transform.TransformerException: javax.xml.transform.TransformerException: Could not find function: parseEscapedXML.
    Please verify the xpath query."

    Ive posted the new code but now I'm getting a FileAlreadyExistException error. How do I handle this exception error correctly in my code?
    import java.io.IOException;
    import java.nio.file.FileAlreadyExistsException;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.DocumentBuilderFactory;
    import javax.xml.parsers.ParserConfigurationException;
    import org.w3c.dom.Document;
    import org.w3c.dom.Element;
    import org.w3c.dom.Node;
    import org.w3c.dom.NodeList;
    import org.xml.sax.SAXException;
    public class MyDomParser {
      public static void main(String[] args) {
      DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
      try {
      DocumentBuilder builder = factory.newDocumentBuilder();
      Document doc = builder.parse("ENtemplate.xml");
      doc.normalize();
      NodeList rootNodes = doc.getElementsByTagName("templates");
      Node rootNode = rootNodes.item(0);
      Element rootElement = (Element) rootNode;
      NodeList templateList = rootElement.getElementsByTagName("template");
      for(int i=0; i < templateList.getLength(); i++) {
      Node theTemplate = templateList.item(i);
      Element templateElement = (Element) theTemplate;
      System.out.println(templateElement.getAttribute("name")+ ".xml");
      for(int i=0; i < templateList.getLength(); i++) {
      Node theTemplate = templateList.item(i);
      Element templateElement = (Element) theTemplate;
      String fileName = templateElement.getAttribute("name") + ".xml";
      Files.createFile(Paths.get(fileName));
      System.out.println("File" + ":" + fileName + ".xml created");
      } catch (ParserConfigurationException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
      } catch (SAXException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
      } catch (IOException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();

  • How to modify Source XML Structure as it is getting Fail in message Mapping

    From Client , I am Gettin Such XML Structure in XML File ...But it is getting failed in Message Mapping ,.,,
    <?xml version="1.0"?>
    <invoice>
       <Header>
          <DOCID>0001</DOCID>
          <DOCNO>0001</DOCNO>
          <INVAMT>1000</INVAMT>
       </Header>
    </invoice>
    I tried to find out few things ...
    On test of mesage mapping
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:invoice xmlns:ns0="urn:sample.com:file:file">
       <Header>
          <DOCID>0001</DOCID>
          <DOCNO>0001</DOCNO>
          <INVAMT>1000</INVAMT>
       </Header>
    </ns0:invoice>
    This mapping is getting successful.
    So Problem I found Is difference in Sender File Structure from autogenrated Source Structure in Test tab :  
    </invoice>
    and
    <ns0:invoice xmlns:ns0="urn:sample.com.com:Invoice:DB">
    Please Suggest : What to do ?
    How to add this ns0: before INVOICE and :ns0="urn:sample.com.com:Invoice:DB" after INVOICE in Source Structure.
    I am using PI 7.0
    regards
    Prabhat

    Hi Prabhat,
    the easiest way is to make the field XML Namespace of the source Message Type blank.
    Regards,
    Udo

  • How to create an xml structure in webdynpro for java using NWDS?

    Hi Experts,
    I need to call an webservice by passing an xml structure to the webservice.I have the input values loaded on the context,which are basically tied to an Form UI element.Is there anyway in webdynpro to build an xml structure. ,
    or do i need to use any open source like JAAS or DOM parser in the webdynpro project.?
    Thanks
    Aravind

    hi,
    I was working on exporting table data from wd to Excel sheet. There, i had to create an XML representaion of the context.
    Please refer to link, and go through page, 10 and 11 and see id you find anything useful.
    [https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/user-interface-technology/webdynpro/wd%20java/wdjava%20archive/exporting%20context%20data%20into%20excel%20using%20the%20web%20dynpro%20binary%20cache.pdf]

  • One Communication Channel for two XML-Structure

    Hi to all!
    i'm Newbee in XI.
    i register one Communication Channel to recieve two different XML-Structure and when i sent second structure there was a Mapping error, because XI waiting for first XML-Structure.
    I'd like to ask if there are any additional condition that i must tune up to make it possible or just it's impossible?

    Hi,
    Please refer below links
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/121b053d-0401-0010-539f-f9295efb7bad
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3a913f71-0601-0010-7a83-dfd3208a9a0b
    how to find the URL of deployed Web services?
    Creating .NET Web service
    http://www.15seconds.com/issue/010430.htm
    Also refer SOAP Framework to generate the common wsdl for both the messages with single SOAP CC
    http://help.sap.com/saphelp_nw04s/helpdata/en/bb/ddb33d2ae46b3be10000000a114084/frameset.htm
    Thanks
    swarup

  • Special characters in XML structure when prepared using String

    Hi,
       I am preparing an XML structure using 'String'. I print the prepared XML structure in the server log. Issue is that I am seeing extra characters([[ and ]]) that I am not printing.
    Please let me know how to get rid of those.
    Code Excerpt
            String xmlHeader = "<?xml version=\"1.0\" encoding=\"utf-8\" ?>";
            String lsb_xmlcon = xmlHeader;
            logger.info("ReqXMLString Process  1  --->" + lsb_xmlcon);
            lsb_xmlcon = lsb_xmlcon +("\n");
            logger.info("ReqXMLString Process  1.1  --->" + lsb_xmlcon);
            lsb_xmlcon = lsb_xmlcon +("<REQUEST>");
            lsb_xmlcon = lsb_xmlcon +("\n");
            logger.info("ReqXMLString Process  1.2  --->" + lsb_xmlcon);
    Log
    ReqXMLString Process  1  ---><?xml version="1.0" encoding="utf-8" ?>
    ReqXMLString Process  1.1  ---><?xml version="1.0" encoding="utf-8" ?>[[
    ReqXMLString Process  1.2  ---><?xml version="1.0" encoding="utf-8" ?>[[
    <REQUEST>
    Thanks,
    Message was edited by: 996913
    This issue is observed only while running the code in server, not from Jdev.
    When we append the additional tags without new line character, "\n", there are no extra characters being added. Also, in other case also. where we used "Marshaller" to prepare the XML, we have seen this issue.
    After we set the below property to false, we got rid of the extra characters.
                            jaxbMarshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, false);
    Apparently the insertion of new line when the code runs on server(Weblogic 10.3.6.0) is creating the issue.
    Please let me know if anyone has come across a similar scenario.
    Thanks,

    I am building this XML in a servlet so ,right, DOM does process XML (even though a valid HTML file can be loaded into a DOM object) but if you build XML using DOM then write the XML out using PrintWriter and Transformer objects this will cause the XML to print out in your browser. If you view source on this XML you will see that the DOM object has translated all special characters to there &xxxx; equivalent. For a example: when the string (I know "cool" java) gets loaded into a attribute using the DOM object then wrote back out it looks like (I know &xxx;cool&xxx; java) if you view the source in your browser. This is what it should do, but the DOM object is not change the � to the "&xxxxx;". This servlet is acting as a gateway between a Java API and a windows asp. The asp will call the servlet expecting to get XML back and load it directly into a DOM object. When the windows DOM object gets the xml that I am returning in this servlet is throws a exception "invalid character" because the � was not translated to &xxxx; like the other characters were. According to the book HTML 4 in 24 hours (and other references) the eacute; or #233; are how you say "�" in HTML or XML. How do you say it?

Maybe you are looking for

  • Numbers won't 'save as' a different file type.

    i have an existing numbers file that I would like to save as an excel file.  There is no save as option, how do I do this?

  • Custom Field/Column in Sourcing Cockpit Overview

    Hi All, We are using SRM 5.0 Classic Scenario and requirement is to add custom fields like Material No. and Delivery date on Sourcing cockpit overview as columns. I have already checked the Templates and the Screen for SAPLBBP_SOCO_UI_ITS screen 200

  • IPhone 4 does not really support MJPEG?

    iPhone 4 tech specs claim that it supports Motion JPEG videos. However, *iTunes refuses to copy any MJPEG video to my iPhone 4*. If I try to drag them, it says "<file> was not copied to the iPhone <name> because it cannot be played on this iPhone". I

  • Wired Networking if you can...

    With all the complaints about the ATV and wireless that I've read on here (not to discount any of those mind you) I decided to check what kind of throughput I could get over my simple switched ethernet connection. The result? During syncing my Mac Mi

  • H8-1260t Bluetooth Light Won't turn off

    When I first got my h8-1260t you could turn off the Bluetooth light by turning off the adapter.  Now with the adapter off the Bluetooth light on the front stays blue.  How can I get this light to go off when the adapter is turned off? Kind of disconc