Help needed in XML encoders and decoders

I'm using XMLEncoders and XMLDecoders for storage of java objects. Currently I've tried on simple data types only. But the problem is if I want to operate on the XMLEncoder created file from two different programs, then it is giving errors. In one program I'm executing
XMLEncoder e = new XMLEncoder(new BufferedOutputStream
(new FileOutputStream("polledobjects.xml")));
e.writeObject(...);
e.writeObject(...);
e.close();
and in another program I want to append to append a few more objects in the same polledobjects.xml, so I created another XML encoder object and opened the polledobjects.xml in append mode.
XMLEncoder e1 = new XMLEncoder(new BufferedOutputStream(new
FileOutputStream("polledobjects.xml",true)));
e1.writeObject(...);
e1.writeObject(...);
e1.close();
Now, Decoder works fine till the point it goes thru xml portion created by the first program, but as soon as it reached xml portion created by the second program, it gives the error->
java.lang.ArrayIndexOutOfBoundsException: 2
at java.beans.ObjectHandler.dequeueResult(XMLDecoder.java:272)
at java.beans.XMLDecoder.readObject(XMLDecoder.java:150)
at Convert.main(Convert.java:57)
XML file created is :-
<?xml version="1.0" encoding="UTF-8"?>
<java version="1.4.2" class="java.beans.XMLDecoder">
<object class="Data_to_Poll">
<void property="active">
<boolean>true</boolean>
</void>
<void property="agent">
<string>192.9.200.151</string>
</void>
</object>
</java>
<?xml version="1.0" encoding="UTF-8"?>
<java version="1.4.2" class="java.beans.XMLDecoder">
<object class="Data_to_Poll">
<void property="active">
<boolean>true</boolean>
</void>
<void property="agent">
<string>192.9.200.151</string>
</void>
</object>
</java>
I know it is giving problems b'cos it is encountering <?xml tag 2 times in the same xml document, but what should I do if I want to append in the same xml file and in the second program nothing more than filename is known...
plz. help me out....

In the below code hope "append" method may help u solve ur req.
import java.io.*;
import java.beans.*;
import java.util.*;
public class Convert {
public static void main(String asd[]) {
try{
Convert c = new Convert();
c.encode("source.xml");
c.decode("source.xml");
c.append("source.xml");
}catch(Exception e) {
e.printStackTrace();
public void encode(String fName) throws FileNotFoundException {
XMLEncoder xmlE = new XMLEncoder(new BufferedOutputStream(new FileOutputStream(fName)));
xmlE.writeObject(new MyObject());
xmlE.writeObject(new MyObject("Orange","BasketBall"));
xmlE.close();
/*xmlE = new XMLEncoder(new BufferedOutputStream(new FileOutputStream(fName,true)));
xmlE.writeObject(new MyObject());
xmlE.close();*/
public void decode(String fName) throws FileNotFoundException {
XMLDecoder xmlD = new XMLDecoder(new BufferedInputStream(new FileInputStream(fName)));
Object obj = xmlD.readObject();
boolean mine= obj instanceof MyObject;
System.out.println(obj+" is : "+mine);
xmlD.close();
public void append(String fName) throws Exception {
XMLDecoder xmlD = new XMLDecoder(new BufferedInputStream(new FileInputStream(fName)));
Vector objs = new Vector();
Object obj = xmlD.readObject();
try{
while(obj !=null){
objs.add(obj);
obj = xmlD.readObject();
}catch(Exception e) {
e.printStackTrace();
if(obj!=null) {
objs.add(obj);
xmlD.close();
XMLEncoder xmlE = new XMLEncoder(new BufferedOutputStream(new FileOutputStream(fName)));
int count = objs.size();
for(int i=0;i<count;++i) {
xmlE.writeObject(objs.get(i));
xmlE.writeObject(new MyObject("White","VollyBall"));
xmlE.close();

Similar Messages

  • Color management help needed for adobe CS5 and Epson printer 1400-Prints coming out too dark with re

    Color management help needed for adobe CS5 and Epson printer 1400-Prints coming out too dark with reddish cast and loss of detail
    System: Windows 7
    Adobe CS5
    Printer: Epson Stylus Photo 1400
    Paper: Inkjet matte presentation paper with slight luster
    Installed latest patch for Adobe CS5
    Epson driver up to date
    After reading solutions online and trying them for my settings for 2 days I am still unable to print what I am seeing on my screen in Adobe CS5. I calibrated my monitor, but am not sure once calibration is saved if I somehow use this setting in Photoshop’s color management.
    The files I am printing are photographs of dogs with lots of detail  I digitally painted with my Wacom tablet in Photoshop CS5 and then printed with Epson Stylus 1400 on inkjet paper 20lb with slight luster.
    My Printed images lose a lot of the detail & come out way to dark with a reddish cast and loss of detail when I used these settings in the printing window:
    Color Handling: Photoshop manages color, Color management -ICM, OFF no color adjustment.
    When I change to these settings in printer window: Color Handling:  Printer manages color.  Color management- Color Controls, 1.8 Gamma and choose Epson Standard it prints lighter, but with reddish cast and very little detail and this is the best setting I have used so far.
    Based on what I have read on line, I think the issue is mainly to do with what controls are set in the Photoshop Color Settings window and the Epson Printer preferences. I have screen images attached of these windows and would appreciate knowing what you recommend I enter for each choice.
    Also I am confused as to what ICM color management system to use with this printer and CS5:
    What is the best ICM to use with PS CS5 & the Epson 1400 printer? Should I use the same ICM for both?
    Do I embed the ICM I choose into the new files I create? 
    Do I view all files in the CS5 workspace in this default ICM?
    Do I set my monitor setting to the same ICM?
    If new file opens in CS5 workspace and it has a different embedded profile than my workspace, do I convert it?
    Do I set my printer, Monitor and PS CS5 color settings to the same ICM?
    Is using the same ICM for all devices what is called a consistent workflow?
    I appreciate any and all advice that can be sent my way on this complicated issue. Thank you in advance for your time and kind help.

    It may be possible to figure out by watching a Dr.Brown video on the subject of color printing. Adobe tv
    I hope this may help...............

  • Help needed reading xml attributes

    I have a method that is reading through my XML doc and pulling out all of the elements. I want to get it to pull out the href attribute from within AdvertText but can't figure out how to do it within my method. Any help would be greatly appreciated!
    Here is the sample of the xml:
    <Advert groupName="Advert" type="group">
    <AdvertText dataType="RawString" fieldName="AdvertText" href="http://boston.craigslist.org/nos/abo/583827823.html" originalElement="a" type="field">First Floor Central Gloucester -</AdvertText>
    <Cost dataType="RawString" fieldName="Cost" href="http://boston.craigslist.org/nos/abo/583827823.html" originalElement="a" type="field">1350</Cost>
    <NumberOfBedrooms dataType="RawString" fieldName="NumberOfBedrooms" href="http://boston.craigslist.org/nos/abo/583827823.html" originalElement="a" type="field">3</NumberOfBedrooms>
    <Location dataType="RawString" fieldName="Location" originalElement="span" type="field">Gloucester</Location>
    </Advert>
    Here is my method:
    public Vector Read() {
            try {
                DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();
                DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();
                Document doc = docBuilder.parse("http://www.dapper.net/RunDapp?dappName=CraigslistRentInfo&v=1&applyToUrl=http%3A%2F%2Fboston.craigslist.org%2Faap?query=&minAsk=min&maxAsk=max&bedrooms=1");
                // normalize text representation
                doc.getDocumentElement ().normalize ();
                System.out.println ("Root element of the doc is " +
                     doc.getDocumentElement().getNodeName());
                NodeList listOfAdverts = doc.getElementsByTagName("Advert");
                int totalAdverts = listOfAdverts.getLength();
                System.out.println("Total no of people : " + totalAdverts);
                RentAdvert myAd;
                String text;
                String loc;
                String bed;
                String cost;
                int y=10;
                for(int i=0; i<y ; i++){
                    Node firstAdvertNode = listOfAdverts.item(i);
                    if(firstAdvertNode.getNodeType() == Node.ELEMENT_NODE){
                        Element firstAdvertElement = (Element)firstAdvertNode;
                        NodeList advertTextList = firstAdvertElement.getElementsByTagName("AdvertText");
                        if((Element)advertTextList.item(0)==null){
                            text = "not available";
                        }else{
                        Element advertTextElement = (Element)advertTextList.item(0);
                        NodeList textATList = advertTextElement.getChildNodes();
                        System.out.println("Advert Text : " + ((Node)textATList.item(0)).getNodeValue().trim());
                        text = ((Node)textATList.item(0)).getNodeValue().trim();
                        //myAd.setAdvertText(text);
                        NodeList costList = firstAdvertElement.getElementsByTagName("Cost");
                        if((Element)costList.item(0)==null){
                            cost = "not available";
                        }else{
                        Element costElement = (Element)costList.item(0);
                        NodeList textCList = costElement.getChildNodes();
                        System.out.println("Cost : " + ((Node)textCList.item(0)).getNodeValue().trim());
                        cost = ((Node)textCList.item(0)).getNodeValue().trim();
                        //myAd.setCost(cost);
                        NodeList numberOfBedroomsList = firstAdvertElement.getElementsByTagName("NumberOfBedrooms");
                        if((Element)numberOfBedroomsList.item(0)==null){
                            bed = "not available";
                        }else{
                        Element numberOfBedroomsElement = (Element)numberOfBedroomsList.item(0);
                        NodeList textNOBList = numberOfBedroomsElement.getChildNodes();
                        System.out.println("Number of Bedrooms : " + ((Node)textNOBList.item(0)).getNodeValue().trim());
                        bed = ((Node)textNOBList.item(0)).getNodeValue().trim();
                        //myAd.setNumberOfBedrooms(bed);
                        NodeList locationList = firstAdvertElement.getElementsByTagName("Location");
                        if((Element)locationList.item(0)==null){
                            loc = "not available";
                        }else{
                        Element locationElement = (Element)locationList.item(0);
                        NodeList textLList = locationElement.getChildNodes();
                        System.out.println("Location : " + ((Node)textLList.item(0)).getNodeValue().trim());
                        loc = ((Node)textLList.item(0)).getNodeValue().trim();
                        //myAd.setLocation(loc);
                        if((text!="not available")&&(cost!="not available")&&(bed!="not available")&&(loc!="not available")){
                        myAd = new RentAdvert(text,cost,bed,loc);
                        listings.add(i,myAd);
                        }else{
                            y++;                       
                    }//end of if clause           
                }//end of for loop with s var
            }catch (SAXParseException err) {
            System.out.println ("** Parsing error" + ", line "
                 + err.getLineNumber () + ", uri " + err.getSystemId ());
            System.out.println(" " + err.getMessage ());
            }catch (SAXException e) {
            Exception x = e.getException ();
            ((x == null) ? e : x).printStackTrace ();
            }catch (Throwable t) {
            t.printStackTrace ();
            return listings;
        }//end of Read

    Works!
    NamedNodeMap a;
    a = n.getAttributes();
                    if(a != null) {
                    System.out.println("AttributesList: " + a);
                    System.out.println("NodeValue: " + a.item(0).getNodeValue());

  • Help needed in redoing networking and home entertainment

    I realize that this is a site dedicated to all things Apple, but I am hoping I can't get some honest and impartial help on building the best home network and entertainment system.
    I currently have an XP Media Center desktop computer in an office of my home where all of the network stuff is at and is connected via ethernet. I also have a Mac G4 MDD 1.0 that I am using in another room for Adobe Creative Suite to do my own promotional items and I have about a 50' Cat 6 cable running back to the router in the office. I also have a Vista laptop that is connected wirelessly but believe it is only a "g" network? I don't really use this a whole lot but take it out to job sites and such so there is information I need to send back and forth to my external drives hooked up via ethernet to my router. I am in the process of getting a new MacBook Pro as well.
    I have a PS3 hooked up to my home entertainment center but unsure of how to make everything work the way that I want. Here is what I would like to be able to do. 1) Networking of all computers and external drives, 2) Operate my Mac G4 Wirelessly, 3) Addition of internal bluetooth to G4 so I can get a wireless keyboard and mouse, 4) Ability to play iTunes from external hard drives on home entertainment center, 3) Ability to stream media from internet and hard drives to HDTV in home entertainment center
    I am looking to upgrade my router to dual band with either the Airport Extreme or the Netgear WNDR3700. I don't know which to get and have found about the same amount of pros and cons for each on the web. Any suggestions and why?
    Do I need an Apple TV or a Netgear WNHDEB111 or other Digital Media Reciever???
    What else would you recommend to accomplish my goals and why do you recommend the part and brand that you do.
    Thank you in advance for any and all assistance I can get.

    Hello, I will gladly assist you with these steps. Have you already set the printer up physically? Are the ink cartridges set in and the printer is ready, just waiting to be downloaded to the computer? If you still have the CD that came with the 8600 printer, all you have to do is place the CD in and click SETUP. This will guide you step by step to install. 
    Now the tricky part is how you want the 2 PC's connected. You can go USB (hardwire from printer to computer), Wireless (set the printer up on network and PC on network with NO cords attached, or you can go Ethernet (a cord going from the printer to the router).
    Let me know how you are able to connect, and I can guide you through those steps.
    **Click the KUDOS star on the left to say 'Thanks'**
    Please mark a reply "ACCEPTED AS SOLUTION" if it solved your problem, so others can find it.

  • Help Needed -- Oracle XML/SQL utility and PL/SQL parser

    Let's say we have an xml file
    <?xml version="1.0" standalone="no"?>
    <abc>
    <def>
    <ghi>test</ghi>
    </def>
    <jkl>
    <mno>testing</mno>
    </jkl>
    </abc>
    We can store the <def> tag in one table say def and <jkl> tag in another table say jkl.
    Is there a way to combine def and jkl and insert in one table so that there in one row with two columns test and testing??
    null

    Hi,
    Are u sure that it is a java enabled database? The most common
    case of failure with the xmlgen package is because the loadjava
    command did not succeed.
    Please make sure that oraclexmlsqlload.bat file loaded all the
    java procedures successfully. If not then u would have to java-
    enable your database by running the initjvm script. (please see
    the docs).
    Thx
    Murali
    Iveta Vojtko (guest) wrote:
    : Hi,
    : I have downloaded XML SQL Utility for Java against Oracle
    8.0.5
    : on WindowsNT. The xmlgen package was created successfully but
    : its body is invalid and my PL/SQL test has failed because of
    : following error: PLS-00103: Encountered the symbol "NAME"
    : when expecting one of the following: := . ( @ % ; not null
    range
    : renames default character. The symbol ":= was inserted abefore
    : "NAME" to continue.
    : Is it because I am not using Oracle8i? I just want to use the
    : server side of XML SQL. Please, reply asap. Thank you.
    Oracle Technology Network
    http://technet.oracle.com
    null

  • Urgent help needed for XML Tags using XMLForest()

    Folks
    I need some urgent help regarding getting use defined tag in your
    XML output.
    For this I am using XMLElement and XMLForest which seems to work fine
    when used at the SQL prompt but when used in a procedure throws and error
    SQL> Select SYS_XMLAGG(XMLElement("SDI",
                                       XMLForest(sdi_num)))
         From sdi
         where sdi_num = 22261;- WORKS FINE
    But when used in a procedure,doesnt seem to work
    Declare
        queryCtx  DBMS_XMLQuery.ctxType;
        v_xml     VARCHAR2(32767);
        v_xmlClob CLOB;
        BEGIN
        v_xml:='Select SYS_XMLAGG(XMLElement("SDI",
                                             XMLFOREST(sdi_num)))
        From sdi
        where sdi_num = 22261';
        queryCtx :=DBMS_XMLQuery.newContext(v_xml);
        v_xmlClob :=DBMS_XMLQuery.getXML(queryCtx);
        display_xml(v_xmlClob);
    End;
    CREATE OR REPLACE PROCEDURE  display_xml(result IN OUT NOCOPY CLOB)
    AS
         xmlstr varchar2(32767);
         line varchar2(2000);
    BEGIN
         xmlstr:=dbms_lob.SUBSTR(result,32767);
         LOOP
         EXIT WHEN xmlstr is null;
         line :=substr(xmlstr,1,instr(xmlstr,chr(10))-1);
         dbms_output.put_line('.'||line);
         xmlstr := substr(xmlstr,instr(xmlstr,chr(10))+1);
         END LOOP;
    end;
    SQL> /
    .<?xml version = '1.0'?>
    .<ERROR>oracle.xml.sql.OracleXMLSQLException: Character ')' is not allowed in an
    XML tag name.</ERROR>
    PL/SQL procedure successfully completed.
    SQL>HELP is appreciated as to where I am going wrong?

    Hi,
    if you want to transform something to something else, you should declare, what is your source.
    I would prefer to use plain XSL-Transformations, because you have a lot more options to transform your source and you can even better determine, how your output should looks like.
    Kind regards,
    Hendrik

  • Help needed in XML

    We have xml like below.
    <?xml version="1.0" encoding="UTF-8" ?>
    <xapi:requestset xmlns:xapi="http://xmlns.oracle.com/oxp/xapi/">
    <xapi:request select="/XXARXSGPO/LIST_G_SETUP/G_SETUP/LIST_G_CUST_NUM/G_CUST_NUM">
    <xapi:delivery>
    <xapi:filesystem output="${INSTANCE}/java/oracle/apps/xxod/arstatements/${SITE_USE_ID}"/>
    </xapi:delivery>
    <xapi:document output-type= "pdf">
    <xapi:template type="rtf" location="/app/ebs/atgsidev02/gsidev02cust/xxcomn/java/oracle/apps/xxod/XXARPRST.rtf">
    </xapi:template>
    </xapi:document>
    </xapi:request>
    </xapi:requestset>
    In the above code {INSTANCE} is having value '/app/ebs/atgsidev02/gsidev02cust/xxcomn'. Now we need to replace with the same variable {INSTANCE} in the <xapi:template type=..........> tag also. We tried with
    <xapi:template type="rtf" location="${INSTANCE}/java/oracle/apps/xxod/XXARPRST.rtf">.
    But it is not recognizing the INSTANCE value.
    Any help on this appreciated.
    Thanks,
    Samba

    Hi,
    The INSTANCE is a tag and having the value '/app/ebs/atgsidev02/gsidev02cust/xxcomn'. So I need to pass this string dynamically to the
    <xapi:document output-type= "pdf">
    <xapi:template type="rtf" location="/app/ebs/atgsidev02/gsidev02cust/xxcomn/java/oracle/apps/xxod/XXARPRST.rtf">
    </xapi:template>
    </xapi:document>
    So for the above one I replaced the INSTANCE as follows.
    <xapi:document output-type= "pdf">
    <xapi:template type="rtf"
    location="${INSTANCE}/java/oracle/apps/xxod/XXARPRST.rtf">
    </xapi:template>
    </xapi:document>
    But this one is not working.
    Pls help me this is very high priority to me.
    Thanks,
    Samba

  • Help needed in XML Form Builder

    Hi All,
    I require your help in XML form .
    when we create a XML form in Builder we can define some caption values such as $sap_user , $ locDate which displays the
    user id and date in the respective field when the form is opened.
    I need to dispaly the phone number,department etc from the LDAP /UME to my from .
    How can i get it .
    Please help.
    Regards,
    Nitesh

    Which environment are you trying this in ? In Enterprise server, bursting is defined by a SQL query which can be run against the table that you want. So you can even populate the printer name from your query. So the URI, ipp://myprintserver:631/printers/printername" is the syntax. In your case you have to create this string in your SQL query by concatenating the parts "ipp://" + printername + ":631/". If there is a name to the printer in the printserver, then that too can be concatenated.
    In case this is in EBS , the same has to be done in the control file.

  • Help needed with xml to flat file conversion

    Hi all,
    I am doing a webservice (SOAP) to file scenario. The file I get into the target directory is as below.
    <?xml version="1.0" encoding="UTF-8"?>
    <ns1:MT_Test_interface xmlns:ns1="http://test_namespace.co.uk"><fieldA>0000012345</fieldA><fieldB></fieldB><fieldC>0010203040</fieldC><transaction_type>NEW</transaction_type><transaction_date>2011/08/21</transaction_date><sales data>PARTNERS (((119006.258 169077.102), (372718.323 77854.466, 371449.872 70783.383), (382225.17 73214.976, 398410.463 95156.636)))</sales data></ns1:MT_Test_interface>
    But I want it to be a plain text file like below, not an xml file.
    0000012345
    0010203040
    NEW
    2011/08/21
    PARTNERS
    (((119006.258 169077.102), (372718.323 77854.466, 371449.872 70783.383), (382225.17 73214.976, 398410.463 95156.636)))
    What are all the modules I need and also the parameters and their values please?
    Any help is appreciated.
    Thanks.
    Ramesh.

    Thanks guys.
    My xml now is like this:
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ns1:MT_test xmlns:ns1="http://test.co.uk">
    - <REPORT>
      <company_number>0000043239</company_number>
      <transaction_type>CREATE</transaction_type>
      <transaction_date>2011/08/21</transaction_date>
      <sales_data>Partners (((119006.258 169077.102), (372718.323 77854.466, 371449.872 70783.383), (382225.17 73214.976, 398410.463 95156.636)))</Partners>
      </REPORT>
      </ns1:MT_test>
    I am using the content conversion as below:
    Recordset Structure: REPORT
    Name: REPORT.addHeaderLine      Value: 1
    Name: REPORT.fieldSeparator      Value: ,
    Name: REPORT.endSeparator      Value: 'nl'
    Name: company_number.endSeparator      Value: 'nl'
    and I am getting the result as:
    company_number,transaction_type,transaction_date,sales_data
    0000043239,CREATE,2011/08/21,Partners (((119006.258 169077.102), (372718.323 77854.466, 371449.872 70783.383), 382225.17 73214.976, 398410.463 95156.636)))
    But I want file like this:
    company_number,transaction_type,transaction_date,sales_data
    0000043239
    CREATE
    2011/08/21
    Partners (((119006.258 169077.102), (372718.323 77854.466, 371449.872 70783.383), 382225.17 73214.976, 398410.463 95156.636)))
    What will be the CC parameters please?
    Many thanks.
    Ramesh.

  • Help need in XML to Proxy scenario

    HI Guys,
    I have got one scenaio from xml file --> ABAP proxy. This is for SNC integration, Product Acitivity Data. Please have a look the following xml file.
    <?xml version="1.0" encoding="UTF-8"?>
    <ROOT>
    <OUTPUT>
    <TRANS_HEADER>
      <SET_ID>852</SET_ID>
      <CNTL_NUMB>0001</CNTL_NUMB>
      <CUST_NUMB>3800580</CUST_NUMB>
      </TRANS_HEADER>
    <H01_XQ>
      <XQ01>H</XQ01>
      <XQ_Y2K_DATE1>20100601</XQ_Y2K_DATE1>
      </H01_XQ>
    <Group_N1>
    <H02_N1>
      <N101>ST</N101>
      <N102>SO. CALIF.</N102>
      <N103>UL</N103>
      <N104>0083967005509</N104>
      </H02_N1>
    <H02_N1_N4>
      <N401>SANBERNARDINO CALIFORNIA</N401>
      <N402>CA</N402>
      <N403>92407-185</N403>
      </H02_N1_N4>
    <H02_N1_DTM>
      <DTM01>600</DTM01>
      <DTM_Y2K_DATE>20100531</DTM_Y2K_DATE>
      </H02_N1_DTM>
      </Group_N1>
    <Group_LIN>
    <D01_LIN>
      <LIN02>CB</LIN02>
      <LIN03>225037</LIN03>
      <LIN04>UA</LIN04>
      <LIN05>001230035569</LIN05>
      <LIN06>UK</LIN06>
      <LIN07>00012300355698</LIN07>
      <LIN08>ZZ</LIN08>
      <LIN09>0</LIN09>
      </D01_LIN>
    <D01_PO4>
      <P0401>10</P0401>
      </D01_PO4>
    <D01_N9>
      <N901>VN</N901>
      <N902>0000005121</N902>
      </D01_N9>
    <Group_ZA>
    <D02_ZA>
      <ZA01>QA</ZA01>
      <ZA02>0.0</ZA02>
      <ZA03>CT</ZA03>
      <ZA06>LJ</ZA06>
      <ZA07>XX</ZA07>
      </D02_ZA>
    <D02_ZA>
      <ZA01>QN</ZA01>
      <ZA02>1.0</ZA02>
      <ZA03>CT</ZA03>
      <ZA06>LJ</ZA06>
      <ZA07>XX</ZA07>
      </D02_ZA>
    <D02_ZA>
      <ZA01>QO</ZA01>
      <ZA02>0.0</ZA02>
      <ZA03>CT</ZA03>
      <ZA06>LJ</ZA06>
      <ZA07>XX</ZA07>
      </D02_ZA>
    <D02_ZA>
      <ZA01>QP</ZA01>
      <ZA02>0.0</ZA02>
      <ZA03>CT</ZA03>
      <ZA06>LJ</ZA06>
      <ZA07>XX</ZA07>
      </D02_ZA>
    <D02_ZA>
      <ZA01>QS</ZA01>
      <ZA02>0.0</ZA02>
      <ZA03>CT</ZA03>
      <ZA06>LJ</ZA06>
      <ZA07>XX</ZA07>
      </D02_ZA>
      </Group_ZA>
      </Group_LIN>
    <Group_LIN>
    <D01_LIN>
      <LIN02>CB</LIN02>
      <LIN03>225052</LIN03>
      <LIN04>UA</LIN04>
      <LIN05>001230035570</LIN05>
      <LIN06>UK</LIN06>
      <LIN07>00012300355704</LIN07>
      <LIN08>ZZ</LIN08>
      <LIN09>2</LIN09>
      </D01_LIN>
    <D01_PO4>
      <P0401>10</P0401>
      </D01_PO4>
    <D01_N9>
      <N901>VN</N901>
      <N902>0000005121</N902>
      </D01_N9>
    <Group_ZA>
    <D02_ZA>
      <ZA01>QA</ZA01>
      <ZA02>0.0</ZA02>
      <ZA03>CT</ZA03>
      <ZA06>LJ</ZA06>
      <ZA07>XX</ZA07>
      </D02_ZA>
    <D02_ZA>
      <ZA01>QN</ZA01>
      <ZA02>1.0</ZA02>
      <ZA03>CT</ZA03>
      <ZA06>LJ</ZA06>
      <ZA07>XX</ZA07>
      </D02_ZA>
    <D02_ZA>
      <ZA01>QO</ZA01>
      <ZA02>0.0</ZA02>
      <ZA03>CT</ZA03>
      <ZA06>LJ</ZA06>
      <ZA07>XX</ZA07>
      </D02_ZA>
    <D02_ZA>
      <ZA01>QP</ZA01>
      <ZA02>0.0</ZA02>
      <ZA03>CT</ZA03>
      <ZA06>LJ</ZA06>
      <ZA07>XX</ZA07>
      </D02_ZA>
    <D02_ZA>
      <ZA01>QS</ZA01>
      <ZA02>0.0</ZA02>
      <ZA03>CT</ZA03>
      <ZA06>LJ</ZA06>
      <ZA07>XX</ZA07>
      </D02_ZA>
      </Group_ZA>
      </Group_LIN>
    <Group_LIN>
    <D01_LIN>
      <LIN02>CB</LIN02>
      <LIN03>225078</LIN03>
      <LIN04>UA</LIN04>
      <LIN05>001230035571</LIN05>
      <LIN06>UK</LIN06>
      <LIN07>00012300355711</LIN07>
      <LIN08>ZZ</LIN08>
      <LIN09>2</LIN09>
      </D01_LIN>
    <D01_PO4>
      <P0401>10</P0401>
      </D01_PO4>
    <D01_N9>
      <N901>VN</N901>
      <N902>0000005121</N902>
      </D01_N9>
    <Group_ZA>
    <D02_ZA>
      <ZA01>QA</ZA01>
      <ZA02>0.0</ZA02>
      <ZA03>CT</ZA03>
      <ZA06>LJ</ZA06>
      <ZA07>XX</ZA07>
      </D02_ZA>
    <D02_ZA>
      <ZA01>QN</ZA01>
      <ZA02>1.0</ZA02>
      <ZA03>CT</ZA03>
      <ZA06>LJ</ZA06>
      <ZA07>XX</ZA07>
      </D02_ZA>
    <D02_ZA>
      <ZA01>QO</ZA01>
      <ZA02>0.0</ZA02>
      <ZA03>CT</ZA03>
      <ZA06>LJ</ZA06>
      <ZA07>XX</ZA07>
      </D02_ZA>
    <D02_ZA>
      <ZA01>QP</ZA01>
      <ZA02>0.0</ZA02>
      <ZA03>CT</ZA03>
      <ZA06>LJ</ZA06>
      <ZA07>XX</ZA07>
      </D02_ZA>
    <D02_ZA>
      <ZA01>QS</ZA01>
      <ZA02>0.0</ZA02>
      <ZA03>CT</ZA03>
      <ZA06>LJ</ZA06>
      <ZA07>XX</ZA07>
      </D02_ZA>
      </Group_ZA>
      </Group_LIN>
    <Group_LIN>
    <S01_CTT>
      <CTT01>53</CTT01>
      </S01_CTT>
      </OUTPUT>
    <OUTPUT>
    <TRANS_HEADER>
      <SET_ID>852</SET_ID>
      <CNTL_NUMB>0001</CNTL_NUMB>
      <CUST_NUMB>3800580</CUST_NUMB>
      </TRANS_HEADER>
    <H01_XQ>
      <XQ01>H</XQ01>
      <XQ_Y2K_DATE1>20100601</XQ_Y2K_DATE1>
      </H01_XQ>
    <Group_N1>
    <H02_N1>
      <N101>ST</N101>
      <N102>SO. CALIF.</N102>
      <N103>UL</N103>
      <N104>0083967005509</N104>
      </H02_N1>
    <H02_N1_N4>
      <N401>SANBERNARDINO CALIFORNIA</N401>
      <N402>CA</N402>
      <N403>92407-185</N403>
      </H02_N1_N4>
    <H02_N1_DTM>
      <DTM01>600</DTM01>
      <DTM_Y2K_DATE>20100531</DTM_Y2K_DATE>
      </H02_N1_DTM>
      </Group_N1>
    <Group_LIN>
    <D01_LIN>
      <LIN02>CB</LIN02>
      <LIN03>225037</LIN03>
      <LIN04>UA</LIN04>
      <LIN05>001230035569</LIN05>
      <LIN06>UK</LIN06>
      <LIN07>00012300355698</LIN07>
      <LIN08>ZZ</LIN08>
      <LIN09>0</LIN09>
      </D01_LIN>
    <D01_PO4>
      <P0401>10</P0401>
      </D01_PO4>
    <D01_N9>
      <N901>VN</N901>
      <N902>0000005121</N902>
      </D01_N9>
    <Group_ZA>
    <D02_ZA>
      <ZA01>QA</ZA01>
      <ZA02>0.0</ZA02>
      <ZA03>CT</ZA03>
      <ZA06>LJ</ZA06>
      <ZA07>XX</ZA07>
      </D02_ZA>
    <D02_ZA>
      <ZA01>QN</ZA01>
      <ZA02>1.0</ZA02>
      <ZA03>CT</ZA03>
      <ZA06>LJ</ZA06>
      <ZA07>XX</ZA07>
      </D02_ZA>
    <D02_ZA>
      <ZA01>QO</ZA01>
      <ZA02>0.0</ZA02>
      <ZA03>CT</ZA03>
      <ZA06>LJ</ZA06>
      <ZA07>XX</ZA07>
      </D02_ZA>
    <D02_ZA>
      <ZA01>QP</ZA01>
      <ZA02>0.0</ZA02>
      <ZA03>CT</ZA03>
      <ZA06>LJ</ZA06>
      <ZA07>XX</ZA07>
      </D02_ZA>
    <D02_ZA>
      <ZA01>QS</ZA01>
      <ZA02>0.0</ZA02>
      <ZA03>CT</ZA03>
      <ZA06>LJ</ZA06>
      <ZA07>XX</ZA07>
      </D02_ZA>
      </Group_ZA>
      </Group_LIN>
    <Group_LIN>
    <D01_LIN>
      <LIN02>CB</LIN02>
      <LIN03>225052</LIN03>
      <LIN04>UA</LIN04>
      <LIN05>001230035570</LIN05>
      <LIN06>UK</LIN06>
      <LIN07>00012300355704</LIN07>
      <LIN08>ZZ</LIN08>
      <LIN09>2</LIN09>
      </D01_LIN>
    <D01_PO4>
      <P0401>10</P0401>
      </D01_PO4>
    <D01_N9>
      <N901>VN</N901>
      <N902>0000005121</N902>
      </D01_N9>
    <Group_ZA>
    <D02_ZA>
      <ZA01>QA</ZA01>
      <ZA02>0.0</ZA02>
      <ZA03>CT</ZA03>
      <ZA06>LJ</ZA06>
      <ZA07>XX</ZA07>
      </D02_ZA>
    <D02_ZA>
      <ZA01>QN</ZA01>
      <ZA02>1.0</ZA02>
      <ZA03>CT</ZA03>
      <ZA06>LJ</ZA06>
      <ZA07>XX</ZA07>
      </D02_ZA>
    <D02_ZA>
      <ZA01>QO</ZA01>
      <ZA02>0.0</ZA02>
      <ZA03>CT</ZA03>
      <ZA06>LJ</ZA06>
      <ZA07>XX</ZA07>
      </D02_ZA>
    <D02_ZA>
      <ZA01>QP</ZA01>
      <ZA02>0.0</ZA02>
      <ZA03>CT</ZA03>
      <ZA06>LJ</ZA06>
      <ZA07>XX</ZA07>
      </D02_ZA>
    <D02_ZA>
      <ZA01>QS</ZA01>
      <ZA02>0.0</ZA02>
      <ZA03>CT</ZA03>
      <ZA06>LJ</ZA06>
      <ZA07>XX</ZA07>
      </D02_ZA>
      </Group_ZA>
      </Group_LIN>
    <Group_LIN>
    <D01_LIN>
      <LIN02>CB</LIN02>
      <LIN03>225078</LIN03>
      <LIN04>UA</LIN04>
      <LIN05>001230035571</LIN05>
      <LIN06>UK</LIN06>
      <LIN07>00012300355711</LIN07>
      <LIN08>ZZ</LIN08>
      <LIN09>2</LIN09>
      </D01_LIN>
    <D01_PO4>
      <P0401>10</P0401>
      </D01_PO4>
    <D01_N9>
      <N901>VN</N901>
      <N902>0000005121</N902>
      </D01_N9>
    <Group_ZA>
    <D02_ZA>
      <ZA01>QA</ZA01>
      <ZA02>0.0</ZA02>
      <ZA03>CT</ZA03>
      <ZA06>LJ</ZA06>
      <ZA07>XX</ZA07>
      </D02_ZA>
    <D02_ZA>
      <ZA01>QN</ZA01>
      <ZA02>1.0</ZA02>
      <ZA03>CT</ZA03>
      <ZA06>LJ</ZA06>
      <ZA07>XX</ZA07>
      </D02_ZA>
    <D02_ZA>
      <ZA01>QO</ZA01>
      <ZA02>0.0</ZA02>
      <ZA03>CT</ZA03>
      <ZA06>LJ</ZA06>
      <ZA07>XX</ZA07>
      </D02_ZA>
    <D02_ZA>
      <ZA01>QP</ZA01>
      <ZA02>0.0</ZA02>
      <ZA03>CT</ZA03>
      <ZA06>LJ</ZA06>
      <ZA07>XX</ZA07>
      </D02_ZA>
    <D02_ZA>
      <ZA01>QS</ZA01>
      <ZA02>0.0</ZA02>
      <ZA03>CT</ZA03>
      <ZA06>LJ</ZA06>
      <ZA07>XX</ZA07>
      </D02_ZA>
      </Group_ZA>
      </Group_LIN>
    <Group_LIN>
    <S01_CTT>
      <CTT01>53</CTT01>
      </S01_CTT>
      </OUTPUT>
    </ROOT>
    1. Can you please tell me, Do we need Multimapping in this?
    2. To take this file into PI, do we need to use Ananimity bean parameters to sender file adapter module?
    3. the sender side XSD schma as follows is it okay are any change are required
    ROOT     Complex Type          
    OUTPUT     Element          0..unbounded
    TRANS_HEADER     Element          0..unbounded
    SET_ID     Element     xsd:string     0..1
    CNTL_NUMB     Element     xsd:string     0..1
    CUST_NUMB     Element     xsd:string     0..1
    H01_XQ     Element          0..unbounded
    XQ01     Element     xsd:string     0..1
    XQ_Y2K_DATE1     Element     xsd:date     0..1
    Group_N1     Element          0..unbounded
    H02_N1     Element          0..1
    N101     Element     xsd:string     0..1
    N102     Element     xsd:string     0..1
    N103     Element     xsd:string     0..1
    N104     Element     xsd:string     0..1
    H02_N1_N4     Element          0..1
    N401     Element     xsd:string     0..1
    N402     Element     xsd:string     0..1
    N403     Element     xsd:string     0..1
    H02_N1_DTM     Element          0..1
    DTM01     Element     xsd:string     0..1
    DTM_Y2K_DATE     Element     xsd:date     0..1
    Group_LIN     Element          0..unbounded
    D01_LIN     Element          0..unbounded
    LIN02     Element     xsd:string     0..1
    LIN03     Element     xsd:string     0..1
    LIN04     Element     xsd:string     0..1
    LIN05     Element     xsd:string     0..1
    LIN06     Element     xsd:string     0..1
    LIN07     Element     xsd:string     0..1
    LIN08     Element     xsd:string     0..1
    LIN09     Element     xsd:string     0..1
    D01_PO4     Element          0..unbounded
    P0401     Element     xsd:integer     0..1
    D01_N9     Element          0..unbounded
    N901     Element     xsd:string     0..1
    N902     Element     xsd:string     0..1
    Group_ZA     Element          0..unbounded
    D02_ZA     Element          0..unbounded
    ZA01     Element     xsd:string     0..unbounded
    ZA02     Element     xsd:decimal     0..unbounded
    ZA03     Element     xsd:string     0..unbounded
    ZA04     Element     xsd:string     0..unbounded
    ZA05     Element     xsd:string     0..unbounded
    ZA06     Element     xsd:string     0..unbounded
    ZA07     Element     xsd:string     0..unbounded
    ZA08     Element     xsd:string     0..unbounded
    ZA09     Element     xsd:string     0..unbounded
    S01_CTT     Element          0..unbounded
    CTT01     Element     xsd:string     0..1
    Any kind if help is good.
    Regards
    Many thanks in advance.
    San

    Hi Abhishek,
    Any example scenario do you about this model. I will explain our scenario situation, please give me your idea.
    We are doing Customer colloboration on SNC 7.0 with PI 7.11. Everyday customer sales files almost 100 comes individually EDI messages comes in EDI flat file, there is intermediate company will conver EDI flat file into xml messages. This xml file has got first 5 tags header information and the rest 50 to 100 lin items. This kind of header and lin information 3 to 5 messages per one xml.
    EX:  <RooT>
               <OUTPUT> -- 0..unbound
                  <Header-1>   --- 0..1
                  <Header-2>  ---  0..1
                  <Line -1>     0..n
                  <Line -7>     0..n
                       <ZA>      0..1
                       <ZA>      0..1
                  <Trailer>        0..1
    This is the structure. We need to populate all this customer information into Product Activity Notification on SNC 1..1.
    Could you please give me your ideas and recommandations.
    Many thanks for your help & effort.
    Regards
    San

  • Immediate help needed with XML Parser

    I am currently running Oracle 8i and trying to use the XML utilities. Just to make sure things are working, I tried a very simple program. I followed the xslsample.sql code that was supplied by Oracle. Code is as follows:
    declare
    p xmlparser.parser;
    begin
    p := xmlparser.newparser;
    end;
    When the code executes, I get a PLS-00201: identifier 'XMLPARSER.PARSER' must be declared. Anyone have any ideas on what is going on and how to fix it? Any assistance would be greatly appreciated. You can email directly if you wish since I am really under a tight timeline to get these utilities to work correctly.

    Michael,
    Seems to be some problem with privileges. XMLPARSER is owned by SYS. You will need to grant execute access from SYS to the user under which you are trying to compile the procedure. It might be useful to create a public synonym and then grant access.
    Hope this helps.

  • Help needed with xml list

    hi,
    i need to make a list in which all the list items will come
    from xml file. these items will also be clickable so that they open
    a new respective hyperlink on click. i need something like
    www.sponky.com ' s portfolio list. can somebody please help me? i
    really need your help.
    thanks,
    gaurav

    I'm hoping I understand what you're doing... I would probably
    do it all in one frame and just toggle the .visible property of the
    subcategory list after the first one has been clicked, but there's
    no rules about how you do it.
    Without being sure, I think what you may have done is put a
    second "copy" of the category list on another keyframe, which
    replaces the previous instance. By taking away the second copy it
    should work. If that's not the case, then I'm stumped... otherwise
    read on.
    So if you have the category list in its own layer, just have
    it in frame one, on frame 2 of the same layer have a frame but
    not a keyframe. This will mean the instance in frame one is
    still the same one when the playhead gets to frame 2.
    And have the subCategory list on a separate layer, it appears
    on frame 2...
    BTW the .getSelectedItem() method of the list reminds me of
    flash mx... is that the version you're using (curiosity only I
    don't think its relevant, because its obviously working).

  • Help Needed with XML Attribute Access (Bold/Italics)

    Hi,
    I have a form that displays data in livecycle designer. When someone imports an xml file into the form in Adobe Acrobat it should be able to display some data as bolded and some italicized based on the xml file.
    Here is the sample xml file
    <Table1>
         <Row1>
              <Cell1 style="none">1</Cell1>
              <Cell2 style="bold">2</Cell2>
              <Cell3 style="italics">3</Cell3>
         </Row1>
    </Table1>
    And the output should be:
    1 2 3 
    Can someone please help! If the xml file should be designed differently please let me know.
    Thank you!

    Paul,
    Thanks for the help! I tried it out and it worked. One last question please. According to your explanation I added to the xml file the tags
    <body xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/" xmlns="http://www.w3.org/1999/xhtml" xfa:APIVersion="Acroform:2.7.0.0" xfa:spec="2.1">
    <p style="font-weight:bold;">2</p>
    </body>
    do I need to place this body tag around each number or can I place it in one location in the xml file?
    Thanks again.

  • Help needed with weblogic portal and documentum.

    hi guys,
    i have a project in which i have to use documentum with site caching services with weblogic portal 8.1. the html and xml pages will be stored in documentum and the metadata in oracle 8i and xslt will be used for transformation.
    Does anybody have any clue what api or things to use for this thing.
    any help , tutorial, links pointing to the solution will be helpful
    thanks in advance
    rajat

    Ok, so it looks like I only need to call a startapplicaiton after the distribute to make this work.

  • Help Needed Importing XML into a Database

    Hi:
    I'm new to Appleworks databases. I would like to create a database by importing records from a large XML file containing thousands of records. Is there a user's guide (or something else) I could read to help me do this? I have the schema for the XML file.
    Thanks,
    -AstraPoint

    I'm new to Appleworks databases. I would like to
    create a database by importing records from a large
    XML file containing thousands of records. Is there a
    user's guide (or something else) I could read to help
    me do this? I have the schema for the XML file.
    AppleWorks is a flat-file database and not a relational database. It will import ASCII text files ie tab-delimited data (TSV file format).
    You need to write an XSL template to convert your XML data into a TSV or CSV. I'd be surprised if there already wasn't the basics of a XSL template that could do this on Google.

Maybe you are looking for

  • Error Installing 10g on Windows XP

    hello all.. Iam installing ORacle10g on WinXP. After selecting the Installation type as " Personal Edition" option, i get an error message " Thrown when the ip address of the host cannnot be determined" and it gives me 4 options.. Retry, cancel, help

  • Possibility to schow all Rogue APs in the WCS Map

    Hi All, one Customer uses WCS 4.0.81.0 /w Location for Management. It seems to be not possible to show ALL detected Rogue APs on a Map, only one selected AP from the List. Is there a possibility to show all Rogue APs at on Map? Regards, Michael

  • Essbase rule files

    Hi How does ODI works when I use rule file to load data into Essbase. Does it still uses the KM or it uses rule file to load data.. I know there is a bug in Essbase KM for data load.. whats the difference in having the load rule in the interface to n

  • No audio through hdmi

    Hi everybody, I have a (little) problem with my new MacBook Air 2014 (13 inch.) running on 10.9.4 : when I connect it to any HDMI device (Philips monitor or Sony TV through Marantz amplifier) through a mini DP-HDMI adapter, I can't set audio output t

  • Scanning in OS X Snow Leopard?

    Hi all, So I've had my MacBook Pro since Fall of 2009, and it came with OS X Snow Leopard. I've had the printer since soon after, and I've never been able to get the scanner to function properly. I always had a spare computer in the house to swap out