Data Binding using XML as data connection

I'm using an XML as my data connection. It has several order fields in various sections that have unique field identifiers. I have created a random order # script that runs fine inside of the form that occurs on the first order number field but I need that same number to populate into each of the additional order fields, again that have unique identifiers. Is there a way to combine data fields?
Thanks!

usually you can make the binding global and all same named fields will end up with the same value. You may not be able to do that if you have bound your field to a data node in your XML. If that is the case then you will have to do it programatically. Lets assume you have Order_Number on Page 1 and Order_Number2 on Page 2. You would code on the calculate event of the 1st Order_Number field (the one where the number is calculated) - form1.Page2.Order_Number2.rawValue = form1.Page1.Order_Number.rawValue;
You can add multiple statements to equate that value to other instances of the field as you see fit. Now when any one of those values changes all of the others will be updated auto-magically!

Similar Messages

  • Use XML as data input for Crystal Report for Eclipse

    Hi,
    I am completely new to crystal report and please kindly forgive me if I ask some stupid questions.
    Actually, I have searched the forum for the topic and found some related threads, but I still want to
    have some responses from crystal report experts on this issue.
    Our developer tool is IBM RAD 7.0 and it has crystal reports tools installed in it. I want to use
    crystal report to solve one of our business solutions. I have the following questions about the
    feasbility of this solution:
    (1). I need to specify data at runtime during report generation. I think using fixed data source
         (for example, SQL query or Stored Procedure) may not fit our needs. I think if crystal report
         can accept XML as input to generate reports at runtime, then it will be perfect. Can CR
         use XML as data source as input?
    (2). Actually, one of our business requirements is to generate a letter. Can CR do a report
          layout such that a letter format can be achieved? If yes, would you let me know the
          report layout name?
    (3). We need to export the report into PDF format, I know CR can do PDF output. But can
          CR be controlled to export this into bytes stream? Or the PDF must be saved into a
          physical file?
    (4) If I need to learn more about CR, which book will you recommend?
    Thanks in advance for your advice,
    Raymond

    Thanks for the help Ted
    Works like a charm now.
    Or atleast my very very simple XML report works.
    Now I just need to play around and see what I can do and what I cant.
    I just want to make sure I understand how this works.
    1) I start of with a XML file (or URL or other data source as explained in your BLOG)
    2) I then have to create blank report which will have its data source set to my XML file.
        This report (rpt file) will always have its data source set to the original XML location
    Can this be dynamically changed, or does a new rpt file need to be created each time
        (or atleast I will have to re-run "CreateXMLInlineSchemaReport" from your BLOG)
    3) I can now use this rpt file as I would any other rpt file but its data source will be the original XML file
       - If I update or change the XML file, the report will dynamically reflect these changes.
    4) To change the data source, I need to recreate a new rpt file as per point 2. Which will now be blank.
    5) Filtering.... if I want to filter the XML data do I use normal parameters. If I want to filter the data before
        I pull it do I need to change anything. In otherwords if I have a XML file with 1000 records, but I only want say
    5 of them, how do I only pull those 5 without first pulling the whole 1000 records. Hope that makes sense.
    As I said I am very new to this so some things still fly over my head, but I do play around abit so hopefully
    will find what I am looking for.
    Cheers
    Darren
    PS any other links to info on creating and running reports of XML data sources would be greatly appriciated

  • Why my Data was used when I was connected to my home internet.

    I used the rest of my monthly data while I was connected to my houses internet connection. It does not reset until the 22. Why was my data being used while I was connected to MY OWN INTERNET!

    Hello, my phone is a Motorola Droid Maxx Red 16gb, my plan is $60 a month
    with unlimited talk/text 1 GB data. I found that I used my plan data when I
    got an alert for hitting my limit that I set for my self at 900 mb. I keep
    100 mb in emergency reserve. Yesterday at my house I was viewing YouTube
    for a bit and then I was alerted I was out of usable data. I rarely use
    YouTube outside of my house because it eats my data. I had used less than
    400 mb of my data before yesterday and YouTube alone used around 540 mb. I
    know I was connected to my home internet because my phone notifies when I
    am connected or disconnected from my home connection. That's all the info
    on the situation that has become of me. Hope this helps P.Baker
    On Jan 8, 2015 8:33 AM, "Verizon Wireless Customer Support" <

  • Can we restrict a master data characterstic using another master data chara

    Hi All,
    Can we restrict a master data characterstic using another master data characterstic, if they were both compounded together. There are two fields viz.., A,B  in r/3 master data table in which A and B combinely serve as a key. In BW side i have created a master data object for A and compuded object B ot it. So that i am getting all the data from r/3 table. But in query designer when i am trying to restrict object A values by object B, in a structure i am not getting any data. If i do same out of structure i am getting data in report. Please help in overcoming this problem.
    Regards,
    Rajkandula

    Hi,
    Yes it should display data, but it is not displaying. If i am doing the same restriction out side of a structure i am getting data. But whilr trying to do so, i am not getting that. The reason why i am bothering about structure is 'Objext B have 10 different values and i want 10 coloumns in report in whicg Obj A must display respective data when i restrict it by B' , whicg i can do this only if i use structure else i can't restrict B that many times .
    I hope u got my problem and plz give help me in this.
    Regards,
    Rajkandula

  • Binding data when using xml data files

    Hello,
    I am pretty new to Flex4 and hope you hang on with my question. MAny thanks:
    I built an application first with PHP connection into a database which essentially listed IP of my company in a grid.
    One could filter the IP depending of technology, type of Ip and so on.
    When clicking in the grid, the details with many more fileds would apprear. This was working niceley as I had my services defined and needed only to drag services in the right place and add here and there some changes in the code
    Now, I wanted to do the same with an xml file instead of a mySQL database so to deploy it a little easier.
    I have the grid and the filtering working nicely.
    But I cannot create the data binding for the details.
    Below is the code. See the line before last where I tested if I could access to the  descriptipn fuield in my arrayCollection (coming from my xml)
    CAn anyone help me, please
    many thanks in advance and best regards
    Peter
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
       xmlns:s="library://ns.adobe.com/flex/spark"
       xmlns:mx="library://ns.adobe.com/flex/mx"
       applicationComplete="myServ.send()" width="900" height="500">
    <fx:Script>
    <![CDATA[
    import mx.collections.ArrayCollection;
    import mx.controls.Alert;
    import mx.events.ListEvent;
    import mx.rpc.events.FaultEvent;
    import mx.rpc.events.ResultEvent;
    import spark.events.TextOperationEvent;
    [Bindable]
    private var myIPList:ArrayCollection;
    protected function myServ_faultHandler(event:FaultEvent):void
    Alert.show("Something went wrong", "Cannot load data");
    protected function myServ_resultHandler(event:ResultEvent):void
    if(event.result.test.IP is ArrayCollection){
    this.myIPList = event.result.test.IP as ArrayCollection;
    }else{
    var buffer:ArrayCollection = new ArrayCollection([event.result.test.IP]);
    this.myIPList = buffer;
    this.searchInput.enabled = false;
    this.searchInputTechnology.enabled = false;
    this.searchInputProvider.enabled = false;
    // serach for IP
    protected function searchInput_changeHandler(event:TextOperationEvent):void
    this.myIPList.filterFunction = filterFunc;
    this.myIPList.refresh();
    private function filterFunc(item:Object):Boolean
    if(String(item.IP).toLowerCase().indexOf(this.searchInput.text.toLowerCase()) > -1){
    return true;
    }else{
    return false;
    //  Search for Technology
    protected function searchInputTechnology_changeHandler(event:TextOperationEvent):void
    this.myIPList.filterFunction = filterFuncTechnology;
    this.myIPList.refresh();
    private function filterFuncTechnology(item:Object):Boolean
    if(String(item.Technology).toLowerCase().indexOf(this.searchInputTechnology.text.toLowerCa se()) > -1){
    return true;
    }else{
    return false;
    //  Search for Provider
    protected function searchInputProvider_changeHandler(event:TextOperationEvent):void
    this.myIPList.filterFunction = filterFuncProvider;
    this.myIPList.refresh();
    private function filterFuncProvider(item:Object):Boolean
    if(String(item.Provider).toLowerCase().indexOf(this.searchInputProvider.text.toLowerCase() ) > -1){
    return true;
    }else{
    return false;
    protected function myDG_changeHandler(event:ListEvent):void
    Alert.show("I Clicked. It should now be possible to see details, damned");
    ]]>
    </fx:Script>
    <fx:Declarations>
    <s:HTTPService id="myServ" url="IP.xml" fault="myServ_faultHandler(event)" result="myServ_resultHandler(event)"/>
    </fx:Declarations>
    <mx:DataGrid id="myDG" change="myDG_changeHandler(event)" x="37" y="134" width="814" height="159" dataProvider="{this.myIPList}">
    <mx:columns>
    <mx:DataGridColumn headerText="IP" dataField="IP"/>
    <mx:DataGridColumn headerText="short description" dataField="detail"/>
    <mx:DataGridColumn headerText="type" dataField="type"/>
    <mx:DataGridColumn headerText="Provider" dataField="Provider"/>
    <mx:DataGridColumn headerText="Technology" dataField="Technology"/>
    </mx:columns>
    </mx:DataGrid>
    <s:HGroup x="33" y="74" width="152" height="41" verticalAlign="middle">
    <mx:Spacer width="100%">
    </mx:Spacer>
    <s:Label text="IP"/>
    <s:TextInput id="searchInput" change="searchInput_changeHandler(event)" width="103"/>
    </s:HGroup>
    <s:HGroup x="686" y="74" width="153" height="41" verticalAlign="middle">
    <mx:Spacer width="100%">
    </mx:Spacer>
    <s:Label text="Technology"/>
    <s:TextInput id="searchInputTechnology" change="searchInputTechnology_changeHandler(event)" width="94"/>
    </s:HGroup>
    <s:HGroup x="519" y="74" width="153" height="41" verticalAlign="middle">
    <mx:Spacer width="100%">
    </mx:Spacer>
    <s:Label text="Provider"/>
    <s:TextInput id="searchInputProvider" change="searchInputProvider_changeHandler(event)" width="94"/>
    </s:HGroup>
    <s:Label x="135" y="38" text="IP Road Map" fontSize="29" color="#524E4E"/>
    <s:TextArea id="myText" x="37" y="315" width="204" text="{this.myIPList}" height="164"/>
    <mx:Image x="33" y="18" width="74" height="57" id="STLogo" source="file:/Users/peterhirt/Pictures/stlogo.png"/>
    </s:Application>
    Here at tzhe end I append one record out of the xml files I used
    <?xml version="1.0" encoding="utf-8" ?>
    <test>
        <IP>
            <IP>USB2 PHY</IP>
            <detail>single port </detail>
            <type>USB</type>
            <Provider>TR&amp;D</Provider>
            <Technology>65lp</Technology>
            <maturity_status>MAT20</maturity_status>
            <status_date>Q4/09</status_date>
            <next_Maturity>MAT30</next_Maturity>
            <next_Date></next_Date>
            <HED>y</HED>
            <HED_criticality>2</HED_criticality>
            <HED_MAT20_request>Q4/09</HED_MAT20_request>
            <CCI></CCI>
            <CCI_criticality></CCI_criticality>
            <_CCI_MAT20_request></_CCI_MAT20_request>
            <APG></APG>
            <APG_criticality></APG_criticality>
            <APG_MAT20_request></APG_MAT20_request>
            <STE></STE>
            <STE_criticality></STE_criticality>
            <STE_MAT20_request></STE_MAT20_request>
            <IMS></IMS>
            <IMS_criticality></IMS_criticality>
            <IMS_MAT20_request></IMS_MAT20_request>
        </IP>

    Hi Kevin,
    the current XML export version is admittedly not suitable for handling HTML data, as it doesn´t put any data inside CDATA sections.
    How can I strip out this HTML using the XML export?
    I´m not aware of this functionality, but I´m sure it would have to be integrated into the respective "includes" files in order to become effective.
    However, you might consider using the manual "converting database queries to XML" approach explained on this page: http://labs.adobe.com/technologies/spry/samples/utils/query2xml.html -- this will give you notably more freedom to e.g. preprocess some data before it´s getting stuffed inside an XML node.
    I am pulling RSS feeds from news sites and storing the rss items in a database
    Would it be possible to rather sanitize the data before it´s getting stored in the database ?
    Cheers,
    Günter Schenk
    Adobe Community Expert, Dreamweaver

  • Connecting to ADO Data Services using XML Data

    Has anyone attempted to connect to a database using ADO Data Services? My understanding of ADO Data Services is that it allows querying of the database in a REST format. So if I publish a site, I can get to its data with a URL like this:
    http://mysite/myservice.svc/entity where entity is a defined entity like Product, or supplier. Going to this site returns data that I have included at the end of this post, with the Entry node repeating (I only included the first Entry node). I definitely cannot use Web Service as my connection method, because there is no WSDL, but I was thinking maybe I could use XML. However, I have read the help file and several forum posts and I can't seem to figure out how to make XML work.
    <?xml version="1.0" encoding="utf-8" standalone="yes" ?>
    - <feed xml:base="http://mysite/FpWebDataService.svc/" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns="http://www.w3.org/2005/Atom">
      <title type="text">InfrastructureTickets</title>
      <id>http://mysiteFpWebDataService.svc/InfrastructureTickets</id>
      <updated>2008-12-22T14:44:03Z</updated>
      <link rel="self" title="InfrastructureTickets" href="InfrastructureTickets" />
    - <entry>
      <id>http://mysite/FpWebDataService.svc/InfrastructureTickets(1)</id>
      <title type="text" />
      <updated>2008-12-22T14:44:03Z</updated>
    + <author>
      <name />
      </author>
      <link rel="edit" title="InfrastructureTickets" href="InfrastructureTickets(1)" />
      <category term="FootprintsModel.InfrastructureTickets" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme" />
    - <content type="application/xml">
    - <m:properties>
      <d:TicketID m:type="Edm.Int32">1</d:TicketID>
      <d:UserLastName>Phillips</d:UserLastName>
      <d:UserFirstName>Michael</d:UserFirstName>
      <d:TicketTitle>FAStT 700 updates</d:TicketTitle>
      <d:TicketAssigned xml:space="preserve">miphillips</d:TicketAssigned>
      <d:DateSubmitted>Jul 18 2005 9:55AM</d:DateSubmitted>
      <d:ChangeRequestType>BIOS__fFirmware__bUpdate</d:ChangeRequestType>
      <d:ChangeImpact>Major</d:ChangeImpact>
      <d:ChangeRisk m:null="true" />
      <d:OutageRootCause m:null="true" />
      <d:SolutionType m:null="true" />
      <d:TicketType m:null="true" />
      <d:ChangeReason>Maintenance</d:ChangeReason>
      <d:OutageScope m:null="true" />
      <d:OutageManagerDescription m:null="true" />
      <d:ProblemCategory m:null="true" />
      <d:SubmissionType m:null="true" />
      <d:TicketPriority m:type="Edm.Int32">3</d:TicketPriority>
      <d:TicketStatus>_DELETED_</d:TicketStatus>
      <d:UserID>MiPhillips</d:UserID>
      <d:SubmitDate m:type="Edm.DateTime">2005-07-18T09:55:51</d:SubmitDate>
      <d:UpdateDate m:type="Edm.DateTime">2005-07-19T09:26:41</d:UpdateDate>
      <d:TicketAge m:type="Edm.Int32">1253</d:TicketAge>
      <d:TicketUpdateAge m:type="Edm.Int32">1252</d:TicketUpdateAge>
      <d:DescriptionCount m:type="Edm.Int32">2</d:DescriptionCount>
      </m:properties>
      </content>
      </entry>

    Hi lilutchay,
    If the SQL Server Integration Services is Enterprise or Developer edition of SQL Server 2008, we can use
    Microsoft Connector Version 1.2 for Oracle to connect Oracle databases with version Oracle 9.2.0.4 or higher, Oracle 10.x or Oracle 11.x. If the SQL Server Integration Services is Enterprise or Developer edition of SQL Server 2012, we can use
    Microsoft Connector Version 2.0 for Oracle to connect Oracle databases with version Oracle 9.2.0.4 or higher, Oracle 10.x or Oracle 11.x.
    While if we want to connect to other Oracle version databases, we can use
    OLE DB provider for Oracle which has been tested in SSIS labs and is recommended by Microsoft.
    For the detail steps for Microsoft Connector for Oracle, we can refer to the first blog suggested by Deric. For more details about the use of connecting to oracle using Oracle Provider for OLEDB from SSIS, please refer to the blog below:
    http://www.databasefun.com/archives/591
    Reference:
    SSIS with Oracle Connectors
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Serialising data objects using XML

    Does the support for XML in wl6.0 mean that java data objects can be serialized using xml entirely within weblogic (currently we use a 3rd party product, and are hoping to remove this if possible)?

    What about SOAP?
    Isn't that what SOAP does - marshals and unmarshals between objects and XML
    You can use SOAP from Java, or C++ or whatever.
    Contrary to a commonly held perception, SOAP doesn't require remote
    transmission of the serialized XML datastream.
    Where is the SOAP support for WLS6 ? I heard it was separately
    downloadable?
    "Alex Thomas" <[email protected]> wrote in message
    news:3a532681$[email protected]..
    >
    With some limitations, yes, if you are starting from a DTD - see the docsfor the WebLogic DTD2Parser tool which generates a high-speed custom parser
    for a given DTD.
    >
    This tool anticipates the JAXB standard (aka Data Binding, formerlyProject Adelard) - see http://java.sun.com/xml/ - which is due fairly
    shortly AFAIK.
    >
    If you were wanting to start with arbitrary Java classes and serializethem to XML you'd have to wait longer unfortunately, though there are some
    implementations around, e.g. http://www.wutka.com/jox.html. This would then
    correspond to marshalling if the objects were parameters to an RPC of some
    kind.
    >
    cheers
    (another) alex
    "alex" <[email protected]> wrote:
    What I should have said is: can wl6 automatically populate java objects
    from xml and vice versa? I believe this is called 'data marshalling and
    unmarshalling', but I cannot find references to this in the doco.
    >>
    >

  • Data Binding using DataSet and ComboBox

    Hi guys, hope someone can help me with this. Seems it should
    be simple, but it's not, that's why I'm here. I have data loading
    into a DataSet component. I have a ComboBox on the stage with
    predefined values and lables, so it's not dynamic at all. After
    loads into the DataSet I have the value Bound to the the Combobox,
    but nothing is being selected. I know the ComboBox is a little bit
    trickier, unlike the Textfield or TextInput wich work right away.
    Again, hope someone can help.

    Hi,
    I think the data binding concept you asked for Dropdown listboxes and RadioButtonGroups .If My Guess Correct follow the links provided here you may get useful information,
    [http://help.sap.com/SAPHELP_NW70EHP1/helpdata/EN/bb/69b441b0133531e10000000a155106/content.htm]
    for Example refer this link,
    [http://help.sap.com/saphelp_nw04/helpdata/en/74/450e8af57065468e88e4b86de47e4b/frameset.htm]
    Hope This information Useful for you.
    Regards,
    Raghava Channooru.

  • DATA exchange using XML using ABAP

    Client is having requirement of sharing data with Third party using XML files and this needs to be done using ABAP and changes in XML structure are highly likely in the future and structure is very complex around 100 fields corresponding to an account , three ways are there as far i am aware of :-IXML library,Simple transformation and  XSLT ,
    confusion is which way to follow as Performance constraints are also there and Simple transformation had failed in the past with large amount of data,
    I would like to know what is Industry wide accepted way of doing this in SAP  ( XI is out of scope here )  using ABAP and which one will be the best regarding quality of design and performance

    Hi,
    what about the Client Data Bag? http://help.sap.com/saphelp_nw70ehp1/helpdata/en/68/322a9261c54e51b7965f86aac3dae2/content.htm
    Stores data on the client (browser) side and as long as the user is using CTRL+L to open the new window, the information is preserved.
    br,
    Tobias

  • OLAP cubes from heterogeneous data sources using XML DB

    hi.
    Q:1
    How we can create an OLAP cube (XML cubes) from XML data sources if using XML DB.
    Q:2
    How we can create an OLAP cubes from warehouses and flat files and covert these cubes into XML cubes.
    Q:3
    Is there any other tool (Except Analytical workspace manager AWM) which supports the construction of OLAP cubes in XML format from heterogeneous data sources?
    Edited by: user11236392 on Aug 21, 2009 3:50 AM

    Hi Stuart!
    Your undersatnding is partially correct. i am working for providing an architecture for XOLAP, XML is one of my data source.
    The idea is to generate uniform cubes from heterogeneous sources that can be integrated into a global cube. instead of building Oracle OLAP cubes from all the sources (this work is already done) i want to generate an XCube from XML data sources using XQuery.
    On the other hand if we have generated the Oracle OLAP cube from other sources like warehouses or flat files. i have to convert these Oracle OLAP cube into XML cube for uniformity. in an research paper i find that there is an operator Xcube embedded in XQuery which converts the multidimensional data (cube) into XML cube. im looking for the implementation of this operator in Query that how this operator works.
    hope u understand my architecture. but if u still have some confusion, kindly give me ur mail id. i will mail the diagram of my architecture.
    thanks.
    saqib

  • Help: Data binding using uix:choice

    I have a uix jsp page with the following code snippets (trying to make a simple drop down list):
    <jbo:DataSource id="ds2" appid="PubModuleDef" viewobject="PubModule.FOAOIDGroupsVO" />
    and further down:
    <uix:choice>
    <uix:contents>
    <jbo:RowsetIterate datasource="ds2">
    <uix:option text="<%= ds2.getRowSet().getCurrentRow().getAttribute(\"Name\") %>" />
    </jbo:RowsetIterate>
    </uix:contents>
    </uix:choice>
    I am looking for a more elegant way to do this. Particularly I would like to eliminate the <%= ... %> code but I simply have not been able to figure out how to use Data Binding...
    Any advice?
    Claus

    Hi Matthias,
    I hope this is what you are looking for:
    http://help.sap.com/saphelp_erp2004/helpdata/en/fb/fbb84c20df274aa52a0b0833769057/frameset.htm
    Regards,
    Rainer

  • Data Binding: Use name

    As per Adobe Help::
    Use name
    Enables data merging and saving options. Data values are merged and stored implicitly according to Adobe data-merging rules.
    Can anybody Explain with Example?

    Hi,
    We now use a webservice to submit the xml of the form (and any attachments).  At one point we did submit the PDF byte stream to the webservice but now we just render it again with the XML form data.
    This has the added advantage of allowing us to do some server side checks, things like is the application round still open, does the user have the correct roles, etc.
    It also allows us to return a reference number to the form, so the user gets confirmation that the form was received.
    Regards
    Bruce

  • Dynamically change data model using xml

    Hi there,
    I need to exclude certain type of invoices from several reports. I also need to recalculate invoice amount if invoice is of a particular type.
    Is there a way to do it using xml report definition instead of directly modifing report?
    If you can point me to some examples, it will be greatly appreciated.
    Thanks!

    Hi there,
    I need to exclude certain type of invoices from several reports. I also need to recalculate invoice amount if invoice is of a particular type.
    Is there a way to do it using xml report definition instead of directly modifing report?
    If you can point me to some examples, it will be greatly appreciated.
    Thanks!

  • Problems using XML URL data service on Jdev

    Not sure if this is the right forum for this but couldn't find specific forum on XML.
    I"m using Jdev Studio Edition Version 11.1.1.4.0 (Win 2008 Server). I'm followng the tutorial (http://www.oracle.com/technetwork/developer-tools/jdev/ccset10-all-091120.html) which treaches how to create a URL service to read RSS feeds.
    My real question is about any guidance in creating proper XML schemas. I've read the documentation from wr.org but I"m still not sure about any key rules to follow for creating XML schemas and if XML schemas are a muust for using XML DB to read content from the internet.
    Following the instructions I created the following XML schema:
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns="http://www.example.org"
    targetNamespace="http://www.example.org"
    elementFormDefault="qualified">
    <xsd:element name="rss">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="channel" type="channel"></xsd:element>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    <xsd:complexType name="channel">
    <xsd:sequence>
    <xsd:element name="lastBuildDate" type="xsd:string"></xsd:element>
    <xsd:element name="title" type="xsd:string"></xsd:element>
    <xsd:element name="link" type="xsd:string"></xsd:element>
    <xsd:element name="description" type="xsd:string"></xsd:element>
    <xsd:element name="managingEditor" type="xsd:string"></xsd:element>
    <xsd:element name="language" type="xsd:string"></xsd:element>
    <xsd:element name="item" type="item" minOccurs="0" maxOccurs="100"></xsd:element>
    </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="item">
    <xsd:sequence>
    <xsd:element name="title" type="xsd:string"></xsd:element>
    <xsd:element name="link" type="xsd:string"></xsd:element>
    <xsd:element name="description" type="xsd:string"></xsd:element>
    <xsd:element name="pubDate" type="xsd:string"></xsd:element>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:schema>
    When trying to run the page I get the following trace:
    Target URL -- http://127.0.0.1:7101/Application1-Project1-context-root/faces/newsPage.jspx
    Tag: Definition
    <XMLHandler> <parseDataStream> Failed to create the DOM tree for the source. Resaon: Expected '>'.
    <XMLHandler> <parseDataStream> Failed to create the DOM tree for the source. Resaon: Expected '>'.
    <XMLHandler> <parseDataStream> Failed to create the DOM tree for the source. Resaon: Expected '>'.
    <XMLHandler> <parseDataStream> Failed to create the DOM tree for the source. Resaon: Expected '>'.
    <XMLHandler> <parseDataStream> Failed to create the DOM tree for the source. Resaon: Expected '>'.
    <XMLHandler> <parseDataStream> Failed to create the DOM tree for the source. Resaon: Expected '>'.
    <XMLHandler> <parseDataStream> Failed to create the DOM tree for the source. Resaon: Expected '>'.
    <XMLHandler> <parseDataStream> Failed to create the DOM tree for the source. Resaon: Expected '>'.
    Any idea what I am doing wrong? Thanks, J

    Hi Jay,
    Most of XML parsers mainly support UTF-8 encoding by default. So if the source is Windows 1252 encoded, the parser might fail.
    There are two potential solutions (including but not limited to):
    1) Use encoding tools/functions to translate the source with UTF-8 encoded.
    2) Change ADF configurations to see if ADF can deal with Windows 1252 encoded source. Also people in ADF forum may have suggestions from their point of view.
    Best regards,
    Rucong Zhao
    Oracle Berkeley DB XML

  • Creating a Date object using an existing date object of different format

    I am stuck in a problem while converting the date formats:
    I have a date object in the format "yyyy-MM-dd" (e.g., 2009-08-21). And i want to create a date object in the format "MM/dd/yyyy" (e.g., 08/21/2009)
        String s = oldDate.toString(); SimpleDateFormat formatter = new SimpleDateFormat("MM/dd/yyyy"); Date newDate = formatter.parse(s);
    the above code gives parse Exception:
        java.text.ParseException: Unparseable date: "2009-08-21"
    Any Clues ?
    Edited by: Rahul.Mittal on Aug 21, 2009 10:09 AM
    Edited by: Rahul.Mittal on Aug 21, 2009 10:12 AM

    my apologies for putting it into a wrong forum. Anyways thanks for the pointer.
    But i still feel that if i somehow get the desired Date object i can get through the problem. Something like this:
         public Date getdOJ() {
              Date oldDate = this.dOJ;
              SimpleDateFormat oldFormatter = new SimpleDateFormat("yyyy-mm-dd");
              Date newDate;
              try {
                               String s = oldDate.toString();
                               SimpleDateFormat formatter = new SimpleDateFormat("MM/dd/yyyy");
                               Date newDate = formatter.parse(s);
              } catch (ParseException e) {
                   e.printStackTrace();
              return newDate;
         }Unfortunately i am getting java.text.ParseException

Maybe you are looking for