Castor XML  issue

Hi,
i m using castor-1.0.3 for generating source code from xml schema.
i ve a complex schema n even have binding file too for class name conflicts.
The issue i m facing is when i run "
java org.exolab.castor.builder.SourceGenerator....." it gets hung after generating certain class files. it ll never proceed. i need to explicitly terminate after waiting for a long time..
I m stuck here as to what might be going wrong here..
Kindly suggest.
Regards,
Lance

FYI:
I tried Castor. In my opinion, there's a much better solution BC4J. BC4J lets you read and write your objects to XML, using readXML and writeXML. It seems more mature than Castor.
If you are just reading and writing your object or collection of objects and hierarchy to file, then you only use readXML and writeXML.
With BC4J, you model you objects in BC4J, then BC4J allows you to create a DTD for these objects. So if you have inbound or outbound XML that you need to transform from/to, you can then use this DTD and the DTD/XML Schema of the other format to write a xslt transformation.
Another benefit, you can pass object hierarchies across a web service using writeXML on the client side and then readXML to repopulate the object hierarchy on the server side of the web service.
Richard Catlin

Similar Messages

  • Problem with castor xml mapping

    Hi,
    we have following problem with castor xml mapping.
    How to use references in the collections(Hashmap or vector)?
    WE have a method called getAttribute map which will return a hashmap consist different type of objects. We want to keep only the
    references of objects if that object occurs more than once,instead of keeping the whole object
    Following is the the xml mapping file.
    <mapping>
    <class name="com.opvista.ndtool.core.mos.ManagedObject" identity="Id" auto-complete="false" verify-constructable="false">
    <map-to xml="ManagedObject"/>
    <field name="Id" get-method="getId" set-method="setId" type="string">
    <bind-xml name="Id" node="attribute"/>
    </field>
    <field name="AttributeMap" type="org.exolab.castor.mapping.MapItem" collection="map" get-method="getAttributeMap">
    <bind-xml name="AttributeMap" node="element">
         <class name="org.exolab.castor.mapping.MapItem">
    <field name="key" type="java.lang.Object">
         <bind-xml name="key" node="attribute"/>
    </field>
    <field name="value" type="java.lang.Object">
         <bind-xml name="value" node="element" reference="true"/>
         </field>
    </class>
         </bind-xml>
    </field>
    </class>
    </mapping>
    we are using reference=true for the values. But it will throw below exception.
    Unable to resolve ID for instance of class 'java.lang.String' due to the following error: Unable to resolve ClassDescriptor.
         at org.exolab.castor.xml.Marshaller.getObjectID(Marshaller.java:1988)
         at org.exolab.castor.xml.Marshaller.marshal(Marshaller.java:1628)
         at org.exolab.castor.xml.Marshaller.marshal(Marshaller.java:1831)
         at org.exolab.castor.xml.Marshaller.marshal(Marshaller.java:1814)
         at org.exolab.castor.xml.Marshaller.marshal(Marshaller.java:1825)
         at org.exolab.castor.xml.Marshaller.marshal(Marshaller.java:821)
    Please help us to overcome from this problem?
    Thanks,
    Dileep

    for your ref here is what i think the basic mapping file would look like
    <class name="Person">
    <map-to xml="person"/>
    <field name="name" type="string">
    <bind-xml name="name" node="attribute" />
    </field>
    <field name="age" type="string">
    <bind-xml name="age" node="attribute" />
    </field>
    </class>
    <class name="MetaPerson">
    <map-to xml="person"/>
    <field name="dependents" type="string">
    <bind-xml name="dependents" node="attribute" />
    </field>
    <field name="presentAdd" type="string">
    <bind-xml name="present_add " node="attribute" />
    </field>
    <field name="permanentAdd" type="string">
    <bind-xml name="permanent_add " node="attribute" />
    </field>
    </class>
    however i am still not clear as to how i can use the metaperson object in the person class as well as in the mapping file.
    hope this gives a better idea abt my problem statement.
    Please help me out

  • Castor XML mapping

    I am using and XML and trying to map to a class. I do not want to fit all the fields in XML to fields in java class.
    For example: I have fields field1, field2, field3 in XML. But my java class wants only field1 and field2 and NOT field3. How do I do it. I want to ignore field3.
    Mapping map = new Mapping();
    map.loadMapping("mapping.xml");
    Reader reader = new FileReader("abc.xml");
    Unmarshaller unmarshaller = new Unmarshaller(map);
    ABCClass read = (ABCClass)unmarshaller.unmarshal(reader);
    System.out.println(read);
    Getting error: unable to find FieldDescriptor for field3' in ClassDescriptor of ABC-Class
    Above error looks very logical. I don't want to check java class for all the tags/fields in XML doc,
    I guess this is a general requirement in many cases and simple to solve.
    Thanks

    hi, I'm also having an error message stated like this
    unable to find FieldDescriptor for 'ope-act-code' in ClassDescriptor of tireoperation-bean{file: [not available]; line: 1; column: 6551}
         at org.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:707)
         at com.michelin.npc.shipment.bp.ImportWareFileManagementProcess.importWareFile(ImportWareFileManagementProcess.java:57)
         at com.michelin.npc.shipment.bp.ImportWareFileManagementProcess.getImpWareRefBean(ImportWareFileManagementProcess.java:104)
         at com.michelin.npc.shipment.bp.ImportWareFileManagementProcess.processImpWareRef(ImportWareFileManagementProcess.java:94)
         at com.michelin.npc.rcp.shipment.actions.ShipmentImportFileAction.executeAction(ShipmentImportFileAction.java:34)
         at com.michelin.xnet.rcp.actions.XnetAction.run(XnetAction.java:54)
         at com.michelin.xnet.rcp.actions.XnetAction.run(XnetAction.java:46)
         at com.michelin.npc.rcp.shipment.wizards.ShipmentImportFileWizard$1.run(ShipmentImportFileWizard.java:35)
         at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:369)
         at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:313)
         at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:851)
         at com.michelin.npc.rcp.shipment.wizards.ShipmentImportFileWizard.performFinish(ShipmentImportFileWizard.java:26)
         at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:680)
         at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:355)
         at org.eclipse.jface.dialogs.Dialog$3.widgetSelected(Dialog.java:660)
         at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:90)
         at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
         at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
         at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3348)
         at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2968)
         at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1914)
         at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
         at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:419)
         at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
         at com.michelin.xrcp.desktop.internal.Application.run(Application.java:40)
         at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
         at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
         at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
         at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
         at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
         at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
         at org.eclipse.core.launcher.Main.run(Main.java:977)
         at org.eclipse.core.launcher.Main.main(Main.java:952)
    Caused by: org.xml.sax.SAXException: unable to find FieldDescriptor for 'ope-act-code' in ClassDescriptor of tireoperation-bean
         at org.exolab.castor.xml.UnmarshalHandler.startElement(UnmarshalHandler.java:1933)
         at org.exolab.castor.xml.UnmarshalHandler.startElement(UnmarshalHandler.java:1375)
         at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
         at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
         at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
         at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
         at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
         at org.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:693)
         ... 37 more
    Caused by: org.xml.sax.SAXException: unable to find FieldDescriptor for 'ope-act-code' in ClassDescriptor of tireoperation-bean
         at org.exolab.castor.xml.UnmarshalHandler.startElement(UnmarshalHandler.java:1933)
         at org.exolab.castor.xml.UnmarshalHandler.startElement(UnmarshalHandler.java:1375)
         at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
         at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
         at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
         at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
         at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
         at org.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:693)
         at com.michelin.npc.shipment.bp.ImportWareFileManagementProcess.importWareFile(ImportWareFileManagementProcess.java:57)
         at com.michelin.npc.shipment.bp.ImportWareFileManagementProcess.getImpWareRefBean(ImportWareFileManagementProcess.java:104)
         at com.michelin.npc.shipment.bp.ImportWareFileManagementProcess.processImpWareRef(ImportWareFileManagementProcess.java:94)
         at com.michelin.npc.rcp.shipment.actions.ShipmentImportFileAction.executeAction(ShipmentImportFileAction.java:34)
         at com.michelin.xnet.rcp.actions.XnetAction.run(XnetAction.java:54)
         at com.michelin.xnet.rcp.actions.XnetAction.run(XnetAction.java:46)
         at com.michelin.npc.rcp.shipment.wizards.ShipmentImportFileWizard$1.run(ShipmentImportFileWizard.java:35)
         at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:369)
         at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:313)
         at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:851)
         at com.michelin.npc.rcp.shipment.wizards.ShipmentImportFileWizard.performFinish(ShipmentImportFileWizard.java:26)
         at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:680)
         at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:355)
         at org.eclipse.jface.dialogs.Dialog$3.widgetSelected(Dialog.java:660)
         at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:90)
         at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
         at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
         at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3348)
         at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2968)
         at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1914)
         at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
         at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:419)
         at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
         at com.michelin.xrcp.desktop.internal.Application.run(Application.java:40)
         at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
         at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
         at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
         at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
         at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
         at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
         at org.eclipse.core.launcher.Main.run(Main.java:977)
         at org.eclipse.core.launcher.Main.main(Main.java:952)
    and my mapping xml is like this.
    <?xml version="1.0"?>
    <!DOCTYPE mapping PUBLIC "-//EXOLAB/Castor Object Mapping DTD Version 1.0//EN" "http://castor.exolab.org/mapping.dtd">
    <mapping>
         <!-- MAIN start -->
    <class name="com.michelin.npc.shipment.bo.ImpWareFileBean">
         <map-to xml="EXPORT_WAREHOUSE"/>      
         <field name="impWareReferential"
    type="com.michelin.npc.shipment.bo.ImpWareFileReferentialBean">
    <bind-xml name="REFERENTIAL"/>
    </field>
    <field name="impWareShipment"
    type="com.michelin.npc.shipment.bo.ImpWareFileShipmentBean">
    <bind-xml name="SHIPMENT"/>
    </field>
    </class>
    <!-- MAIN end -->
    <!-- REFERENTIAL begin -->
    <class name="com.michelin.npc.shipment.bo.ImpWareFileReferentialBean">
         <field name="tireStates"
    type="com.michelin.npc.tirestate.bo.TirestateBean"
    collection="collection">
    <bind-xml name="TB_REF_TIRESTATE"/>
    </field>
         <field name="tireFittings"
    type="com.michelin.npc.tirefitting.bo.TirefittingBean"
    collection="collection">
    <bind-xml name="TB_REF_TIREFITTING"/>
    </field>
         <field name="tireOperations"
    type="com.michelin.npc.tireoperation.bo.TireoperationBean"
    collection="collection">
    <bind-xml name="TB_REF_TIREOPERATION"/>
    </field>
         <field name="places"
    type="com.michelin.npc.place.bo.PlaceBean"
    collection="collection">
    <bind-xml name="TB_REF_PLACE"/>
    </field>
         <field name="dtoCategories"
    type="com.michelin.npc.dtocategory.bo.DtocategoryBean"
    collection="collection">
    <bind-xml name="TB_REF_DTOCATEGORY"/>
    </field>
         <field name="dtoFamilies"
    type="com.michelin.npc.dtofamily.bo.DtofamilyBean"
    collection="collection">
    <bind-xml name="TB_REF_DTOFAMILY"/>
    </field>
         <field name="groups"
    type="com.michelin.npc.group.bo.GroupBean"
    collection="collection">
    <bind-xml name="TB_REF_GROUP"/>
    </field>
         <field name="activities"
    type="com.michelin.npc.activity.bo.ActivityBean"
    collection="collection">
    <bind-xml name="TB_REF_ACTIVITY"/>
    </field>
         <field name="parameters"
    type="com.michelin.npc.parameter.bo.ParameterBean"
    collection="collection">
    <bind-xml name="TB_REF_PARAMETER"/>
    </field>
    </class>
         <class name="com.michelin.npc.tirestate.bo.TirestateBean">
              <field name="actCode" type="java.lang.String" >
                   <bind-xml name="STATE_ACT_CODE" node="attribute" />
              </field>
              <field name="stateCode" type="java.lang.String" >
                   <bind-xml name="STATE_CODE" node="attribute" />
              </field>
              <field name="stateName" type="java.lang.String" >
                   <bind-xml name="STATE_NAME" type="varchar" />
              </field>
              <field name="stateLlStock" type="java.lang.String" >
                   <bind-xml name="STATE_LL_STOCK" type="varchar" />
              </field>
              <field name="stateConsup" type="java.lang.String" >
                   <bind-xml name="STATE_CONSUP" type="varchar" />
              </field>
              <field name="stateStockShown" type="java.lang.String" >
                   <bind-xml name="STATE_STOCK_SHOWN" type="varchar" />
              </field>
         </class>
         <class name="com.michelin.npc.tirefitting.bo.TirefittingBean">
              <field name="actCode" type="java.lang.String" >
                   <bind-xml name="FIT_ACT_CODE" node="attribute" />
              </field>
              <field name="fitCode" type="java.lang.String" >
                   <bind-xml name="FIT_CODE" type="varchar" />
              </field>
              <field name="fitName" type="java.lang.String" >
                   <bind-xml name="FIT_NAME" type="varchar" />
              </field>
         </class>
         <class name="com.michelin.npc.tireoperation.bo.TireoperationBean">
              <field name="actCode" type="java.lang.String" >
                   <sql name="OPE_ACT_CODE" node="attribute" />
              </field>
              <field name="opeCode" type="java.lang.String" >
                   <sql name="OPE_CODE" type="varchar" />
              </field>
              <field name="opeName" type="java.lang.String" >
                   <sql name="OPE_NAME" type="varchar" />
              </field>
         </class>     
         <class name="com.michelin.npc.place.bo.PlaceBean">
              <field name="plCode" type="java.lang.String" >
                   <sql name="PL_CODE" node="attribute" />
              </field>
              <field name="plName" type="java.lang.String" >
                   <sql name="PL_NAME" type="varchar" />
              </field>
              <field name="plWareh" type="java.lang.String" >
                   <sql name="PL_WAREH" type="varchar" />
              </field>
              <field name="plInvoice" type="java.lang.String" >
                   <sql name="PL_INVOICE" type="varchar" />
              </field>
         </class>
         <class name="com.michelin.npc.dtocategory.bo.DtocategoryBean">
              <field name="actCode" type="java.lang.String" >
                   <sql name="CAT_ACT_CODE" node="attribute" />
              </field>
              <field name="catCode" type="java.lang.String" >
                   <sql name="CAT_CODE" type="varchar" />
              </field>
              <field name="catName" type="java.lang.String" >
                   <sql name="CAT_NAME" type="varchar" />
              </field>
         </class>
         <class name="com.michelin.npc.dtofamily.bo.DtofamilyBean">
              <field name="actCode" type="java.lang.String" >
                   <sql name="FAM_ACT_CODE" node="attribute"/>
              </field>
              <field name="famCode" type="java.lang.String" >
                   <sql name="FAM_CODE" type="varchar" />
              </field>
              <field name="famName" type="java.lang.String" >
                   <sql name="FAM_NAME" type="varchar" />
              </field>
         </class>
         <class name="com.michelin.npc.group.bo.GroupBean">
              <field name="actCode" type="java.lang.String" >
                   <sql name="GR_ACT_NUM" node="attribute" />
              </field>
              <field name="grNum" type="java.math.BigDecimal" >
                   <sql name="GR_NUM" type="decimal" />
              </field>
              <field name="grQtyMax" type="java.math.BigDecimal" >
                   <sql name="GR_QTY_MAX" type="decimal" />
              </field>
              <field name="grDtoMax" type="java.math.BigDecimal" >
                   <sql name="GR_DTO_MAX" type="decimal" />
              </field>
              <field name="grComment" type="java.lang.String" >
                   <sql name="GR_COMMENT" type="varchar" />
              </field>
         </class>
         <class name="com.michelin.npc.activity.bo.ActivityBean">
              <field name="actCode" type="java.lang.String" >
                   <sql name="ACT_CODE" node="attribute"/>
              </field>
              <field name="actName" type="java.lang.String" >
                   <sql name="ACT_NAME" type="varchar" />
              </field>
              <field name="actUnity" type="java.lang.String" >
                   <sql name="ACT_UNITY" type="varchar" />
              </field>
              <field name="actInvoicing" type="java.lang.String" >
                   <sql name="ACT_INVOICING" type="varchar" />
              </field>
              <field name="actWallpaper" type="java.lang.String" >
                   <sql name="ACT_WALLPAPER" type="varchar" />
              </field>
              <field name="actLogo" type="java.lang.String" >
                   <sql name="ACT_LOGO" type="varchar" />
              </field>
         </class>
         <class name="com.michelin.npc.parameter.bo.ParameterBean">
              <field name="actCode" type="java.lang.String" >
                   <sql name="PAR_ACT_CODE" node="attribute"/>
              </field>
              <field name="parCode" type="java.lang.String" >
                   <sql name="PAR_CODE" type="varchar" />
              </field>
              <field name="parValue" type="java.lang.String" >
                   <sql name="PAR_VALUE" type="varchar" />
              </field>
              <field name="parName" type="java.lang.String" >
                   <sql name="PAR_NAME" type="varchar" />
              </field>
         </class>
         <!-- REFERENTIAL end -->
    <!-- SHIPMENT begin -->     
    <class name="com.michelin.npc.shipment.bo.ImpWareFileShipmentBean">
         <field name="shipment"
    type="com.michelin.npc.shipment.bo.ShipmentBean">
    <bind-xml name="TB_TRN_SHIPMENT"/>
    </field>
         <field name="grMakes"
    type="com.michelin.npc.grmake.bo.GrMakeBean"
    collection="collection">
    <bind-xml name="TB_TRN_GR_MAKE"/>
    </field>
         <field name="packingList"
    type="com.michelin.npc.packinglist.bo.PackinglistBean"
    collection="collection">
    <bind-xml name="TB_TRN_PACKINGLIST"/>
    </field>
         <field name="tires"
    type="com.michelin.npc.tire.bo.TireBean"
    collection="collection">
    <bind-xml name="TB_TRN_TIRE"/>
    </field>
         <field name="dtos"
    type="com.michelin.npc.dto.bo.DtoBean"
    collection="collection">
    <bind-xml name="TB_TRN_DTO"/>
    </field>
         <field name="cqs"
    type="com.michelin.npc.cq.bo.CqBean"
    collection="collection">
    <bind-xml name="TB_TRN_CQ"/>
    </field>
         <field name="traceability"
    type="com.michelin.npc.traceability.bo.TraceabilityBean"
    collection="collection">
    <bind-xml name="TB_TRN_TRACEABILITY"/>
    </field>
    </class>
         <class name="com.michelin.npc.shipment.bo.ShipmentBean" >
              <field name="shipAutoNum" type="java.math.BigDecimal" >
                   <bind-xml name="SHIP_AUTO_NUM" node="attribute" />
              </field>
              <field name="actCode" type="java.lang.String" >
                   <bind-xml name="SHIP_ACT_CODE" type="varchar" />
              </field>
              <field name="plCodeShipper" type="java.lang.String" >
                   <bind-xml name="SHIP_PL_CODE_SHIPPER" type="varchar" />
              </field>
              <field name="plCodeDest" type="java.lang.String" >
                   <bind-xml name="SHIP_PL_CODE_DEST" type="varchar" />
              </field>
              <field name="shipEventDate" type="java.util.Date" >
                   <bind-xml name="SHIP_EVENT_DATE" type="timestamp" />
              </field>
              <field name="shipName" type="java.lang.String" >
                   <bind-xml name="SHIP_NAME" type="varchar" />
              </field>
         </class>
         <class name="com.michelin.npc.grmake.bo.GrMakeBean">
              <field name="grNum" type="java.math.BigDecimal" >
                   <sql name="GRM_GR_NUM" type="decimal" />
              </field>
              <field name="actCode" type="java.lang.String" >
                   <sql name="GRM_ACT_CODE" type="varchar" />
              </field>
              <field name="shipAutoNum" type="java.math.BigDecimal" >
                   <sql name="GRM_SHIP_NUM" type="decimal" />
              </field>
         </class>
         <class name="com.michelin.npc.packinglist.bo.PackinglistBean">
              <field name="shipAutoNum" type="java.math.BigDecimal" >
                   <sql name="PL_SHIP_NUM" type="decimal" />
              </field>
              <field name="plAutoNum" type="java.math.BigDecimal" >
                   <sql name="PL_AUTO_NUM" type="decimal" />
              </field>
              <field name="plName" type="java.lang.String" >
                   <sql name="PL_NAME" type="varchar" />
              </field>
              <field name="plDate" type="java.util.Date" >
                   <sql name="PL_DATE" type="timestamp" />
              </field>
              <field name="plCarrier" type="java.lang.String" >
                   <sql name="PL_CARRIER" type="varchar" />
              </field>
              <field name="plVehicle" type="java.lang.String" >
                   <sql name="PL_VEHICLE" type="varchar" />
              </field>
              <field name="plSent" type="java.lang.String" >
                   <sql name="PL_SENT" type="varchar" />
              </field>
         </class>
         <class name="com.michelin.npc.tire.bo.TireBean">
              <field name="actCode" type="java.lang.String" >
                   <sql name="TIRE_ACT_CODE" type="varchar" />
              </field>
              <field name="grNum" type="java.math.BigDecimal" >
                   <sql name="TIRE_GR_NUM" type="decimal" />
              </field>
              <field name="plCodeConsup" type="java.lang.String" >
                   <sql name="TIRE_PLA_CODE_CONSUP" type="varchar" />
              </field>
              <field name="plCode" type="java.lang.String" >
                   <sql name="TIRE_PL_CODE" type="varchar" />
              </field>
              <field name="fitCodeConsup" type="java.lang.String" >
                   <sql name="TIRE_FIT_CODE_CONSUP" type="varchar" />
              </field>
              <field name="fitCode" type="java.lang.String" >
                   <sql name="TIRE_FIT_CODE" type="varchar" />
              </field>
              <field name="opeCode" type="java.lang.String" >
                   <sql name="TIRE_OPE_CODE" type="varchar" />
              </field>
              <field name="stateCode" type="java.lang.String" >
                   <sql name="TIRE_STATE_CODE" type="varchar" />
              </field>
              <field name="boxNum" type="java.lang.String" >
                   <sql name="TIRE_BOX_CODE" type="varchar" />
              </field>
              <field name="dtoNumOrig" type="java.lang.String" >
                   <sql name="TIRE_DTO_NUM_ORIGIN" type="varchar" />
              </field>
              <field name="dtoNum" type="java.lang.String" >
                   <sql name="TIRE_DTO_NUM" type="varchar" />
              </field>
              <field name="llAutoNum" type="java.math.BigDecimal" >
                   <sql name="TIRE_LL_NUM" type="decimal" />
              </field>
              <field name="plAutoNum" type="java.math.BigDecimal" >
                   <sql name="TIRE_PL_NUM" type="decimal" />
              </field>
              <field name="shipAutoNum" type="java.math.BigDecimal" >
                   <sql name="TIRE_SHIP_NUM" type="decimal" />
              </field>
              <field name="tireCab" type="java.lang.String" >
                   <sql name="TIRE_CAB" type="varchar" />
              </field>
              <field name="tireMat" type="java.lang.String" >
                   <sql name="TIRE_MAT" type="varchar" />
              </field>
              <field name="tireFia" type="java.lang.String" >
                   <sql name="TIRE_FIA" type="varchar" />
              </field>
              <field name="tireSituation" type="java.lang.String" >
                   <sql name="TIRE_SITUATION" type="varchar" />
              </field>
              <field name="tireWeight" type="java.math.BigDecimal" >
                   <sql name="TIRE_WEIGHT" type="decimal" />
              </field>
              <field name="tireDateManu" type="java.util.Date" >
                   <sql name="TIRE_DATE_MANU" type="timestamp" />
              </field>
              <field name="tireLastUpdate" type="java.util.Date" >
                   <sql name="TIRE_LAST_UPDATE" type="timestamp" />
              </field>
              <field name="tireNbFitting" type="java.math.BigDecimal" >
                   <sql name="TIRE_NB_FITTING" type="decimal" />
              </field>
              <field name="tireDateConsup" type="java.util.Date" >
                   <sql name="TIRE_DATE_CONSUP" type="timestamp" />
              </field>
         </class>
         <class name="com.michelin.npc.dto.bo.DtoBean">
              <field name="caiCode" type="java.lang.String" >
                   <sql name="DTO_CAI_CODE" type="varchar" />
              </field>
              <field name="catCode" type="java.lang.String" >
                   <sql name="DTO_CAT_CODE" type="varchar" />
              </field>
              <field name="actCode" type="java.lang.String" >
                   <sql name="DTO_ACT_CODE" type="varchar" />
              </field>
              <field name="famCode" type="java.lang.String" >
                   <sql name="DTO_FAM_CODE" type="varchar" />
              </field>
              <field name="dtoNum" type="java.lang.String" >
                   <sql name="DTO_NUM" type="varchar" />
              </field>
              <field name="dtoDimension" type="java.lang.String" >
                   <sql name="DTO_DIMENSION" type="varchar" />
              </field>
              <field name="dtoFR" type="java.lang.String" >
                   <sql name="DTO_F_R" type="varchar" />
              </field>
              <field name="dtoLR" type="java.lang.String" >
                   <sql name="DTO_L_R" type="varchar" />
              </field>
              <field name="dtoCb" type="java.lang.String" >
                   <sql name="DTO_CB" type="varchar" />
              </field>
              <field name="dtoCbl" type="java.lang.String" >
                   <sql name="DTO_CBL" type="varchar" />
              </field>
              <field name="dtoLpc" type="java.lang.String" >
                   <sql name="DTO_LPC" type="varchar" />
              </field>
              <field name="dtoLimitedProd" type="java.lang.String" >
                   <sql name="DTO_LIMITED_PROD" type="varchar" />
              </field>
         </class>
         <class name="com.michelin.npc.cq.bo.CqBean">
              <field name="tireCab" type="java.lang.String" >
                   <sql name="CQ_CAB" type="varchar" />
              </field>
              <field name="cqCode" type="java.lang.String" >
                   <sql name="CQ_CODE" type="varchar" />
              </field>
              <field name="cqDate" type="java.util.Date" >
                   <sql name="CQ_DATE" type="timestamp" />
              </field>
              <field name="cqClassification" type="java.lang.String" >
                   <sql name="CQ_CLASSIFICATION" type="varchar" />
              </field>
              <field name="cqCote" type="java.lang.String" >
                   <sql name="CQ_COTE" type="varchar" />
              </field>
         </class>
         <class name="com.michelin.npc.traceability.bo.TraceabilityBean">
              <field name="tireCab" type="java.lang.String" >
                   <sql name="TRA_CAB" type="varchar" />
              </field>
              <field name="traDate" type="java.util.Date" >
                   <sql name="TRA_DATE" type="timestamp" />
              </field>
              <field name="traCode" type="java.lang.String" >
                   <sql name="TRA_CODE" type="varchar" />
              </field>
              <field name="traMat" type="java.lang.String" >
                   <sql name="TRA_MAT" type="varchar" />
              </field>
              <field name="traFia" type="java.lang.String" >
                   <sql name="TRA_FIA" type="varchar" />
              </field>
              <field name="traDtoNum" type="java.lang.String" >
                   <sql name="TRA_DTO_NUM" type="varchar" />
              </field>
              <field name="traPlCode" type="java.lang.String" >
                   <sql name="TRA_PL_CODE" type="varchar" />
              </field>
              <field name="traValue" type="java.lang.String" >
                   <sql name="TRA_VALUE" type="varchar" />
              </field>
              <field name="traGrNum" type="java.math.BigDecimal" >
                   <sql name="TRA_GR_NUM" type="decimal" />
              </field>
              <field name="traPlNum" type="java.math.BigDecimal" >
                   <sql name="TRA_PL_NUM" type="decimal" />
              </field>
              <field name="traLlNum" type="java.math.BigDecimal" >
                   <sql name="TRA_LL_NUM" type="decimal" />
              </field>
              <field name="traShipDate" type="java.util.Date" >
                   <sql name="TRA_SHIP_DATE" type="timestamp" />
              </field>
              <field name="traShipPlCodeDest" type="java.lang.String" >
                   <sql name="TRA_SHIP_PL_CODE_DEST" type="varchar" />
              </field>
              <field name="traUsrIdent" type="java.lang.String" >
                   <sql name="TRA_USR_IDENT" type="varchar" />
              </field>
              <field name="traActCode" type="java.lang.String" >
                   <sql name="TRA_ACT_CODE" type="varchar" />
              </field>
         </class>
    <!-- SHIPMENT end -->               
    </mapping>
    could anyone help me out here.

  • Castor xml data binding

    Hi,
    i try to use castor with jdev so i put castor-0.9.5.3.jar
    in my libraries.
    But when i try to use the unmarshaller i got this error :
    java.lang.NoClassDefFoundError: org.exolab.castor.util.LocalConfiguration
         at org.exolab.castor.xml.Unmarshaller.initConfig(Unmarshaller.java:265)
         at org.exolab.castor.xml.Unmarshaller.<init>(Unmarshaller.java:221)
         at org.exolab.castor.xml.Unmarshaller.<init>(Unmarshaller.java:208)
         at org.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:684)
         at ReadPerson.main(ReadPerson.java:8)
    here is my test code :
    import java.io.FileReader;
    import org.exolab.castor.xml.Unmarshaller;
    public class ReadPerson {
         public static void main(String args[]) {
              try {
                   Person person = (Person) Unmarshaller.unmarshal(Person.class,
                                                                               new FileReader("D:/Castor/person.xml"));
                   System.out.println("Person Attributes");
                   System.out.println("-----------------");
                   System.out.println("Name: " + person.getName() );
                   System.out.println("Address: " + person.getAddress() );
                   System.out.println("SSN: " + person.getSsn() );
                   System.out.println("Email: " + person.getEmail() );
                   System.out.println("Home Phone: " + person.getHomePhone() );
                   System.out.println("Work Phone: " + person.getWorkPhone() );
              } catch (Exception e) {
                   System.out.println( e );
    Thanks !

    FYI:
    I tried Castor. In my opinion, there's a much better solution BC4J. BC4J lets you read and write your objects to XML, using readXML and writeXML. It seems more mature than Castor.
    If you are just reading and writing your object or collection of objects and hierarchy to file, then you only use readXML and writeXML.
    With BC4J, you model you objects in BC4J, then BC4J allows you to create a DTD for these objects. So if you have inbound or outbound XML that you need to transform from/to, you can then use this DTD and the DTD/XML Schema of the other format to write a xslt transformation.
    Another benefit, you can pass object hierarchies across a web service using writeXML on the client side and then readXML to repopulate the object hierarchy on the server side of the web service.
    Richard Catlin

  • Invalid XML character in castor XML

    I am using castor API for converting an object into XML. When I marshal the object, following exception occur:
    java.io.IOException: The character '' is an invalid XML character
         at org.apache.xml.serialize.BaseMarkupSerializer.characters(Unknown Source)
         at org.exolab.castor.xml.Marshaller.marshal(Unknown Source)
         at org.exolab.castor.xml.Marshaller.marshal(Unknown Source)
         at org.exolab.castor.xml.Marshaller.marshal(Unknown Source)
    Following is the code snippet which I am using:
    StringWriter writer = new StringWriter(500);
    Marshaller marshal = new Marshaller(writer);
    marshal.setEncoding("windows-1251"); //I have tried all these encodings as well: UTF-8, UTF-7, ASCII, ISO-8859-1, ISO-8859-5, windows-1251
    //marshal.marshal(token, writer);     // This is commented, since the encoding is not applied if I use this method, next statement works fine
    marshal.marshal(token);Here, token is the object which I am trying to marshal. I have tried different encodings, but the problem is not resolved. Could anyone help?
    Castor reference:
    [http://www.castor.org/xml-framework.html ]

    Do you want this encoding to be reversible? For example, that character \u001b which is in the string. You have to represent it by something different in your XML. If you want to get the same thing back when you convert your XML back into Java, then you can't just translate that character into an existing character, because then you have lost information. You have to translate it into some special series of codes. And then when you convert the XML back, you have to recognize that special series of codes and convert that into the \u001b character.
    So yeah, you could write your own custom encoding which did that. I'm not aware of any existing software that does that; it wouldn't be very useful, because it would result in XML documents which used non-standard encodings and hence couldn't be sent to anybody else.

  • Org.exolab.castor.xml.MarshalException:Unable to instantiate java.util.List

    Hi,
    I am using castor to unmarshal an xml into a java object.
    This object has member variables as collections (List).
    Even though in the mapping file I used collections attribute of <field> tag and has set it to arraylist, it is still throwing this exception.
    After doing a bit of research on this,I found that since UnmarshalHandler uses reflection to create object from xml, it is trying to invoke java.util.List.newInstance() which is causing this problem.
    The class which I am trying to unmarshal is an already existing class and I cannot change the type of the member variables to ArrayList from List.
    How can it be resolved?

    The exception trace is as below :
    Caused by: java.lang.InstantiationException: java.util.List() method not
    found
    at
    org.exolab.castor.xml.UnmarshalHandler.createInstance(UnmarshalHandler.java:2584)
    at
    org.exolab.castor.xml.UnmarshalHandler.startElement(UnmarshalHandler.java:2348)
    at
    org.exolab.castor.xml.UnmarshalHandler.startElement(UnmarshalHandler.java:1436)
    at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown
    Source)
    at
    org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown
    Source)

  • SSRS-XML issue

    I have a field in the database table that contains an XML string. It is not formatted. In report we need to display it as formatted like XML
    xml, with highlight option, tree view with expand/collapse  option on each node. We are able to achieve the formatting with below script
    Public Function FormatXml(file_content As String)As String 
    Dim doc As New System.Xml.XmlDocument() 
    doc.LoadXml(file_content) 
    Dim sb As New System.Text.StringBuilder() 
      Dim settings As New System.Xml.XmlWriterSettings() 
      settings.Indent = True 
      settings.IndentChars = "    "     ' This includes 4 non-breaking spaces: ALT+0160 
      settings.NewLineChars = System.Environment.NewLine 
      settings.NewLineHandling = System.Xml.NewLineHandling.Replace 
      settings.OmitXmlDeclaration = True 
      Using writer As System.Xml.XmlWriter = System.Xml.XmlWriter.Create(sb, settings) 
        doc.Save(writer) 
      End Using 
      Return sb.ToString() 
    End Function
    But this is not working with all IE version.Mainly we are trying to get  tree view with expand/collapse  option on each node in the report .  Please help me in resolving this issue

    I've tried creating a new parm:Object but the issues still
    comes down to how Microsoft generates the URL parms using the ":"
    to define a variable.

  • Idoc flatfile to IDOC xml issue with new PI7.11 module SAP_XI_IDOC/IDOCFlat

    Hi,
    I am trying to develop a scenario as mentioned in the blog using the new module available in PI7.1,but I am getting this error
    "Error: com.sap.conn.idoc.IDocMetaDataUnavailableException: (3) IDOC_ERROR_METADATA_UNAVAILABLE: The meta data for the IDoc type "ORDERS05" is unavailable."
    I have made every configuration correct and IDOC meta data available in both SAP R3 and PI,but it is still complaning about the meta data does not exist.
    Blog:  http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/13743%3Fpage%3Dlast%26x-order%3Ddate
    did anybody face issue with the new module available "SAP_XI_IDOC/IDOCFlatToXmlConvertor",please help me or give me mre information why I am getting this meta data error.
    Thank you,
    Sri

    Hi Sri,
    To Convert IDOC Flat file into IDOC xml from the given blog, the IDOC flat file should be present in standard format like:
    E2EDK01005                    0000047110815000000000001.........
    E2EDKA1003                    0000047110815000000000002.........
    E2EDKA1003                    0000047110815000000000003..........
    E2EDKA1003                    0000047110815000000000004........
    The Flat file have relationship as IDOC Number "000004711081500000" and segment sequence "0000001".
    If your flat file is not in this formate so i don't think that module is able to convert into IDOC xml. and if your file is already in this format then it may be issue with destinations which are created in NWA.
    Thanks
    Harish

  • Castor XML mapping problems

    I am using Castor to bind XML to Java objects. I am using a mapping file.
    My XML file consists of a lot of namespaces.
    How can i specify these namespaces in the mapping file?
    Thanks in advance

    Please do not reply to this post as it has been repeated. Actually yesterday I was clicking on 'post' button many times yet the page didnt get redirected to the list. So I felt that the topic has to be posted today.
    Sorry for the undue trouble

  • Deposit Advice XML Issue

    Hello Gurus, I am having an issue with XML Deposit Advice and XML Check Writer. In our deductions, we have City Withheld and Head Tax Withheld. For some employees, the City Withheld is showing as '0' on the Deposit Advice Slip but '6.92' on the SOE. Though the Deposit Slip shows '0' for withheld under deductions, the Net Pay matches with that on the SOE. Can anyone tell me why this is happening? Any help is highly appreciated.
    Thanks, Naveen.

    This is an internal error with Hr/Payroll.
    Thanks, Naveen Gagadam.

  • Menus.xml issue when trying to launch Dreamweaver CS4

    I have used Dreamweaver CS4 for many years on my Mac. I had a drive failure and have had to reload all of my applications from scratch as there seemed to be an issue with the Time Machine back up. Everything is working well apart from Dreamweaver CS4 which brings up an error message telling me to delete my menus.xml file and rename menus.bak to menus.xml which just doesn't work.
    I have checked and this has been asked before but none of the previous answers that I could find will work for me. Any new ideas?
    Apple MacBook Pro (mid 2010 model) running bang up to date version of OSX Mavericks.

    dg28 wrote:
    Thanks Preran
    One issue appears to be that Dreamweaver has loaded the help and configurations files into a folder in applications rather than in application support. I do not have a Dreamweaver CS4 folder anywhere in applications support under my identity or than of the loacl admin.
    You need to turn on your hidden folders to see it.
    http://guides.macrumors.com/Viewing_hidden_files_on_a_Mac

  • E4X Xml issue

    hi,
    I am facing an intermittent issue with E4X.
    I am trying to do following:
    1. Get XML from web service in string format.
    2. Replce \ using regular expression. Below is the code.
    webResult = webResult.replace(/&amp;/g, '');
    webResult = webResult.replace(/&/g, '');
    xmlResult = new XML(webResult.replace(/\\/g, ''));
    3. The issue is XML tags/attributes are mispaced as below.
    Input Xml (i.e. webResult) contains following line :
    <SourceHeaderKey Source="CI" SourceCode="20" Key="708011233708011233258956002000" />
    Replced with below string in E4X :
    <SourceHeaderKey Source="CI" SourceCode="20" Key=""708011233708rceCode="20" Key="708011233708011233258970002000"/>
    4. Key="708011233708011233258956002000" is correct, but in E4X it is Key=""708011233708rceCode="20" Key="708011233708011233258970002000"
    Any known issues with E4X. I tried searching on web but could  not find any.
    Any help is greatly appreciated. PLease help.
    Thanks,
    Aditya
    Adi

    Hi Aditya,
    You're asking this question in the wrong forum, this forum is for reporting issues with the forums themselves, not individual product support.
    I think your best bet to get some help with this is over in the JavaScript forum on the asp.net site:
    http://forums.asp.net/130.aspx/1?HTML+CSS+and+JavaScript
    One note though, I did see that Firefox has completely dropped support for E4X:
    https://developer.mozilla.org/en-US/docs/E4X/Processing_XML_with_E4X?redirectlocale=en-US&redirectslug=Core_JavaScript_1.5_Guide%2FProcessing_XML_with_E4X
    Good luck.
    Don't retire TechNet! -
    (Don't give up yet - 12,420+ strong and growing)

  • CWCLI and XML issue on RME 4.3

    Hi All,
         On a Windows 2008 Server with SP1 running LMS 3.2, I have a script that creates IOS configuration files with the appropriate XML command file for use with the cwcli config import function.  The XML file contains the following tags and values:
    <payload>
    <command>
       cwcli config import -u admin -p [Base64PWD] -device [DisplayName]
      <arg>
       -f
      </arg>
      <arg-val>
       D:\Program Files\CSCOpx\tftpboot\[DisplayName].cfg.[ID]
      </arg-val>
    </command>
    </payload>
    When I execute the sample script to invoke the Servelet, as provided in the RME users guide, I get the information that the job is running:
    <!-- Executing: cwcli config import -u admin -p [Base64PWD] -device [DisplayName] -f D:\PROGRA~2\CSCOpx\temp\argValFile.txt -->
    <cwcli> INFO - Devices to be attempted in the job:
    [DisplayName]
    <cwcli> INFO - The job 5548 is created
    Waiting for the job results ...
    <cwcli> - Job Status: Job Succeeded
    Successful Devices:
    [DisplayName]
    <cwcli> INFO - CM0107 Import the config file to PRIMARY Running Config on device successful CM0091 Check if the device prompt is available.
    CM0089 Config archival successful for [DisplayName]
    <cwcli> INFO - The transport mode used is TFTP
    SUMMARY
    ========
            Successful: import
    <!-- Processing complete -->
    After this is where it gets weird!  On the switch - having previously issued the command "term mon" - I see the following output displayed:
    Apr 28 16:56:38: %SYS-5-CONFIG_I: Configured from console by cw_2000_hq on vty2 (10.185.64.101)
    Apr 28 16:56:46: %SYS-5-CONFIG_I: Configured from tftp://[CWServer]/20110428165646943-[DeviceIP].cfg by console
    and checking the device I see that no changes have taken place.  Inspection of the file that was sent via TFTP to the device indicates why - it contains garbage:
       D:\Program Files\CSCOpx\tftpboot\[DisplayName].cfg.[ID]
    end
    The file I am specifying between the XML <arg-val> tags contains these commands:
    interface FastEthernet0/21
      switchport access vlan 2400
      switchport mode access
      no cdp enable
      spanning-tree portfast
      ip verify source
      shutdown
    end
    Can anyone tell me what I am doing wrong, please..?
    Thanks,
    SRGi

    The documentation is wrong.  Your payload should include the commands you want to deploy.  So, use:
       cwcli config import -u admin -p [Base64PWD] -device [DisplayName]
       -f
      interface FastEthernet0/21
      switchport access vlan 2400
      switchport mode access
      no cdp enable
      spanning-tree portfast
      ip verify source
      shutdown
    end

  • Premiere CC to ProTools OMF/XML issues

    XML and OMF audio timecode does not relink properly in external applications with my current Premiere CC / Mavericks configuration. Reverting to CS6 solves the issue described below...cannot say with certainty if previous CC versions solve the issue.
    Exporting OMF's to our sound engineer do not relink properly in ProTools - I've tried every available method for OMF export (encapsulated, referenced, etc).
    Exporting XMLs have a related issue - if an XML export is brought into another application (e.g. FCP 7) The audio region is correct but audio is not synced properly...it is pulling from incorrect timecode. This is externally recorded audio, recorded separately from source video. Video tracks are correctly synced.
    I can get accurate XML's out of Audition. Reverting to CS6 via XML and exporting OMF from there is my current workaround.
    Mac OSX 10.9.2
    Premiere CC 7.2.2

    Hi Andy,
    Sorry this isn't working for you.
    Can you export a much simpler version of your sequence?
    Can you try exporting only with mono tracks?
    Are there any nested sequences in the sequences?
    For file export, did you choose "encapsulate?"
    Are all the clips the same sample rate?
    Does the sample rate of the clips match sequence settings?
    Audition should work. If you have changed any of the above, please try another export from Audition.
    Thanks,
    Kevin

  • Loading audio into Adobe Edge via XML issue

    I am having an issue linking the location of an audio file via XML in Adobe Edge. I am able to get the info and post it as text, however I can not get it to load into the audio player. This is my first try at code ever, nothing too complex if possible.
    Here is the code that works along with the part I can not get to work.
    var fromName;
    var outputField = $(this.lookupSelector("xmlOutput"));
    $.ajax({   
        type: "GET",
        url: "edgesound.xml",
        dataType: "xml",
        success: function(xml) {
            fromName = $(xml).find('audio1').text();       
            outputField.html(fromName);    
        var newSound = new Audio();    
         newSound.src = "sound.mp3";
         newSound.volume = 0.5;
         sym.$("soundBtn").toggle(
    function(){
         newSound.play();
         sym.$(this).html('stop'); },
    function(){
         newSound.pause();
         sym.$(this).html('restart'); });
    // XML Try below   
         var newSound_xml = new Audio();    
         newSound_xml.src = "fromName";
         newSound_xml.volume = 0.5;
         sym.$("soundBtn_xml").toggle(
    function(){
         newSound_xml.play();
         sym.$(this).html('stop'); },
    function(){
         newSound_xml.pause();
         sym.$(this).html('restart'); });
    And here is the simple XML doc being called
        <?xml version="1.0" encoding="utf-8"?> <ax>  <audio1>sound.mp3</audio1>  </ax>
    I've also tried taking the .mp3 out of the xml and trying the following in the code with no success.
    newSound_xml.src = "fromName" + ".mp3";
    Thank you and here is a link to demo what I have so far.
    http://www.projectcog.com/audio/xml_audio.html

    Hi Exports,
    I am able to load directly from XML file to oracle tables. I am also successfully reverse engineer the XSD file into oracle relational structure but after that I don't know how to assign XML data file to the schema and load to oracle table
    Can you explain me the steps how to assign XML file to the schema (created from XSD ) and load to oracle table. which KM to use to load from XSD to oracle.
    Thanks,
    Mano

Maybe you are looking for

  • Certificate of Origin with multiple line items in sapscript - Urgent Please

    Hi Everyone, Can you please help me with this issue in SAPSCRIPT. This is for billing document with multiple items with each line item with different country of origin.Right now the form is printing only one country of origin even if it has 3 line it

  • Internal Order - AUC not saving

    Hi I have created an internal order where the inthernal order type is linked to a model order. However when I go to Extras > Asset Under Construction, the AUC has been created but when I go to save the created AUC, the save icon is not active and it

  • How to use classes with the Movie Clips

    Hi guys!I have a movie clip called teacher.It's assigned to a class called teacher.It has a location(room).I have multiple rooms and so i want the teacher to be only visible in the room it's at.I have  two buttons for each room.The problem is the tea

  • How to make 2nd page inherit home pg's styling?

    I have created the home page to my satisfaction and made it index.html. It includes navigation bars but no links as of yet.  How do I make the subsequent pages inherit the home page's styling without having to do each page all over again?  Thanks.

  • EPSON STYLUS PHOTO 780 with Mac Pro

    Epson's latest driver does not seem to install on a Mac Pro w/ OS 10.4.8 and I am forced to use Gimp Print drivers. What settings do I use in this driver to make sure that printer color management on the Epson Stylus Photo 780 is disabled when creati