[Digester] Problem using recursion in xml rule file

Hi!
I am trying to parse an XML file using digester but getting a problem. The file has a recursive tag. The format of the file given below:
<dpr-domain name="AircraftPerformances">
          <dpr-data-category name="AircraftClass" systemOption="FULLOLDI">
               <dpr-attribute name="landingSpeed" systemOption="HALFOLDI"/>
               <dpr-data-category name="holdingParameters" systemOption="HALFOLDI">
                    <dpr-attribute name="maximumspeed1" systemOption="FULLOLDI"/>
               </dpr-data-category>
               <dpr-data-category name="turnRate" systemOption="FULLOLDI,HALFOLDI">
                    <dpr-attribute name="maximumspeed2" systemOption="FULLOLDI"/>
                    <dpr-data-category name="accelerateRate" systemOption="HALFOLDI">
                         <dpr-attribute name="maximumspeed21" systemOption="FULLOLDI"/>
                         <dpr-data-category name="descendRate" systemOption="HALFOLDI">
                              <dpr-attribute name="maximumspeed211" systemOption="FULLOLDI"/>
                         </dpr-data-category>
                    </dpr-data-category>
               </dpr-data-category>
          </dpr-data-category>
</dpr-domain>
The rule file I have written for this is:
<digester-rules>
     <pattern value="dpr-domain">
     <object-create-rule classname="check.Domain"/>
          <pattern value="*/dpr-data-category">
               <object-create-rule classname="check.DataCategory"/>
               <set-properties-rule/>
               <pattern value="dpr-attribute">
                    <object-create-rule classname="check.Attribute"/>
                    <set-properties-rule/>
                    <set-next-rule methodname="addAttributes" />
               </pattern>
               <set-next-rule methodname="addDataCategory" paramtype="check.DataCategory"/>          
          </pattern>
          </pattern>     
</digester-rules>
But this is not working. If the "dpr-domain" tag is removed, then it works. Please help me by giving a solution for this problem.
Regards,
Arshika

For this scenario,
First I have used FCC for the same structure and CSV is also generated, but the CSV when opened with NOTEPAD it is not showing endSeparator , i.e my first row last element is concatenated with second row first element,there is no row seperator.
But the same when opened with WordPad,we can see the data, row wise
now the destination system open the file in notepad only.
for that i tried using this Bean specified above but it is not fulfilling the requirement.
The parameters I have mentioned in FCC are as follows:
Recordset Structure : E1WBB01,E1WBB03,EAN_MASTER
NAME                                      VALUE
EAN_MASTER.fieldSeparator     ,   (comma)
EAN_MASTER.endSeparator     'nl'
E1WBB03.fieldSeparator            ,
E1WBB03.endSeparator             'nl'
E1WBB01.fieldSeparator            ,
E1WBB01.endSeparator             'nl'
Please provide a solution,why thr endSeparator is not shown in notepad.
Thanks

Similar Messages

  • I have been buying apps for a long time  without a problem using my credit card on file. All of a sudden itunes is not recognizing my card which is in good standing. All the info is correct but itunes/apple says it doesn't  match the bank info. Any ideas

    I have been buying apps for a long time  without a problem using my credit card on file. All of a sudden itunes is not recognizing my card which is in good standing. All the info is correct but itunes/apple says it doesn't  match the bank info. Any ideas?

    Answered in your Other post on this Topic...
    https://discussions.apple.com/message/24053626#24053626

  • Problem using namespace of XML docs gerenrated by  XMLForm

    Hi community!
    I am facing a problem using namespace within a XSL stylsheet. Let me describe my problem:
    I am using the SAP XMLFormsBuilder within the SAP EnterprisePortal in order to provide a HTML based form for creating and editing specific XML documents. The data in the generated documents is finally presented as HTML using XSL Transformation.
    In the XMLFormsBuilder you define the Schema of the XML document and the HTML GUI of the form. The Schema document looks like below (extract):
    <?xml version="1.0" encoding="utf-8"?>
    <schema targetNamespace="http://www.xmlspy.com/schemas/orgchart"
            xmlns="http://www.w3.org/2001/XMLSchema"
            xmlns:xyz="http://www.xmlspy.com/schemas/orgchart" Version="6.3.0">
      <element name="commodity"
               default=""
               minOccurs="1"
               maxOccurs="1"
               ns="p2p"
               xmlns:p2p="http://www.portal.p2p.com">
        <complexType>
          <sequence>
            <element name="administrative_information"
                     default=""
                     minOccurs="1"
                     maxOccurs="1"
                     ns="p2p">
              <complexType>
                <sequence>
                  <element name="creation_date"
                           default=""
                           minOccurs="1"
                           maxOccurs="1"
                           type="date"
                           ns="p2p"/>
    As far as I understand, each element defined in the Schama belongs to the namespace "p2p" and this is exactly what I want.
    The XML document generated by the form looks like below (extract):
    <?xml version="1.0" encoding="UTF-8"?>
    <?xml-stylesheet type="text/xsl" href="show_card.xsl"?>
    <commodity xmlns:xf="http://www.sapportals.com/wcm/app/xmlforms"
               xmlns:xsi="http//www.w3.org/2001/XMLSchema-instance"
               xsi:noNamespaceSchemaLocation="/etc/xmlforms/P2PCategoryCard_TEST/P2PCategoryCard_TEST-Schema.xml">
      <administrative_information>
        <creation_date>2005-07-04</creation_date>
    Consequently, the file "show_card.xsl" is the responsible XSLT stylesheet, which looks like this:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <xsl:stylesheet version="1.0"
                    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                    xmlns:p2p="http://www.portal.p2p.com">
      <xsl:output method="html"/>
      <xsl:template match="p2p:commodity">
        <html>
        <body>
          <h2>XSLT Test</h2>
          Creation Date: <xsl:value-of select="p2p:administrative_information/p2p:creation_date"/>
        </body>
        </html>
      </xsl:template>
    </xsl:stylesheet>
    The problem in the XSLT stylesheet is, that I want to access the XML document elements using their namespace. And this is exactly what does not work for me. On the other hand, if I remove the reference to the namespace:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <xsl:stylesheet version="1.0"
                    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                    xmlns:p2p="http://www.portal.p2p.com">
      <xsl:output method="html"/>
      <xsl:template match="commodity">
        <html>
        <body>
          <h2>XSLT Test</h2>
          Creation Date: <xsl:value-of select="administrative_information/creation_date"/>
        </body>
        </html>
      </xsl:template>
    </xsl:stylesheet>
    the stylesheet works fine, but for some technical reasons, which I don't want to explain here, I have to use the namespace when accessing the XML document elements.
    For technical reasons, I cannot change the format of the Schema document and also cannot change the format of the generated XML document. The only file I can change and control is the XSLT stylsheet.
    My question is now, in the case described above, if there is any way to use the namespace in the sytlesheet when accessing the XML elements?
    Any help is appreciated.
    Cheers,
    Adam Kreuschner

    duggal.ashish wrote:
    3. Some XML files contain a "iso-8859-1" character with character code 146 which appears like apostrophes but actually it is : - &#146; and the problem is that words like can&#146;t are shown as can?t by database.http://en.wikipedia.org/wiki/ISO8859-1
    Scroll down in that page and you'll see that the character code 146 -- which would be 92 in hexadecimal -- is in the "unused" area of ISO8859-1. I don't know where you got the idea that it represents some kind of apostrophe-like character but it doesn't.
    Edit: Actually, I do know where you got that idea. You got it from Windows-1252:
    http://en.wikipedia.org/wiki/Windows-1252
    Not the same charset at all.

  • Should I use .INI or .XML config files on cRIO?

    I'm looking to make a configuration file for an application running on a cRIO-9022. It will contain a small amount of configuration data (like numeric offsets, file paths, and IP addresses). I have 2 questions:
    1) Which file format should I use (.ini or .xml)? I have used .INI in the past because it is human readable/configurable with notepad, but it seems like .xml is becoming the new standard
    2) I would like to be able to modify config parameters on the PC that connects to the cRIO. What is the best way to modify the config file if it is stored on the cRIO hard disk (FTP the file to PC, make changes, FTP back? Network Streams?)
    --CLD--
    LV 6.1, 8.6.1, 2011 SP1, 2012 SP1

    JimMacD wrote:
    Thanks for the info.
    Any clever ways of accessing and changing the Config File data from a LV application running on a PC that doesn't require manually editing the file? I want the operator to just be able to click a button that says "cRIO Config", open a dialog, and change the values from there.
    uhm.... Yes!
    In This Post I show a bit of my hand on just exactly what I keep in a ini.config file (wel,l 1 section of a config file)  It would be nearly idiotic of me to not provide a Config editer since there are numerous Enum type defs in the delimited value for each key.  so since I, as the developer, know what sections (and possibly keys) are there I can read the file and load them to indicators on a config editor GUI.
    I've actually done this two ways-
    1) a seperate app that only "admin Engineers" know the location of "Launch Config editor.exe.
    2) In the application referanced above I have a button that opens a MODAL panel to edit the file (remember- I know what is in the file).   Users need permissions (Users- Passwords and permissions are kept in a config file, of course!) to even display the "Edit Sequence" button. but the "super user" can edit the step parameters. 
    HINT: one of these "Steps" loads a xml file to expose telnet commands and config for the uP on the DUT.   I expect the firmware on the Linux DUT will change in the future and did not want to rebuild my app whenever a typo was fixed in a command line tool.  BUT, since there are "special characters" that do not fit nicely into a .ini I exposed the telnet commands and line ends IP address and the login script  in a xml file.
    I know this did not directly answer your question!  but It should provide some food for thought.
    If you can share your data structure- I can be more specific. 
    Jeff

  • Using environment variable in rule file

    Hi,
    I want to datacopy from one cube (scenario Forecast) to another (scenario FcstJan, FcstFeb, and so on) based on which month is running currently. I want to use environment variable in the rule file. The Forecast data will be extracted in .txt and will be imported to the second cube in FcstJan if current month is Jan and same for Feb, Mar..... The CurrentMth will be my env variable.
    Can anyone please let me know how I can use that variable in the rule file. Or, if there is any other way to load the same.
    Thanks.

    You could just set a substitution variable and then use the substitution variable in the header of the rule.
    Have a read of :- Re: Data error
    to understand about using substitution variables in the header of a rule file.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • How to see the SQL used in an existing Rule file?

    Hi,
    Is there a way to see the SQL used in the rule file defn of any existing rule file which retrieves data from a RDMS?
    Appreciate your thoughts.
    Thanks.

    Sure.
    In EAS open up the load rule in question, then select the menu item "File"-"Open SQL".
    Robert

  • How do I add ad use my Autounattend.xml answer file to a blank VFD file that I have created in hyper V?

    Hi,
    I have Windows 8.1 & Hyper V.
    I have created a new Virtual Machine and hardrive.  I want to install the W7 Enterprise 64bit ISO OS in conjunction with the Answer file I have created and saved as Autounattend.xml using a Virtual Floppy Disk.  
    I have created a new VFD but I simply do not know how to add the Autounattend.xml file to the VFD?
    Thank you.
    Paul.

    Hi Paul,
    Has the problem been solved ?
    Best Regards
    Elton Ji
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Problem using Resource Bundle in XSLT File

    Hi All,
    I've been trying to use Resource Bundle on my XSLT file with no success for the last 2 weeks. So I would like some help to definitely end this problem.
    The fact is that i have a property file that i would like to read and it works fine when i use jsp or a servlet however when i try to call the same property file using my XSL i get the message below:
    java.util.MissingResourceException: Can't find bundle for base name thoth, locale en_US
    Follow the code from my Stylesheet that i'm calling the resource bundle:
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:java="java.util.ResourceBundle" exclude-result-prefixes="java" version="1.0">
    <xsl:strip-space elements="*"/>
    <xsl:output method="html" indent="yes" version="4.0"/>
    <xsl:output encoding="ISO-8859-1"/>
    <xsl:template match="page">
    <html>
    <body>
    <xsl:apply-templates select="paragraph"/>
    <xsl:variable name="resources" select="java:getBundle('thoth')"/>
    <xsl:value-of select="java:getString($resources,'general.title')"/>
    </body>
    </html>
    </xsl:template>
    </xsl:stylesheet>
    Please someone could help me why this file cannot be located, I am 100% of sure the property file path is in my classpath since it works fine in a servlet. Should i have to put it some other place? Do i have some other way to read this file and show the information from the file?
    I would appreciate any help
    thanks in advance and Regards
    Fabio

    Please someone could help me why this file cannot be located, I am 100% of sure the property file path is in my classpath since it works fine in a servlet.
    Is the property file in your classpath? or whether the directory where the property file is residing is in your classpath. Please put only the directory where the property file is located in the classpath and try again.
    It may be working fine with the servlet because j2ee servlet containers put the classes and lib directory automatically in the classpath therefore resource bundle gets loaded even without putting it explicitly in the classpath. This doesn't happen when you try to test some component from the console.
    Let me know if this does not work.
    regards,
    Abhishek.

  • Problem Using wlserver task in ant file

    I am trying to create a weblogic domain using the following in my ant file:
    <target name="new-server">
    <mkdir dir="/opt/deployment/domains" />
    <wlserver dir="/opt/deployment/domains"
    beahome="/opt/bea"
    domainname="SandboxDomain"
    servername="AdminServer"
    host="localhost" port="7001"
    generateConfig="true"
    username="weblogic" password="password"
    productionmodeenabled="false"
    action="start" failonerror="true" />
    </target>
    However, I keep getting the following exception:
    [wlserver] Exception in thread "main" java.lang.NoClassDefFoundError: weblogic/Server
    I am executing the ant script by placing the weblogic.jar file in the lib directory of ant. I am also using ant version 1.6.2. Any suggestions on how to remedy this problem would be appreciated.

    Hi,
    Had the same problem, try adding the classpath attribute to the wlserver tasks.
    example:
    <wlserver dir="${SERVER_DOMAINS}/test_domain"
    beahome="${SERVER_ROOT}"
    weblogichome="${SERVER_WEBLOGIC_HOME}"
    generateConfig="true"
    host="localhost"
    port="6001"
    username="${WEBLOGIC_USER}"
    password="${WEBLOGIC_PASSWORD}"
    servername="testServer"
    action="start"
    classpath="<wl_installdir>\server\lib\weblogic.jar">
    Regards,

  • Problem using af:inputfile when only file name is given without path.URGENT

    Hai Friends,
    I am using input file type and <h:commandLink to upload a file. But when I type only the file name without the path like(hello.jpg) and try to submit then a javascript error occured "Access is denied". But my requirement is when i type without the path, that is only the file name i need to do some validations, like appending a global path with this file name and upload the file... the following is the code am having...
    <af:form id="address" usesUpload="true" >
    <af:inputFile id="id" value="#{BKb.batchFile}"/>
    <h:commandLink action="#{.uploadFile}">
    <h:outputText value="Upload" styleClass="buttonNoDecoration"/>
    </h:commandLink>
    <h:commandLink action="#{BKb.clearFile}">
    </h:commandLink>
    </af:form>
    can u help me in this issue...
    Thanks in advance,
    Ciya

    I figured out the problem, and it was caused by JHeadstart. I placed a default display value in JHeadstart for the download link. This caused a default values bean to be created by jheadstart and that bean was what was causing my problem. The download link had a display value, but not a valid path. I removed the default value, re-generated the screen and it is totally fixed. I have pretty much decided that it is never a good idea to use a default value in Jheadstart.
    Thanks for your help,
    Michelle

  • Problem Using XMLAnonymizerBean module in Reciever File adapter.

    Hi All,
                 I am trying to use the XMLAnonymizerBean in orer to convert the encoding of my xml document from UTF8 to ISO. However when I configure the module the message goes into waiting status  with an exception saying.
    Exception caught by adapter framework: Object not found in lookup of XMLAnonymizerBean..
    I have configured the Module in the below manner...
    Module Name = AF_Modules/XMLAnonymizerBean
    Module Type = Local Enterprise Bean
    Under Configuration i Mention
    anonymizer.encoding = ISO-8859-1.
    is there any thing i am missing, I am on Xi 7.0 SP 08.
    Please help...

    Thaks for the pointer. Now I dont get any error however  i am not getting the desired o/p.
    I am trying to change the header of an xml file which I am trying to write from <?xml version="1.0" encoding="utf-8"?>  to <?xml version="1.0" encoding="iso-8859-1"?> , as per the  help doc this could be changed using the xmlAnonymizerBean.
    My output still shows utf-8, Any pointers on thiswould be really appreciated.
    Thank you.

  • Problem using email to upload image files to Mobile Me gallery

    I will cross post this question to both Mail and Mobile Me discussion groups because I don't know where my problem lies.
    I have published a gallery page from iPhoto to my Mobile Me gallery. There are two ways to upload additional photos. I am not having trouble adding image files with the Upload feature. I cannot get the email function to work. The emails I send to the email address for the gallery bounce back to my mail inbox.
    Subject: Delivery Notification: Delivery has failed
    and in the body of the bounced email:
    Recipient address: [email protected]
    Reason: SMTP transmission failure has occurred
    Diagnostic code: smtp;521 5.2.1 Fatal failure of WOA
    Remote system: dns;post.mac.com (TCP|10.150.69.91|51195|10.13.19.27|25) (mbin002.mac.com ESMTP [2.3.3/gso-r197-19Feb2007] ready to rumble)
    Original-envelope-id: [email protected]
    Reporting-MTA: dns;asmtp028-bge351000 (tcp-daemon)
    Original-recipient: rfc822;[email protected]
    Final-recipient: rfc822;[email protected]
    Action: failed
    Status: 5.2.1 (SMTP transmission failure has occurred)
    Remote-MTA: dns;post.mac.com (TCP|10.150.69.91|51195|10.13.19.27|25)
    (mbin002.mac.com ESMTP [2.3.3/gso-r197-19Feb2007] ready to rumble)
    Diagnostic-code: smtp;521 5.2.1 Fatal failure of WOA
    One of the images I am trying to attach is a jpeg file of 61 kb.
    I have tried to drag the image from my desktop to the body of the email. I have tried using the "attach" function and selecting the file name. I am not sending any text with these files.
    When I built these albums, I checked and enabled all the options.
    I am having this same issue when I try to upload via email to any of my Mobile Me gallery pages.
    There is currently one photo displayed here:
    http://gallery.me.com/tplattenberger#100352
    If anyone wishes to try to upload to that gallery using email (Send to Album) that would be great and if successful, that might provide a clue to my problem.
    As I say, I currently have one photo there. If you find a lot more, please do not add.
    What's the problem?
    Tom

    The images I am trying are newly created and old.
    A weird hint perhaps...
    I just copied an image from Apple's home page and pasted it into the email and tried again...
    it worked.
    So I tried again, dragging from iPhoto and it did not work... the email bounced back.
    So I tried again, this time using copy and paste (like I did from Apple's page) from iPhoto... it did not work.
    Tom

  • Parse problem using SOMSchema reading an .xsd file

              Platform: windowsXP, WLI2.1, WLS6.1sp1
              The following is extracted from a log of the sample WLI server.
              I used it as a platform for an adapter under development.
              The log shows an erronous SOMSchema after a failed creation of an application
              view.
              The cause is long before. During a parse of a schema.xsd from a file into a SOMSchema
              it loses a '/'.
              <xsd:element name="Value">
              <xsd:complexType>
              <xsd:complexContent>
              <xsd:extension base="xsd:complexType">
              <xsd:attribute name="col" use="required"/>
              <xsd:attribute name="row" use="required"/>
              </xsd:extension>
              --> <xsd:complexContent/>
              </xsd:complexType>
              </xsd:element>
              Of course I worked around by dropping the tag </xsd:complexContent/>. Without
              all parses allright.
              From the erronous SOMSchema you can derive valid DocumentRecords.
              For that reason I guess the problem is to be found in the schema package.
              

              Platform: windowsXP, WLI2.1, WLS6.1sp1
              The following is extracted from a log of the sample WLI server.
              I used it as a platform for an adapter under development.
              The log shows an erronous SOMSchema after a failed creation of an application
              view.
              The cause is long before. During a parse of a schema.xsd from a file into a SOMSchema
              it loses a '/'.
              <xsd:element name="Value">
              <xsd:complexType>
              <xsd:complexContent>
              <xsd:extension base="xsd:complexType">
              <xsd:attribute name="col" use="required"/>
              <xsd:attribute name="row" use="required"/>
              </xsd:extension>
              --> <xsd:complexContent/>
              </xsd:complexType>
              </xsd:element>
              Of course I worked around by dropping the tag </xsd:complexContent/>. Without
              all parses allright.
              From the erronous SOMSchema you can derive valid DocumentRecords.
              For that reason I guess the problem is to be found in the schema package.
              

  • Problem using payloadZipBean to unzip a file

    I would like to run OS command to zip large amount of xml into one zip file before XI pick it up, then use unzip option in payloadZipBean to unzip all the xml files so XI can process them one by one from memory, this will reduce lots file I/O time.
    But I am getting this warning message:
    Warning Zip: message is empty or has no payload
    But if I display this message in RWB, the only payload is this zip file.
    Why the payloadZipBean is not unzipping this file as supposed to.

    Did you check this blog
    /people/stefan.grube/blog/2007/02/20/working-with-the-payloadzipbean-module-of-the-xi-adapter-framework
    Sameer

  • Problem using Extract in xml

    My problem,
    declare
    v_clob clob;
    begin
    select extract(xml_details,'/ROWSET/ROW/CTRY_CODE').getStringVal() into v_clob from xml_tab where xml_name='GRN.XML';
    end;
    xml_tab description
    column
    xml_details clob
    xml_name VARCHAR2(2000)
    This block works fine for smaller xmls...but not working for large xmls.Clob can store a very large xml but using getStringVal() it cannot return large string size,how could i get large xml values from a xml.
    Error shown: ORA-06502-String size too small

    Hi,
    you can use .getClobVal()
    Ants

Maybe you are looking for

  • Each time I open this I get a message that pops up and says

      I get the below message from the first time I open the program since I have installed it electronically. Adobe Premiere Elements.exc – No Disk There is no disk in the drive. Please insert a disk into drive E. Cancel                   Try Again     

  • JavaME SDK 3.0.5 not launching on Windows 7 64 bit OS using JDK 1.6.0_27 x8

    I installed JavaME SDK 3.0.5 on top of JavaME SDK 3.0 without uninstalling it at C:\Java_ME_platform_SDK_3.0.5 on Windows 7 64 bit OS using jdk1.6.0_27 x86. The installation went fine but i am not getting any shortcuts to launch JavaME SDK 3.0.5. No

  • Is there ANYONE who has not had a problem with the 10.4.10 upgrade?

    Just bought Ilife and it requires 10.4.9. I'm using 10.4.8. I can't seem to find any post with positive results. Is 10.4.10 that bad. Sorry is this is a double post. I did this about an hour ago and it never showed up. Thanks Bob

  • IPod freezes iTunes

    iTunes is fine w/o the ipod. iPod is fine w/o itunes (as a drive). Two other ipods ok w/itunes, but not my 120G classic. I just got it, and cannot do anything w/it. itunes ok till I plug in my 120g then it hangs and the only way out is to shut down m

  • Maximum count of messages, and average/Max size of the messages for a retry

    I like to know what will be the maximum count of messages, Average/Max size of the messages that a retry queue can handle andhow it's is handled in OSB/Admin console and also the CPU and other Infra Structure requirements to support this scenario