Xslt does not output XML declaration

Hi there!
I have been trying for days to transform an XML doc into another one using an XSL stylesheet (that contains a <xsl:output method=xml/> tag...).
different methods:
-using xmltransform(xmltype(xmldoc), xmltype(xsldoc)) I get a xml fragment, without xml declaration...
even if i later parse it and generate a Domdocument with both xmldom.setVersion() and xmldom.setcharset(), i still don't get my xml declaration in my output tree...
-using dbms_xslprocessor, i get a <dummy/> document...probably a problem with the newStylesheet generation...by the way, could anyone explain to me what is the reference URl argument for nesStylesheet???
thanks for your help, I am getting crazy!!!

Hi there!
I have been trying for days to transform an XML doc into another one using an XSL stylesheet (that contains a <xsl:output method=xml/> tag...).
different methods:
-using xmltransform(xmltype(xmldoc), xmltype(xsldoc)) I get a xml fragment, without xml declaration...
even if i later parse it and generate a Domdocument with both xmldom.setVersion() and xmldom.setcharset(), i still don't get my xml declaration in my output tree...
-using dbms_xslprocessor, i get a <dummy/> document...probably a problem with the newStylesheet generation...by the way, could anyone explain to me what is the reference URl argument for nesStylesheet???
thanks for your help, I am getting crazy!!!

Similar Messages

  • Build.vi does not output Generated files list for installer

    In LV 2011, Build.vi does not output a "Generated files" list when used on an installer. Example attached. When run on my system, "Generated files" is an empty array and "error out" shows no errors or warnings. The built installer can be found on disk, so I know the build succeeded.
    I critically need to know the target folder for my built installer so I can use it in an automated build tool. Assuming this is a real bug, can someone help me with a workaround that doesn't require an operator to point the VI to the target path?
    Attachments:
    build_vi_bug.zip ‏10 KB

    Hi David,
    You may find the solution in the following two links
    Creating Builds Programmatically
    Build executable and installer programmatically
    In the second link, there is an example code posted by Suse to find the destination path programmatically, hope it helps answer your question.
    Yupeng J.

  • Why java does not force to declare atleast one abstract method

    hi,
    i can define an abstract class without declaring any abstract method in that class. But why wud i do this ? i mean when i have decided that a particular class should be inherited by other subclass and subclass should porvide implementation then there should be atleast one method in the abstract super class which requires implementation.
    All i want to know is why java does not force to declare atleast one abstract method in abstract class.
    there may be some situations where this restriction can create problem if it is like that then can anybody give some example.
    manish

    hi,
    i didn't get u.
    u r trying to say that i have an abstract class with
    only static methods then my questions is why wud
    declare such a class as 'abstract' class? because a
    static method can't be abstract also. Even then if
    somebody want to define such a class with only static
    methods then compiler should force him to declare
    atleast one abstract method which can be implemented
    by subclass, because as i said before if sumbody
    decide to define a class abstract then he wants that
    it should be inhereted but as u r saying a class with
    only static methods then it should not be an abstract
    class it can be a simple class.there's no functional reason, really... actually, factory-like classes are often defined the way Ceci described
    "abstract" only ensures that nobody can ever get an instance of that class (as a matter of fact, what would be the point of getting an instance, if no instance method exists ?)

  • "Source File does not match XML Schema"

    Using MDM 5.5 SP4 Patch 2 (Build 5.5.34.26) on a 32-bit system (WinServer 2003, Enterprise Edition SP1.
    This source file and schema have been verified by SAP Tech Support and again using Altova XML Spy. The schema was loaded into MDM through the console and the source file was successfully mapped against it and the data manually imported into MDM. The customer record was then cleansed using the Data Manager and the import map was used to create an inbound port. However, when the Import Server goes to import the file using the map, the following error is dropped into the log: "Source File does not match XML Schema". Has anyone else seen this error?
    Thanks,  Don
    IMPORT LOG ENTRY:
    <?xml version="1.0" encoding="utf-8"?>
    <?xml-stylesheet type="text/xsl" href="MDM_Log.xsl"?>
    <MDM_Log version="1.0" path="H:PROGRA~1SAPMDM~1.5IMPORT~1TempMDIS_TASK@@U@[email protected]"
    >
         <Open ts-long="18:24:35 GMT, Saturday, February 03, 2007" ts="2007/02/03 18:24:35.108 GMT" pid="8640" host="bp1tulap452" compile-type="RELEASE_32">
              <Trace ts="2007/02/03 18:24:35.249 GMT" tid="7216" entry-no="3">[BP US FUELS CUSTOMER MASTER] Import Task Started. Chunk size[50000], No. parallel chunks[1]</Trace>
              <Trace ts="2007/02/03 18:24:43.890 GMT" tid="5980" entry-no="11">xSaxParser: Starting.</Trace>
              <Trace ts="2007/02/03 18:24:43.937 GMT" tid="5980" entry-no="19">xSaxParser: Ending.</Trace>
              <Trace ts="2007/02/03 18:24:43.937 GMT" tid="5980" entry-no="20">Source file does not conform to XML Schema!<LINE-FEED/></Trace>
              <Trace ts="2007/02/03 18:24:45.312 GMT" tid="7216" entry-no="29">[RESPOSITORY]Import Task Finished. Chunk size[50000], No. parallel chunks[1]</Trace>
         </Open>
    </MDM_Log>
    SOURCE FILE:
      <?xml version="1.0" encoding="UTF-8" ?>
    - <ns1:CustomerCreateResp xmlns:ns1="urn:bp:xi:up:re:cust_mdm:cmdm:pr5:100">
    - <CUSTOMER>
    - <item>
      <CUSTOMERNO>0090154474</CUSTOMERNO>
      <MDMCUSTOMER>2463</MDMCUSTOMER>
      <CREATE_DATE>22/01/2007,11:43:49</CREATE_DATE>
    - <RETURN>
      <TYPE />
      <MESSAGE />
      </RETURN>
    - <PT_CONTPART_RETURN>
    - <item>
      <MDM_CONTACT>0000000001</MDM_CONTACT>
      <CONTACT>0001111119</CONTACT>
      </item>
    - <item>
      <MDM_CONTACT>0000000004</MDM_CONTACT>
      <CONTACT>0002222229</CONTACT>
      </item>
      </PT_CONTPART_RETURN>
    - <PARTNERS>
    - <item>
      <CUSTOMERNO>0090154474</CUSTOMERNO>
      <PARTNER_FUNCTION>RE</PARTNER_FUNCTION>
      <PARTNER_NUMBER>0001333329</PARTNER_NUMBER>
      <DEFAULT_PARTNER>X</DEFAULT_PARTNER>
      </item>
    - <item>
      <CUSTOMERNO>0090154474</CUSTOMERNO>
      <PARTNER_FUNCTION>WE</PARTNER_FUNCTION>
      <PARTNER_NUMBER>0001555559</PARTNER_NUMBER>
      <DEFAULT_PARTNER />
      </item>
      </PARTNERS>
      </item>
      </CUSTOMER>
      </ns1:CustomerCreateResp>
    SCHEMA:
       <?xml version="1.0" encoding="UTF-8" ?>
    - <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="urn:bp:xi:up:re:cust_mdm:cmdm:pr5:100" targetNamespace="urn:bp:xi:up:re:cust_mdm:cmdm:pr5:100" elementFormDefault="unqualified">
      <xsd:element name="CustomerCreateResp" type="CustomerCreateResp" />
    - <xsd:complexType name="CustomerCreateResp">
    - <xsd:annotation>
      <xsd:appinfo source="http://sap.com/xi/TextID">682cc2d0aa6e11db9b800015c5888624</xsd:appinfo>
      </xsd:annotation>
    - <xsd:sequence>
    - <xsd:element name="CUSTOMER">
    - <xsd:annotation>
      <xsd:appinfo source="http://sap.com/xi/TextID">f68988f0a02e11db94bb00166f98336c</xsd:appinfo>
      </xsd:annotation>
    - <xsd:complexType>
    - <xsd:sequence>
    - <xsd:element name="item" maxOccurs="unbounded">
    - <xsd:annotation>
      <xsd:appinfo source="http://sap.com/xi/TextID">72ea9b20a75811dba9d400166f983d94</xsd:appinfo>
      </xsd:annotation>
    - <xsd:complexType>
    - <xsd:sequence>
    - <xsd:element name="CUSTOMERNO" type="xsd:string" minOccurs="0">
    - <xsd:annotation>
      <xsd:appinfo source="http://sap.com/xi/TextID">72ea9b21a75811db9c4800166f983d94</xsd:appinfo>
      </xsd:annotation>
      </xsd:element>
    - <xsd:element name="MDMCUSTOMER" type="xsd:string" minOccurs="0">
    - <xsd:annotation>
      <xsd:appinfo source="http://sap.com/xi/TextID">72ea9b22a75811dbcbac00166f983d94</xsd:appinfo>
      </xsd:annotation>
      </xsd:element>
    - <xsd:element name="CREATE_DATE" type="xsd:string" minOccurs="0">
    - <xsd:annotation>
      <xsd:appinfo source="http://sap.com/xi/TextID">72ea9b23a75811dbcc0300166f983d94</xsd:appinfo>
      </xsd:annotation>
      </xsd:element>
    - <xsd:element name="RETURN" minOccurs="0">
    - <xsd:annotation>
      <xsd:appinfo source="http://sap.com/xi/TextID">72ea9b24a75811db8d5500166f983d94</xsd:appinfo>
      </xsd:annotation>
    - <xsd:complexType>
    - <xsd:sequence>
    - <xsd:element name="TYPE" type="xsd:string" minOccurs="0">
    - <xsd:annotation>
      <xsd:appinfo source="http://sap.com/xi/TextID">72ea9b25a75811db876d00166f983d94</xsd:appinfo>
      </xsd:annotation>
      </xsd:element>
    - <xsd:element name="MESSAGE" type="xsd:string" minOccurs="0">
    - <xsd:annotation>
      <xsd:appinfo source="http://sap.com/xi/TextID">72ea9b26a75811db85c400166f983d94</xsd:appinfo>
      </xsd:annotation>
      </xsd:element>
      </xsd:sequence>
      </xsd:complexType>
      </xsd:element>
    - <xsd:element name="PT_CONTPART_RETURN" minOccurs="0">
    - <xsd:annotation>
      <xsd:appinfo source="http://sap.com/xi/TextID">72ea9b27a75811db8ca900166f983d94</xsd:appinfo>
      </xsd:annotation>
    - <xsd:complexType>
    - <xsd:sequence>
    - <xsd:element name="item" minOccurs="0" maxOccurs="unbounded">
    - <xsd:annotation>
      <xsd:appinfo source="http://sap.com/xi/TextID">72ea9b28a75811dbaae100166f983d94</xsd:appinfo>
      </xsd:annotation>
    - <xsd:complexType>
    - <xsd:sequence>
    - <xsd:element name="MDM_CONTACT" type="xsd:string" minOccurs="0">
    - <xsd:annotation>
      <xsd:appinfo source="http://sap.com/xi/TextID">72ea9b29a75811dbaade00166f983d94</xsd:appinfo>
      </xsd:annotation>
      </xsd:element>
    - <xsd:element name="CONTACT" type="xsd:string" minOccurs="0">
    - <xsd:annotation>
      <xsd:appinfo source="http://sap.com/xi/TextID">72ea9b2aa75811dbc24c00166f983d94</xsd:appinfo>
      </xsd:annotation>
      </xsd:element>
      </xsd:sequence>
      </xsd:complexType>
      </xsd:element>
      </xsd:sequence>
      </xsd:complexType>
      </xsd:element>
    - <xsd:element name="PARTNERS" minOccurs="0">
    - <xsd:annotation>
      <xsd:appinfo source="http://sap.com/xi/TextID">72ea9b2ba75811dbb74500166f983d94</xsd:appinfo>
      </xsd:annotation>
    - <xsd:complexType>
    - <xsd:sequence>
    - <xsd:element name="item" minOccurs="0" maxOccurs="unbounded">
    - <xsd:annotation>
      <xsd:appinfo source="http://sap.com/xi/TextID">72ea9b2ca75811db9f6500166f983d94</xsd:appinfo>
      </xsd:annotation>
    - <xsd:complexType>
    - <xsd:sequence>
    - <xsd:element name="CUSTOMERNO" type="xsd:string" minOccurs="0">
    - <xsd:annotation>
      <xsd:appinfo source="http://sap.com/xi/TextID">72ea9b2da75811db9bd800166f983d94</xsd:appinfo>
      </xsd:annotation>
      </xsd:element>
    - <xsd:element name="PARTNER_FUNCTION" type="xsd:string" minOccurs="0">
    - <xsd:annotation>
      <xsd:appinfo source="http://sap.com/xi/TextID">72ea9b2ea75811dbb84100166f983d94</xsd:appinfo>
      </xsd:annotation>
      </xsd:element>
    - <xsd:element name="PARTNER_NUMBER" type="xsd:string" minOccurs="0">
    - <xsd:annotation>
      <xsd:appinfo source="http://sap.com/xi/TextID">72ea9b2fa75811db852800166f983d94</xsd:appinfo>
      </xsd:annotation>
      </xsd:element>
    - <xsd:element name="DEFAULT_PARTNER" type="xsd:string" minOccurs="0">
    - <xsd:annotation>
      <xsd:appinfo source="http://sap.com/xi/TextID">72ea9b30a75811db968400166f983d94</xsd:appinfo>
      </xsd:annotation>
      </xsd:element>
      </xsd:sequence>
      </xsd:complexType>
      </xsd:element>
      </xsd:sequence>
      </xsd:complexType>
      </xsd:element>
      </xsd:sequence>
      </xsd:complexType>
      </xsd:element>
      </xsd:sequence>
      </xsd:complexType>
      </xsd:element>
      </xsd:sequence>
      </xsd:complexType>
      </xsd:schema>

    You have to define the namespace in the URI field of XML Schmea in Console.
    In MDM Console,
    Admin -> XML Schemas -> Create XML Schema
    You have to specify the namespace urn:bp:xi:up:re:cust_mdm:cmdm:pr5:100 in the URI property.
    Please update this post if fixed your problem.

  • XSLT does not put element into output

    HI Gentlemen,
    I have the following code segment, reflecting a 4-level hierarchical structure. Only the first two levels are guaranteed to be present; the last two are optional (if pe:scheinuntergruppen_liste is present, then at least one pe:scheinuntergruppe must be present, too.)
              <xsl:for-each select="pe:bedingung/pe:scheinarten_liste">
                <xsl:variable name="span1" select="count(descendant::pe:scheinuntergruppe)"/>
                <xsl:variable name="pos1" select="position()"/>
                <xsl:for-each select="pe:scheinart">
                  <xsl:variable name="span2" select="count(descendant::pe:scheinuntergruppe)"/>
                  <xsl:variable name="pos2" select="position()"/>
                  <xsl:for-each select="pe:scheinuntergruppen_liste">
                    <xsl:variable name="span3" select="count(descendant::pe:scheinuntergruppe)"/>
                    <xsl:variable name="pos3" select="position()"/>
                    <xsl:for-each select="pe:scheinuntergruppe"> 
                      <tr>
                        <xsl:if test="position()=1">
                          <xsl:if test="$pos3=1">
                            <xsl:if test="$pos2=1">
                              <td rowspan="{$span1}"><xsl:value-of select="../../../@V"/></td>
                            </xsl:if>
                            <td rowspan="{$span2}"><xsl:value-of select="../../@V"/></td>
                          </xsl:if>
                          <td rowspan="{$span3}"><xsl:value-of select="../@V"/></td>
                        </xsl:if>
                        <td><xsl:value-of select="@V"/></td>
                      </tr>
                    </xsl:for-each>
                  </xsl:for-each>
                </xsl:for-each>
              </xsl:for-each>Since a tabular representation is not working for missing elements, I tried to insert them under pe:scheinart., using the following template:
    <xsl:template name="fill" match="pe:scheinart">
      <xsl:if test="not(./pe:scheinuntergruppen_liste)">
        <xsl:element name="pe:scheinuntergruppen_liste" use-attribute-sets="V">
          <xsl:attribute name="V">
            <xsl:value-of select="XX"/>
          </xsl:attribute>
          <xsl:element name="pe:scheinuntergruppe" use-attribute-sets="V">
            <xsl:attribute name="V">
              <xsl:value-of select="YY"/>
            </xsl:attribute>
          </xsl:element>
        </xsl:element>
      </xsl:if>
    </xsl:template>This should be executed once for each pe:scheinart node inserting a child and a grandchild node. The template is called by
    <xsl:apply-templates select="pe:scheinart"/>Unfortunately, it does nothing; the rowspan values are not affected. Could anyone give me a hint, where I am wrong?
    Thanks, kind regards,
    Miklos HERBOLY
    Edited by: mh**** on Aug 11, 2011 10:31 AM

    [0]
    Since a tabular representation is not working for missing elements, I tried to insert them under pe:scheinart., using the following template...I have'nt read into the template... but if you meant to setup a template within the same xslt document (not in cascade) as pre-processing of the xml document, then I doubt it would do as a matter of conceptual approach.
    [1] In fact, there is no reason the possibility of missing element pe:scheinuntergruppen_liste and/or pe:scheinuntergruppe cannot be handled by the logic. It can and I would like to show you a realization to that effect.
    [1.1] One crucial point is to count correctly the needed rows (tr) disregard whether one or both of the elements be absent or not. The number of rows to span for both pe:scheinarten_liste and pe:scheinart individually is to calculate how many ending tree node amongst the four named elements (in the sense of element of the descendant of them contains no more elements of the four named elements.) That calculation is reflected in the demo below at span1, span2 variables following your notations.
    [1.2] And then, once the elements being absent, one has to insert something to avoid the html table collaping the cell --- use border="1" for inspection purpose, if you so desired. That's quite necessary as far as the html table is concerned. It is usually a non-breakable space ( ). That I do as well.
    [1.3] There are two degenerate cases: pe:scheinuntergruppen_liste absent and pe:scheinuntergruppen_liste present but pe:scheinuntergruppe absent. It results in four branching out (reflecting in the use of xsl:choose).
    [2] This is a demo realization containing the 4 levels of for-each which should behaviour properly with enough generality.
    <xsl:for-each select="pe:bedingung/pe:scheinarten_liste">
      <xsl:variable name="span1" select="count(descendant-or-self::*[count(descendant::*)=0])" />
      <xsl:variable name="pos1" select="position()"/>
      <xsl:for-each select="pe:scheinart">
        <xsl:variable name="span2" select="count(descendant-or-self::*[count(descendant::*)=0])" />
        <xsl:variable name="pos2" select="position()"/>
        <xsl:choose>
          <xsl:when test="count(pe:scheinuntergruppen_liste)=0">
            <tr>
              <xsl:if test="$pos2=1">
                <td rowspan="{$span1}"><xsl:value-of select="../@V" /></td>
              </xsl:if>
              <td><xsl:value-of select="@V" /></td>
              <td><xsl:value-of select="'&#xa0;'" /></td>
              <td><xsl:value-of select="'&#xa0;'" /></td>
            </tr>
          </xsl:when>
          <xsl:otherwise>
            <xsl:for-each select="pe:scheinuntergruppen_liste">
              <xsl:variable name="span3" select="count(descendant-or-self::*[count(descendant::*)=0])" />
              <xsl:variable name="pos3" select="position()" />
              <xsl:choose>
                <xsl:when test="count(pe:scheinuntergruppe)=0">
                  <tr>
                    <xsl:if test="$pos3=1">
                      <xsl:if test="$pos2=1">
                        <td rowspan="{$span1}"><xsl:value-of select="../../@V" /></td>
                      </xsl:if>
                      <td rowspan="{$span2}"><xsl:value-of select="../@V" /></td>
                   </xsl:if>
                   <td><xsl:value-of select="@V" /></td>
                   <td><xsl:value-of select="'&#xa0;'" /></td>
                 </tr>
               </xsl:when>
               <xsl:otherwise>
                 <xsl:for-each select="pe:scheinuntergruppe">
                   <xsl:variable name="pos4" select="position()" />
                   <tr>
                     <xsl:if test="$pos4=1">
                       <xsl:if test="$pos3=1">
                         <xsl:if test="$pos2=1">
                           <td rowspan="{$span1}"><xsl:value-of select="../../../@V" /></td>
                         </xsl:if>
                         <td rowspan="{$span2}"><xsl:value-of select="../../@V" /></td>
                       </xsl:if>
                       <td rowspan="{$span3}"><xsl:value-of select="../@V" /></td>
                     </xsl:if>
                     <td><xsl:value-of select="./@V" /></td>
                   </tr>
                 </xsl:for-each>
               </xsl:otherwise>
             </xsl:choose>
           </xsl:for-each>
         </xsl:otherwise>
       </xsl:choose>
      </xsl:for-each>
    </xsl:for-each>

  • DataGrid does not display XML data

    Hello, and thanks for reading this...
    I am having a problem displaying XMLList data in a DataGrid.
    The data is coming from a Tree control, which is receiving it
    from a database using HTTPService.
    The data is a list of "Job Orders" from a MySQL database,
    being formatted as XML by a PHP page.
    If it would be helpful to see the actual XML, a sample is
    here:
    http://www.anaheimwib.com/_login/get_all_orders_test2.php
    All is going well until I get to the DataGrid, which doesn't
    display the data, although I know it is there as I can see it in
    debug mode. I've checked the dataField property of the appropriate
    DataGrid column, and it appears correct.
    Following is a summary of the relevant code.
    ...An HTTPService named "get_all_job_orders" retrieves
    records from a MySQL database via PHP...
    ...Results are formatted as E4X:
    HTTPService resultFormat="e4x"
    ...An XMLListCollection's source property is set to the
    returned E4X XML results:
    ...The "order" node is what is being used as the top-level of
    the XML data.
    <mx:XMLListCollection id="jobOrdersReviewXMLList"
    source="{get_all_job_orders.lastResult.order}"/>
    ...The "jobOrdersReviewXMLList" collection is assigned to be
    the dataProvider property of a Tree list, using the @name syntax to
    display the nodes correctly, and a change event function is defined
    to add the records to a DataGrid on a separate Component for
    viewing the XML records:
    <mx:Tree dataProvider="{jobOrdersReviewXMLList}"
    labelField="@name"
    change="jobPosForm.addTreePositionsToDG(event)"/>
    ...Here is the relevant "jobPosForm" code (the Job Positions
    Form, a separate Component based on a Form) :
    ...A variable is declared:
    [Bindable]
    public var positionsArray:XMLList;
    ...The variable is initialized on CreationComplete event of
    the Form:
    positionsArray = new XMLList;
    ...The Tree's change event function is defined within the
    "jobPosForm" Component.
    ...Clicking on a Tree node fires the Change event.
    ...This passes an event object to the function.
    ...This event object contains the XML from the selected Tree
    node.
    ...The Tree node's XML data is passed into the positionsArray
    XMLList.
    ...This array is the dataProvider for the DataGrid, as you
    will see in the following block.
    public function addTreePositionsToDG(event:Event):void{
    this.positionsArray = selectedNode.positions.position;
    ...A datagrid has its dataProvider is bound to
    positionsArray.
    ...(I will only show one column defined here for brevity.)
    ...This column has its dataField property set to "POS_TITLE",
    a field in the returned XML record:
    <mx:DataGrid width="100%" variableRowHeight="true"
    height="75%" id="dgPositions"
    dataProvider="{positionsArray}" editable="false">
    <mx:columns>
    <mx:DataGridColumn width="25" headerText="Position Title"
    dataField="POS_TITLE"/>
    </mx:columns>
    </mx:DataGrid>
    In debug mode, I can examine the datagrid's dataProvider
    property, and see that the correct XML data from the Tree control
    is present. However, The datagrid does not display the data in any
    of its 6 columns.
    Does anyone have any advice?
    Thanks for your time.

    Hello again,
    I came up with a method of populating the DataGrid from the
    selected Item of a Tree Control which displays complex XML data and
    XML attributes. After the user clicks on a Tree branch, I call this
    function:
    public function addTreePositionsToDG(event:Event):void{
    //Retrieve all "position" nodes from tree.
    //Loop thru each Position.
    //Add Position data to the positionsArray Array Collection.
    //The DataGrid dataprovider is bound to this array, and will
    be updated.
    positionsArray = new ArrayCollection();
    var selectedNode:Object=event.target.selectedItem;//Contains
    entire branch.
    for each (var position:XML in
    selectedNode.positions.position){
    var posArray:Array = new Array();
    posArray.PK_POSITIONID = position.@PK_POSITIONID;
    posArray.FK_ORDERID = position.@FK_ORDERID;
    posArray.POS_TITLE = position.@POS_TITLE;
    posArray.NUM_YOUTH = position.@NUM_YOUTH;
    posArray.AGE_1617 = position.@AGE_1617;
    posArray.AGE_1821 = position.@AGE_1821;
    posArray.HOURS_WK = position.@HOURS_WK;
    posArray.WAGE_RANGE_FROM = position.@WAGE_RANGE_FROM;
    posArray.WAGE_RANGE_TO = position.@WAGE_RANGE_TO;
    posArray.JOB_DESCR = position.@JOB_DESCR;
    posArray.DES_SKILLS = position.@DES_SKILLS;
    positionsArray.addItem(posArray);
    So, I just had to manually go through the selected Tree node,
    copy each XML attribute into a simple Array, then ADD this Array to
    an ArrayCollection being used as the DataProvider for the DataGrid.
    It's not elegant, but it works and I don't have to use a Label
    Function, which was getting way too complicated. I still think that
    Flex should have an easier way of doing this. There probably is an
    easier way, but the Flex documentation doesn't provide an easy path
    to it.
    I want to thank you, Tracy, for the all the help. I checked
    out the examples you have at www.cflex.net and they are very
    helpful. I bookmarked the site and will be using it as a resource
    from now on.

  • Flash Builder 4.5 + AIR 3.0 RC1 does not output modules to correct location

    Hello
    I'm having some trouble with Flash Builder 4.5 and Flex SDK 4.5.1.21328 with AIR 3.0 RC1. Flash Builder does not appear to compile modules into the location set in the "Edit module" dialog.
    The screenshots below show that the output path of a module is set to a specific folder, yet Flash Builder compiles the module into the default sub-folder.
    #1. Project properties showing application modules
    #2. Dialog showing the path to the module. Not the "Output SWF" location. The default location is the same as the package namespaces, eg: "d6/v3/banners/Banners.swf". After removing the path the module should compile into the output folder (set to bin/debug), however as the next screenshot shows, the module still compiles into the default sub-folder.
    #3. The module is compiled into a sub-folder of the output folder, instead of into the "root" of the output folder.
    #4. The output folder contains only the main application, with a sub-folder for the module.
    #5. Project pproperties showing the output folder.
    There is a workaround - move the module source file into the "Default package" in the package explorer.

    I experienced this problem today, and kind of "solved" it. There may be an underlying bug, though.
    My project compiled fine last Thursday, but I opened it up on Monday (unchanged) and this error showed up in several files. I tried quitting and restarting Flash Builder to no avail. I could not replicate the problem in a new project.
    For me, each occurence of the error was at a private function definition, so I thought I would try changing "private" to "public" on one of the functions. The error immediately went away in all 3 locations (not just the one I edited). I then changed it back to "private" with no error.
    I hope that will help the Adobe team track down the problem.

  • New Text File Action Does Not Output Correctly (Corrupts)

    I posted this in here by accident. I reposted it in the 10.5 Automator forum...
    I have a simple automator script that uses "Get Specified Text" that contains some arbitrary shell script text, and I pass that to "New Text File" which has the location selected from a variable called "Temporary path" of value "/tmp". The output of 'New Text File" will not contain the text I specified. Here are steps to recreate:
    New automator script
    Get specified text action with the following text:
    #!/bin/sh
    cd "`dirname \"$0\"`"
    if [ true ]; then
    echo 1
    fi
    New variable called "Temporary path" with the value "/tmp"
    New text file action
    --- Save as: test.txt
    --- Where: "Temporary path" (drag Temporary path to the drop down box)
    --- Replace existing file: checked
    I run the script. New text file result shows "/private/tmp/test.txt". Then from the "Terminal" I try to view it ("cat /tmp/test.txt") and the contents are:
    if [ true ]; then\"`"
    fi echo 1
    So the specified text was corrupted. If I create the new file in Desktop or Documents (tried those) it works correctly. What is so special about /tmp? Is there a reason why this shouldn't work?
    Regards,
    John
    Message was edited by: techiejohn

    Alas, my example does work... In hopes of narrowing the problem I tried to narrow the text.
    Anyway below is the full "script" that I'm trying to write to the file that does not work, although if you copy it from here directly, it does work. So to reproduce, I can copy it from here to TextWrangler (that will fix the extra blank lines) then from TextWranger to Automator and the issues remains. The result of "Get specified text" looks correct, but the output still is not.
    <pre>
    #!/bin/bash
    cd "`dirname \"$0\"`"
    clear
    \# display output from a previous run
    if \[ -e "$0".txt \]; then
    cat "$0".txt
    /bin/echo -n "Run again? "
    read run
    if \[ "$run" = "n" -o "$run" = "N" -o "$run" = "no" -o "$run" = "No" -o "$run" = "NO" \]; then
    run=""
    else
    run="Yes"
    fi
    else
    run="Yes"
    fi
    if \[ "$run" \]; then
    date
    echo "Running unison for $USER..."
    if \[ -e "/Users/$USER" -a -e "/Volumes/$USER" \]; then
    /opt/local/bin/unison \
    "/Users/$USER" "/Volumes/$USER" \
    -auto \
    -rsrc false \
    -terse \
    -logfile /dev/null \
    -ignore "Name .DS_Store" \
    -ignore "Name .Spotlight*" \
    -path "Desktop" \
    -path "Documents" \
    -path "Downloads" \
    "$@"
    exit=$?
    case "$exit" in
    0) echo "Successful synchronization; everything is up-to-date now.";;
    1) echo "Some files were skipped, but all file transfers were successful.";;
    2) echo "Non-fatal failures occurred during file transfer.";;
    3) echo "A fatal error occurred, or the execution was interrupted.";;
    esac
    else
    echo "/Users/$USER or /Volumes/$USER does not exist."
    exit=255
    fi
    else
    exit=0
    fi
    \# wait for error acknowledgement
    if \[ "$TERM" -a "$TERM" != "dumb" -a "$exit" -gt 0 \]; then
    /bin/echo -n "Error #$exit; press enter or return to continue: "
    read
    fi
    \# close the terminal window
    termpid=`/opt/local/bin/pstree -p $PPID | grep Terminal.app | grep -v grep | awk '{print $2}'`
    if \[ "$termpid" \]; then
    kill "$termpid"
    fi
    exit $exit
    </pre>

  • JDEV 10.1.3  XML Editor does not load XML file

    I am trying to edit a large (300MB+) xml file with JDEV 10.1.3 running on a Windows XP Pro workstation with a 2.8 ghz processor and 1GB of memory. The XML file has application data in it. The file loads just fine into the Oracle database using the XML Developer's toolkit so I don't thing there is anything wrong with the XML.
    I'm finding that the XML editor does not load the file. Many minutes elapse, then JDEV appears to simply give up - JDEV is no longer busy. There's no XML data to edit - that window is empty. There are no error messages displayed.
    I'm new to JDEV so I need to know if there is an error log file I should examine.
    BTW, other XML editors (XML Spy, Stylus Studio, etc) simply run out of memory and lock up the machine - it appears they are tryign to convert the XML file contents into 32-bit unicode in memory, build a list of pointers to impose a DOM-like structure, and then load their editor.

    Do you really want to manually edit the 300MB file? how much scrolling will you need to do to get to the last row?
    In any case it is likely that JDeveloper also runs out of memory - you can try running the [jdev-root]\jdev\bin\jdev.exe file and see if you get any error message in the log window.

  • Web Services Consumer Transformation does not expand xml string in WSDL

    I am trying to create a WebService Consumer transformation with a WSDL file which I have imported in Informatica PowerCenter.The WSDL file has complexType xml strings which are not getting expanded while I am importing the WSDL file, thus it’s not showing the input and output fields in the request and response respectively. I have xsd file definition for these xml strings separately and there is no way I can incorporate them with the main WSDL in PowerCenter.  While I looked into the Informatica Documentation I found that in the Developer tool I can create Web Service in Data Services, and incorporate xsd element definition with main WSDL file. But it’s not exactly working in the way its described in the documentation. Any help would be appreciated.

    Hello All, I have got a scenario to implement: I have a Character source column which I need to convert to Numeric(18,4) and load into table. My source and target is a Netezza table. If the conversion fails, we do not drop the record, instead insert NULL for those records,i.e. source and target has same number of records. I use an expression as below : DECODE(Input_String, NULL, NULL-- Check for alphabets IIF((UPPER(Input_String) != LOWER(Input_String)), NULL-- Check for special charactersIIF((INSTR(Input_String,',',1) > 0 || INSTR(Input_String,':',1) > 0 || INSTR(Input_String,'@',1) > 0),NULL, TO_DECIMAL(Input_String,4))    )       ) Now my question is, can we use a single INSTR statement and check for all the special characters? I want to avoid writing multiple INSTR statements. Please suggest me how to check multiple characters in a single INSTR statement. Thanks & RegardsBiswajeet.

  • 6534 card does not output data immediatel​y upon trigger

    I am trying to loop to output buffers of data one after another using an external trigger. I am finding that unless I allow a significant amount of extra time (about 3 times the time it takes to output the data) between triggers, the data is output some time after the trigger has ocurred, in a kind of consistent, but unsynchronized to the trigger, manner.
    I am using NI-DAQ 6.9.2 and VC++. I can reproduce this on a simpler application (based on the NI example code DOsingleBufPatternGen653x.C) than mine and using a function generator to generate a square wave as the trigger.
    I also have DSP and JTAG PCI cards running on this PC. On another system, without the DSP card and program running I do not
    see this problem.
    Is this a PCI bandwidth issue or memory transfer issue. I am using DMA transfers so I did not think CPU bandwidth should be an issue.
    I am really frustrated with this card, it is pretty buggy. Another issue I have is, I need to have a 0 value as the first buffer element or else I get the output going high and remaining high at the end of a buffered output.
    What are the system requirements for this card? Does it matter which PCI slot the card is in?
    Attachments:
    DOsingleBufPatternGen653x.Cpp ‏5 KB
    DOTest.dsp ‏5 KB
    DOTest.dsw ‏1 KB

    David
    I think the problem you are seeing is with how the NI 6534 device sets up pattern generation.
    PCI bandwidth is a limiting factor in how fast the computer can transfer the data to the device to generate. Because of this, all of the data to be generated is first preloaded onto the onboard memory of the device. This way the pattern can be generated at full speed without having to worry about PCI bus bandwidth limitations during the generation. For example, if you are going to output a 20 MB pattern, all 20 MB will be preloaded onto the device before the generation begins. This will cause a small delay before the pattern generation begins.
    This can be disabled however. To do this this in VC++, call Set_DAQ_Device_Info function and set the ND_FIFO_Trans
    fer_COUNT to ND_NONE. (In LabVIEW this is done with DIO Parameter VI, setting the Scarabs Preload Enable attribute to OFF.)
    When you have done this, it will start generating the data as soon as it starts to trasfer the data across the PCI bus.
    Brian

  • 10g XE WebDav does not load XML doc

    Hi,
    I am experimenting with XE XMLDB. I have successfully registered a simple schema and was able to insert XML doc from sqlplus into XML DB. But when I drop a XML doc into the WebDav folder, the document did not get loaded. My 10g XE is installed on my laptop running Win XP, and I have both ftp (2100) and http (8080) ports actived. everything is local in my laptop.
    I had no problem at all when (doing the same testing) dropping the the doc into another WebDAV folder, which points to the XML DB on an ora92 EE installation running on a UNIX server.
    Don't know What i have missed?

    The following command will also do the trick without bouncing your database:
    alter system register;

  • [SOLVED] boot partition does not output on genfstab.

    I have installed Arch Linux 5 or 6 times and even had desktop environments. This is a first for this to happen. I do not have a way to copy and paste so I cannot reproduce all code.
    I have 4 partitions. They are:  /, home, boot, and swap. This is new for me and I am a bit confused. I did a search and found this, but no luck for me.
    https://bbs.archlinux.org/viewtopic.php?id=118114
    Unfortunately, this is not helping me, or I just do not see it.
    The root, the home and the swap partition output normally. It looks like this:
    # /dev/sda2
    UUID=**************************** / ext4 rw,relatime,data=ordered 0 1
    # /dev/sda4
    UUID=**************************** /home ext4 rw,relatime,data=ordered 0 2
    # /dev/sda3
    UUID=**************************** none swap defauults 0 0
    The boot partition is just not there. So i did this:
    lsblk -f | grep sda1
    and appended the UUID from this output to the fstab and made a new fstab listing.
    The boot partion of fstab reads:
    # /dev/sda1
    UUID=lots_of_alpha_numbers /boot ext4
    My questions:
    How do I know what options to add for the boot partition?
    Why would cause this not to show up?
    What options do I put for /boot - the same as / and /home (rq,relatime,data=ordered)?
    What order should the /boot partion load? All other installs it did root as 1, home as 2 and boot as 2.
    I have installed Arch Linux successfully at least 5 times and never had this issue. So I am wondering If manually adding this is covering up a bigger problem.
    Last edited by AcousticBruce (2015-05-18 17:11:22)

    I want to make clear what happened. Because I made the same mistake again, it dawned on me what is happeneing.. I went back to the wiki and found that it was there all along.
    After creating the partitons I made 2 directories.
    # mkdir -p /mnt/boot
    # mkdir -p /mnt/home
    And here is where MY mistake was...
    # mount /dev/sda1 /mnt/boot
    # mount /dev/sda4 /mnt/home
    # mount /dev/sda2 /mnt
    What happened,  because of the ORDER that I mounted, the mount points of /mnt/boot and /mnt/home were comprimized and because they are subdirectories of /mnt. I got careless because I was getting good at installing Arch without the wiki and because I did not understand a fundemental of the system it was messed up.
    I went back after I figured out my problem and saw that the mount and partitons wiki was useful and would have prevented if I was a bit more observent.
    It clearly states: "The / (root) partition must be mounted first: this is because any directories such as /boot or /home that have separate partitions will have to be created in the root file system. The /mnt directory of the live system will be used to mount the root partition, and consequently all the other partitions will stem from there. If the root partition's name is sdxR, do: 
    This was a good learning experience for me.

  • IChat 5.0.3 does not connet XML error 9

    Hey Together,
    I've got the problem if I try to connect to my jabber-server I get short a connection but it disconnect promptly.
    Now I have search for a log file if found the log in the console there stands these wen I try to connect:
    15.08.10 12:39:24 iChatAgent[23997] [Warning] Fatal error 9 parsing Jabber XML stream: xmlParseCharRef: invalid xmlChar value 0
    15.08.10 12:39:24 iChatAgent[23997] [Warning] XMLStream: XML error 9 parsing text: <presence to="[email protected]" from="[email protected]"><x xmlns="vcard-temp:x:update"><photo><![CDATA[845ade207e1b4b74fa0ec406a41ffb9b6ba 0ae4b]]></photo><hash><![CDATA[845ade207e1b4b74fa0ec406a41ffb9b6ba0ae4b]]></hash ></x></presence><presence to="[email protected]" from="[email protected]"><x xmlns="vcard-temp:x:update"><photo><![CDATA[43ceefb1dae1bdc0a23b68304641b79c03e 34d7f]]></photo><hash><![CDATA[43ceefb1dae1bdc0a23b68304641b79c03e34d7f]]></hash ></x></presence><presence to="[email protected]" from="[email protected]"><x xmlns="vcard-temp:x:update"><photo><![CDATA[a41c14138f7d3247b39843ca409918dd263 76d9d]]></photo><hash><![CDATA[a41c14138f7d3247b39843ca409918dd26376d9d]]></hash ></x></presence><presence to="[email protected]" from="[email protected]"><status>Available - check out http://digsby.com/icq&#0;&#1;&#0;&#5;utf-8&#0;&#14;&#0;&#0;</status><x xmlns="vcard-temp:x:update"><photo><![CDATA[5e57aa46c9dfb42b4f6216a929335c237ea 5c0c2]]></photo><hash><![CDATA[5e57aa46c9dfb42b4f6216a929335c237ea5c0c2]]></hash ></x></presence>
    15.08.10 12:39:24 iChatAgent[23997] [Warning] JConnection: Error: Error Domain=LibXML2ErrorDomain Code=9 "Der Vorgang konnte nicht abgeschlossen werden. (LibXML2ErrorDomain-Fehler 9.)"
    If somebody know how to fix these problem please help me!!!
    Thanks for it kind regards
    Matthias Bluthardt

    Hi,
    Welcome to the    Discussions
    AS the issue involves an iChat Server you would do better asking here for OS X Server 10.6 http://discussions.apple.com/forum.jspa?forumID=1352 (iChat Server stuff under the Collaboration Forum)
    Or here http://discussions.apple.com/forum.jspa?forumID=1235 a specific iChat Server Forum under OS X server 10.5
    Most likely it will be a DNS issue between client and the Host Server (The DNS settings for the iChat Server)
    8:21 PM Sunday; August 15, 2010
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"

  • Z77a-gd65 debug 60 - does not output video, keyboard and mouse don't light up

    Hello guys!
    I've had this motherboard since August 2012. It worked great until my street suffered from a power outage yesterday, and since it came back on I can't figure out what exactly is wrong with my mobo.
    The power up process occurs fine until debug code 60 shows up, then nothing else happens. There's no video, my Mouse and Keyboard lights stay off, but all the 8 CPU phase leds are on, DrMos_Alarm led is off, and it doesn't reboot by itself.
    I also didn't find debug code 60 on the manual. There's 63-67, 69-6F, but nothing about 60. I know i'm reading it from the correct perspective, because a bunch of other codes such as 4F appear before 60. I can't tell exactly which code comes right before 60 because it flashes at least 3 other codes very quickly.
    I've tried the clear CMoS button (with the system off), I've tried removing the CMoS battery and using a jumper on JBAT1 to clear CMoS, I've tried the multi-bios switch. Nothing changed.
    All the fans in my rig seem to function fine, including the CPU (connected in the CPU_FAN1) and GPU fans. I've also taken voltage measurements:
    VCCP = 1.264V
    CPU_VTT = 1.054V
    CPU_GFX = 0.03V (this seemed a tad low, should I be worried? This was taken without any dedicated graphics cards in the mobo)
    VCC_DDR = 1.513V
    PCH_1P05 = 1.056V
    Could you guys give me any advice?
    Other information:
    Mouse - Razer Abyssus 1800
    Keyboard - Razer Cyclosa
    PSU - Corsair TX v2 750W
    CPU - Core i5 3570K
    Memory - Patriot Viper 3 @ 1866Mhz (1.5V) (XMP settings)

    Quote from: badboy2k on 12-October-14, 00:37:00
    both 4F and 60 are DXE error codes (Pre-OS BIOS drivers that allow components to function before it has Software drivers)
    if you have more then one memory module in the board try each individually and see if one of the sticks have failed or if you have some other DDR3 RAM try that?
    Thanks for your reply. Here's what I did:
    1) Removed each stick individually. Both of them caused the system to lock up at debug code 60 again.
    2) Removed both sticks and tried two Kingston 1333mhz 2gb sticks from another machine (so, 4gb total, the patriots are 2x8gb). This caused a "loop" in the debug led where a bunch of different codes cycled very quickly, followed by "4F" where it stayed for about 2 seconds, then the cycle would begin again. I let the cycle run about a dozen times, then it moved to 63 and "hanged". The keyboard did not lit up, nor there was any video.
    3) Removed the two kingston sticks and inserted them in different slots. The cycle between different codes followed by a pause after 4F happened again, but this time it didn't move on to 63, not even after it repeated for a couple dozen times.
    4) Removed the two kingston sticks and tried a third kingston stick (2gb, 1333mhz) that hasn't been in use for a few months. This time, only the first CPU Phase led lit up (not the DrMos alarm led) and the debug led didn't show anything. I powered off the system and put in the Patriots again. No debug code, only 1st CPU phase led is lit up.
    Is it safe to assume that the mobo is damaged? Is there anything I can do to make sure at least the CPU is okay? It would suck to buy a new mobo and find out I need a new CPU as well, I'd rather move on to haswell if that's the case.

Maybe you are looking for

  • How to use different report viewers (in code)

    When I login to CMC, I can change my default view format to 1. Web 2. Web ActiveX 3. Web Java Could I do the same in VS2005 code? If so I would like to see some sample codes. Any help is greatly appreciated.

  • EbXML Quality of Service Configuration

    Hi, Where can I find some good practice on the reliable messaging configuration for ebXML messages. I am looking for some recommanded values for Retry Count, Retry delay when OnceAndOnlyOnce QOS is configured. Thanks for any support. Regards, Hatim

  • Python, distutils, data_files - Yay! I know where my data files are.

    After a long and painful research i have finally found usable way to make distutils propagate location of data files to installed application. Python's distutils allow user to specify location for data_files but there's no standard way to acess them.

  • Beyond the Basics Training?

    I have been using iMovie for the past 3 or 4 years and know the basics of how things work. iMovie 11 has most of the same features as the older versions and some nifty new stuff, as well. I want to learn more about iMovie than just the basics, but ha

  • Forms 11G Builder crashes when opening ofgcall65.pll

    Helllo, when i try to open the library ofgcall65.pll in Forms11 Builder is crashes. Also compiling crahses. Does someone know what the problem is??