Variable Conversion to XML

Using: FM 8.0
I am exporting a structured fm file as XML and trying to setup my read/right (rw) rules to eliminate the characters that are placed around each variable when exported.
When I export a fm file as XML the words that were set as a variable within Framemaker are export with a preceding & and a trailing ;
For example if the word Cardboard is set as a fm variable, it appears like this when exported as XML:
&Cardboard;
Is there a r/w rule that would strip the “&” and the “;” away from these words during the export process?
Thanks in advance for everyone’s help.

Russ, thanks for your response.
I did fail to mention that the following line was also generated in the XML file:
<!-- Begin Document Specific Declarations -->
<!ENTITY Cardboard " Cardboard Box">
<!-- End Document Specific Declarations -->
Sorry about that.
I wanted to keep my XML file as clean as possible without declaring Entities, unfortunately it appears that there is no easy way to suppress this using r/w rules.
Thanks again for your help.

Similar Messages

  • How to manage variable conversion factor in UOM to order unit

    Hi,
    We have a material whose base unit is PC unit price is 8 Euro / PC
    Order unit is Box now we do not have a standard conversion factor.
    Means sometimes vendor send 8 pc/ Box ,10 pc /Box and 12 pc /Box
    so when we create Material master and enter order unit as Box in purchasing view system ask for conversion rate
    if we do not enter any the value in PC field its taking 1 Box =1 PC as default.
    Example: Now while creating PO say we order for 10 box.(at this point we do not know exact conversion rate)
    and in the conditions we maintain price against PC .system calculate.
    Now when we receive the material then we actually know how much QTy we receive in SKU (PC) but that field is blur (no input) in 101 mvt type.
    One more thing In MIGO we can enter the Qty in PO Price Unit say we enter 80 PC
    system only creates stock value posting (80 * 8 =640 Euro ) but the stock qty in MMBE is still 10 piece ( from 1:1 conversion with box)
    Please suggest how we can handle this variable conversion rate.
    So that we can enter correct Qty in the time of GR ( MIGO ).
    Thanks in advance.

    Hi,
    Thanks for the valuable  Input.
    For our material base unit is PC order unit is Box.
    Say we main a conversion factor 10 PC =1 Box ( a default value) in MM01
    And we order 10 Box. but when we receive we found that vendor send 12 pc per Box so total 120 pc
    [ Po price unit is in PC in condition details]
    Now in MIGO we cannot modify that Qty ( from 100 to 120 in PC)
    SO you are suggesting here we receive 12 box in MIGO. so that actual qty in PC is correct..
    Thanks again

  • Saving user variable data in XML file

    I am using Captivate 5.5. Can I save user variable data of several variables on an XML file ?

    Can be done with Javascript, have a look at the Javascript articles by Jim Leichliter, here is one link:
    Retrieve variables in Captivate
    Lilybiri

  • Using Variable in Web.xml/ Override value in web.xml

    Environment : JBOSS 4.2 / Web application in java/jsp
    *==============================================================*
    Iam using a servelet in application, and paremeters is configured in web.xml at run time I need to change the value. A variable
    see web.xml
    {color:#ff0000}<param-value>C:/FILE_ATTACHMENTS{color}</param-value>
    Instead of using a static folder name I need to use a variable, this veriable either i define in config.properties or ineed to pass through application
    Web.Xml file
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app id="WebApp_ID" version="2.4" xmlns="[http://java.sun.com/xml/ns/j2ee]" xmlns:xsi="[http://www.w3.org/2001/XMLSchema-instance]" xsi:schemaLocation="[http://java.sun.com/xml/ns/j2ee] [http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd]">
    <display-name>VyasaWeb</display-name>
    <servlet>
    <servlet-name>VyasaServlet</servlet-name>
    <servlet-class>com.jsos.download.VyasaServlet</servlet-class>
    <init-param>
    <param-name>dir</param-name>
    param-value>C:/FILE_ATTACHMENTS</param-value>
    </init-param>
    </servlet>
    <servlet-mapping>
    <servlet-name>VyasaServlet</servlet-name>
    <url-pattern>/servlet/VyasaServlet</url-pattern>
    </servlet-mapping>
    </web-app>
    Is any way to use variable in web.xml or override the value ?
    Please help
    Vince
    Edited by: VINCEJOHNSON on Jul 30, 2010 3:30 PM

    If nothing else, why not just have your servlet load a configuration file on startup?

  • Use of variables in "FOR XML PATH"

    Other than using dynamic sql (which we don't want to use) is there a way to use a variable in For XML Path, e.g.
    select
    FOR XML PATH (@BookName), ROOT('Book'), TYPE
    TIA,
    edm2

    In terms of general XML design this is poor.  An element is normally a 'thing', and the attributes are normally the properties of that thing.  Therefore in your case you would have a Book property with a 'name' attribute.  It would be impossible
    to create an XSD for your xml, and makes it awkward for readers of your xml - how do they know the book name beforehand?  Creating this xml in the normal fashion would also make it easy to create without any messing around ( string manipulation,
    other hacks ), eg
    DECLARE @BookName NVARCHAR(20) = 'SomeBook'
    SELECT
    @BookName "@name"
    -- Other book attributes
    FOR XML PATH ('Book'), ROOT('Books'), TYPE
    So now you have a Book item(s) within a Books collection.  Easy!  : )

  • Adding environment variable in build.xml(ANT)

    Hi,
    I need some information Regarding ANT,
    the problem is i have to add a property file in build.xml (as a environment varialble) so that i can read it in my java code. as
    System.getProperty("").
    Please sugggest me how to set environment variable in build.xml(ANT)
    Thanks
    Edited by: fdfddf on Apr 7, 2008 3:20 PM

    Hi Jakain, yep thanks for your information but my manager wants that way to do..
    he wanted me to set property file as a environment file using build.xml as this property file changes dynamically..
    can you suggest me

  • Modifying variables of type XML at runtime.

    Greetings,
    Here is the situation I am facing. A workflow is triggered by an incoming XML
    event. After some processing, a portion of the xml document that triggered the
    event must be modified and the newly modified document is then dumped onto a JMS
    queue.
    For the life of me, I cannot figure out how to modify part of the xml message
    once I have it in a variable of type xml. Any suggestions?
    Thanks in advance,
    -Matt

    ok I think I need the cast as out.println does not support printing of an object.
    Im sorry if it seems like a stupid question, using the reflection API is the most advanced thing I have done so far and this is my first year of work, I do find some of the concepts confusing.

  • Possible to reference a session variable in customMessages.xml?

    In customMessages.xml, I put in this code:
    <!--Allow user to change password -->
    <WebMessage name="kmsgChangePasswordLink">
    <HTML>
    <a href="http://www.somelink.com?someThingToPass=BISessionVariable">Change Password</a>
    </HTML>
    </WebMessage>Is there a way to reference a BI session variable within customMessages.xml somehow?

    John,
    You make a good point. So I can't do this in customMessages.xml... can I make a change somewhere else that would accomplish this? Basically I want to be able to bring in the content of a session variable into the 'My Account' page. Does anyone know if this can be done?

  • Unable to display a variable value in xml through xsl using coldfusion

    Hi ColdFusion Heroes ,
    Is their any one to help me in this issue . I am new to cold
    fusion , XML and XSL .
    Detail Explaination :
    develoment_files.cfm is a .cfm page , which includes an xml
    page .
    development_files_dropdown.xsl is a xsl page .
    develoment_files.cfm : Code is as follows .
    <CFDIRECTORY ACTION="LIST" DIRECTORY="#somepath#"
    NAME="DirContents" FILTER="p*">
    <CFQUERY DBTYPE="query" NAME="Files">
    SELECT *
    FROM DirContents
    WHERE Type = 'File'
    </CFQUERY>
    <CFOUTPUT><?xml version='1.0' encoding='UTF-8'?>
    <?xml-stylesheet type="text/xsl"
    href="../XSL/development_files_dropdown.xsl"?>
    <Test xmlns:xsi='
    http://www.w3.org/2001/XMLSchema-instance'>
    <CFLOOP QUERY="Files">
    <Directory>
    <DisplayName>#Name#</DisplayName>
    <FullPath>#Name#</FullPath>
    </Directory>
    </cfloop>
    </Test></CFOUTPUT>
    This file generates a query resulting files starting with p*
    and then it should be a file and manipulates in xml.
    development_files_dropdown.xsl pages is as follows.
    <?xml version='1.0'?>
    <xsl:stylesheet version="1.0" xmlns:xsl="
    http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="html" indent="yes"/>
    <xsl:preserve-space elements="*"/>
    <xsl:template match="/">
    <xsl:apply-templates/>
    </xsl:template>
    <xsl:template match="Test">
    <B>Script Name: </B>
    <select name="T1_Dev_Script" CLASS="DevInput">
    <xsl:for-each select="Directory">
    <option>
    <xsl:attribute name="value">
    <xsl:value-of select="FullPath/text()"/>
    </xsl:attribute>
    <xsl:value-of select="DisplayName/text()"/>
    </option>
    </xsl:for-each>
    </select>
    </xsl:template>
    </xsl:stylesheet>
    This is only for the purpose of display .
    Now i want to get one particular file named "pfile" { Code is
    written in development_files.cfm page and kept it in a variable } I
    want to display it in #Name# filed. how can i do that ? I am
    getting XML Parsing error from javascript .
    Could any one look into this .
    Thanks & Regards,
    Nataraj G

    The first part is right -
    1) drag a text element onto the page, at a location in which you want the variable value to be displayed
    2) On the left hand bottom page - go to the web item properties for the text element
    3) scroll down to the specific properties for the item - in that uncheck the first two check boxes - display general text elements & display static filter values
    4) in the next item in the properties (List of text elements) click once on the box where List is written and then clcik on the small browse button that appears.
    5) in the window that opens, in the element type field, select variable/variable value as key (as per your requirement) and then under the element ID field type in the technical name of your variable that you want to display.
    click ok and save your template and try executing it.
    See if this solves your problem.
    regards,
    Nikhil

  • Pass a variable from an XML to a Javascrip

    Aloha Everyone,
    What do I make wrong?
    Maybe it is just a sintax failure and maybe... . How can I
    pass a value to a javascript witch is loads a php code to generate
    the text on the button witch is the src of an <img> tag. The
    value of @id doesn't reaches the PHP file and the problem is in
    spry:region="dsmenus" is a special definition needed to pass the
    variables in such a region to a javacript, if so then how to do it
    if not than also please help if any of you can!
    Here is the code:
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    UTF-8">
    <script src="xpath.js"
    type="text/javascript"></script>
    <script src="SpryData.js"
    type="text/javascript"></script>
    <script type="text/javascript">
    var dsmenus = new Spry.Data.XMLDataSet("menus.xml",
    "menuelements/menuelement");
    </script>
    <script language="javascript" type="text/javascript">
    var textid = new string;
    function mouseOutImage(textid)
    document.getElementById("phbutton").src =
    "button2.php?text="+textid;
    function mouseOverImage(textid)
    document.getElementById("phbutton").src =
    "button.php?text="+textid;
    </script>
    </head>
    <body>
    <div spry:region="dsmenus"
    spry:repeatchildren="dsmenus">
    <img id="phbutton" spry:setrow="dsmenus"
    src="button2.php?text={@id}&amp;x={x}"
    onmouseover="mouseOverImage('{id}');"
    onmouseout="mouseOutImage('{id}');"
    onmouseenter="mouseOverImage('{id}');"
    onmouseleave="mouseOutImage('{id}');">
    <a href="button2.php?text={@id}">{@id}</a>
    </div>
    <div>
    <p name=log>
    </div>
    </body>
    </html>
    Thank You in advance!

    Sorry for spamming i just realized what do i make wrong after
    3 hours of programig.
    ..({id'} has a missing @ mark :)

  • Problem in file content conversion from XML to CSV

    Hi Experts,
    I am finding problem in file content conversion. I need to convert the following XML file into CSV file:
      <?xml version="1.0" encoding="UTF-8" ?>
    - <ns0:MT_CROSS_REF xmlns:ns0="urn:dabur:idoc2file:pos">
          <Update_type>2</Update_type>
          <PLU>00000000</PLU>
          <Cross_ref_PLU>7777777</Cross_ref_PLU>
          <Capture_PLU />
          <Package_size />
          <Package_desc />
      </ns0:MT_CROSS_REF>
    The output file data has to be like:
    2,00000000,7777777,,,,
    The problem I am facing is while specifying the content conversion parameters in communication channel i dont know what recordset structure i should mention as all the records are directly under root. If I mention recordset structure as "ns0:MT_CROSS_REF" and parameters as
    ns0:MT_CROSS_REF.fieldSeparator   ,
    ns0:MT_CROSS_REF.endSeparator    'nl'
    i get error in communication channel monitoring and no file is posted.
    Please help me as to what correct parameter i should mention in my case.
    Thanks,
    Regards,
    Yash

    Hi Chirag,
    I cannot change the xml file as it comes after mapping idoc to a message type. How can I add ROOT in the xml? My message type is like MT_CROSS_REF and it has those 6 fields as in the XML (Update_type, PLU etc.). I do the mapping of these fields from a IDOC and get the XML.
    I hope you got my point.
    Thanks,
    Yash

  • Conversion of XML file in Noepad

    Hi Folks,
    i have a requiremnt like sending .TXT file and output is .XML.
    when i open the file in internet explorer i Got right output. when open the same file in notepad the file is look like below
    <?xml version="1.0" encoding="UTF-8"?>
    <EDS_PII_XML><Header><FILE_DATE></FILE_DATE></Header><Employee><EMPLID>010203</EMPLID><LAST_NAME>PUBLIC</LAST_NAME><FIRST_NAME>JOHN</FIRST_NAME><Deductions><DEDUCTION_CODE>HM</DEDUCTION_CODE><RECORD_TYPE>A</RECORD_TYPE><BEGIN_DT>2009-01-01</BEGIN_DT><END_DT></END_DT><PRE_TAX_COST>33.48</PRE_TAX_COST><AFTER_TAX_COST>0.00</AFTER_TAX_COST><OPTION>KAHI</OPTION><COVERAGE_LEVEL>EF</COVERAGE_LEVEL><IMPUTED_INCOME>0.00
    but i need the file like below:
    <?xml version="1.0" encoding="UTF-8"?>
    <EDS_PII_XML>
    <Header>
    <FILE_DATE></FILE_DATE>
    </Header>
         <Employee>
              <EMPLID>010203</EMPLID>
              <LAST_NAME>PUBLIC</LAST_NAME>
              <FIRST_NAME>JOHN</FIRST_NAME>
              <Deductions>
                   <DEDUCTION_CODE>HM</DEDUCTION_CODE>
                   <RECORD_TYPE>A</RECORD_TYPE>
                   <BEGIN_DT>2009-01-01</BEGIN_DT>
                   <END_DT/>
                   <PRE_TAX_COST>33.48</PRE_TAX_COST>
                   <AFTER_TAX_COST>0.00</AFTER_TAX_COST>
                   <OPTION>KAHI</OPTION>
                   <COVERAGE_LEVEL>EF</COVERAGE_LEVEL>
                   <IMPUTED_INCOME>0.00</IMPUTED_INCOME>
                   <GOAL_AMOUNT>0.00</GOAL_AMOUNT>
              </Deductions>
              <Deductions>
                   <DEDUCTION_CODE>HS</DEDUCTION_CODE>
                   <RECORD_TYPE>A</RECORD_TYPE>
                   <BEGIN_DT>2009-01-01</BEGIN_DT>
                   <END_DT/>
                   <PRE_TAX_COST>15.25</PRE_TAX_COST>
                   <AFTER_TAX_COST>0.00</AFTER_TAX_COST>
                   <OPTION>01</OPTION>
                   <COVERAGE_LEVEL>EF</COVERAGE_LEVEL>
                   <IMPUTED_INCOME>0.00</IMPUTED_INCOME>
                   <GOAL_AMOUNT>150.00</GOAL_AMOUNT>
    Any conversion is there in XI?
    please let me know ASAP.
    points also rewarded.
    Thanks
    Anil M

    Hi Anil,
    You can do the conversion with XSLT. Here's the code:
    <xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
      <xsl:output encoding="utf-8" indent="yes" method="xml" version="1.0"/>
      <xsl:strip-space elements="*"/>
      <xsl:template match="@*|node()">
        <xsl:copy>
          <xsl:apply-templates select="@*|node()"/>
        </xsl:copy>
      </xsl:template>
    </xsl:transform>
    (This copies the complete XML, and created a formatted output - indent="yes". All other content remains untouched.)
    How to integrate in SAP, read here: http://www.heidoc.net/joomla/en/technology-science/sap-and-xslt/5-tutorial-data-exchange-between-abap-and-xml
    Best wishes,
    Jan
    Edited by: Jan Krohn on Jul 15, 2011 10:57 AM

  • Conversion of XML to a String in XSLT

    Hello --
    I've written an XSLT that creates a fragment of XML as the contents of an xsl variable element. I then want to convert that fragment to a string and use it as the value of another element. I've tried both the orcl:get-content-as-string() and ora:getContentAsString() functions with no success. Recognizing that both of these functions take a node-set as input, and that an xsl variable is not a node-set, I've also tried using ora:node-set() on the variable when passing it to the functions. None of these approaches works.
    How can I use XSL and any extension functions to convert an XML fragment to a string for use as a value in an element belonging to a larger XML message?
    Thanks for your time.
    Paul Camann

    Not sure if XSLT is the right place for it. If you use getContentAsString in assign activity, can that solve the problem?
    Chintan

  • File Adapter - File Content Conversion to XML last element missing

    I'm using the SAP File Adapter with File Content Conversion to convert | (pipe) delimited records into XML.
    When the last field is blank, I would expect that an empty node gets created, however, the node doesn't get created at all.
    For example given these settings...
    Record.fieldSeparator = |
    Record.endSeparator = 'nl'
    Record.fieldNames = FIELD1,FIELD2,FIELD3
    Using this three record file as my data...
    |123|XYZ
    ABC||XYZ
    ABC|123|
    When converted to XML, this is what the recordset XML structure looks like...
    <Recordset>
    <Record>
    <FIELD1 />
    <FIELD2>123</FIELD2>
    <FIELD3>XYZ</FIELD3>
    </Record>
    <Record>
    <FIELD1>ABC</FIELD1>
    <FIELD2 />
    <FIELD3>XYZ</FIELD3>
    </Record>
    <Record>
    <FIELD1>ABC</FIELD1>
    <FIELD2>123</FIELD2>
    </Record>
    </Recordset>
    Notice that the last record is missing the "FIELD3" element.
    Edited by: William Krick on Jun 17, 2011 4:49 PM

    Giuseppe Agnello wrote:
    > Sorry, there was a typo in the parameter name.
    > Word fields should start with capital F.
    > Try with Record.missingLastFields, with value "add"
    >
    > http://help.sap.com/saphelp_nw70/helpdata/en/ae/d03341771b4c0de10000000a1550b0/frameset.htm
    >
    > Similar issue was resolved with same parameter in this thread:
    > Sender file adapter with FCC not creating last field
    That did the trick.  It was a typo.  Thanks Giuseppe.
    I'm willing to bet that this parameter was added to fix the parsing bug without breaking existing users that had already worked around the original bug.   You shouldn't really have to special case the last field.

  • Using File Content Conversion converting XML format to text format

    Hi All,
                 I am able to convert to Text format using file content conversion, But the requirement is to convert the same for the structure with additional subnodes  as in the example (also complex nested structures)
    <ns0:SendXSDEmployeeDetails xmlns:ns0="http://ehro.eds.com/FRAMEWORK/FileToFile/FileCConverion">
        <Employee>
                  <Employee_ID>2</Employee_ID>
                   <Employee_Name>KannanKumar</Employee_Name>
                     <Address>
        <Street>13th Cross Reddy</Street>
        <City>Bangalore</City>
        <Pincode>641026</Pincode>
        <Phone_No>
            <t1>9901934934</t1>
            <t2>9901934934</t2>
        </Phone_No>
    </Address>
       </Employee>
    </ns0:SendXSDEmployeeDetails>
    can any one help on this please
    I have already seen the blogs :
    /people/krishnakumar.ramamoorthy3/blog/2007/01/27/generic-mapping-to-convert-nested-xml-to-flat--receiver-file-adatper
    /people/ravikumar.allampallam/blog/2005/06/24/convert-any-flat-file-to-any-idoc-java-mapping
    <b>Can any one help to do  this in simple way</b><br>

    Hi,
    Like correctly pointed by JaiShankar, the Sender File Adapter currently does not supoort such stracutures.
    the strcuture supported is described in this link,
    http://help.sap.com/saphelp_nw2004s/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm
    Regards
    Bhavesh

Maybe you are looking for

  • XPath expressions in XmlCursor / XmlObjects

    Hi all, I tried to get a portion of an XML by using XPath Expressions as follows: String xPathExpression = "declare namespace xq='http://inti.notariado.org/indices' " + "$this/xq:RULES/xq:RULE[@disabled]"; A simple example of an xml <rules> <rule dis

  • Why don't the new tabs show the "normal" tiles page?

    dear mr. or mrs. support, i have recently bought a new laptop. i synced it up with my old one but for some reason whenever i open an empty new tab it opens on a page of the bing searchengine which is something i never asked it to do. i can't change t

  • Markers not appearing in Graph

    I am trying to get a combination graph with one series as bars and the other as a markers (a line chart with markers but no line). I can't even get the markers to appear. This is what I have chart: <Graph seriesEffect="SE_AUTO_GRADIENT"> <LegendArea

  • Anyone's iMessage still not working!!?

    Hey I saw on the site that they got iMessage back up and working but I still can't use it. It's been saying waiting for activation for hours. Someone help please

  • Help with Web page

    I have maintained a website for many years here.  Recently, I have decided I need to make some updates. I always used FTP protocol to upload the new changes, but no that that is no longer accepted by verizon, how do I upload the updates. Thank you in