Output autonumber as text in xml-file

Hi All,
just wanted to know if it is possible to take the autonumber that is created via the EDD or a paragraph format in the application template and put it in some attribute or - even better - output it as text in the xml-file.
Btw: I'm still using FM8, if that makes any difference.
Thanks for all suggestions,
Anna

Hi Anna,
Generally, an autonumber is considered part of the document's formatting so it is not normally exported to XML. I am not sure if there is a built-in way of assigning it to an attribute in FrameMaker, but you could do this with FrameScript if necessary.
Rick

Similar Messages

  • Creating a XSLT program to delete some part of text in XML file

    Hi All,
    I have a DMEE which generates an XML file . This file conatins the text "  #<?xml version="1.0" encoding="utf-16"?> " in the output file. My requirement is to  create XLT program to remove this text before output.
    Please help me out in creating an XSLT program as I am completely unaware of  this programming technique.

    Hi
    You have to import source and target structure in stylus studio and u have to map according to requirement....
    refer thsi links its use ful to u
    1./people/prasadbabu.nemalikanti3/blog/2006/03/30/xpath-functions-in-xslt-mapping
      the above one is for xslt mapping.
    2.http://help.sap.com/saphelp_nw04/helpdata/en/45/06bd029da31  122e10000000a11466f/frameset.htm
      The obove one is for communication channel scheduling
    if any need
    thanq

  • Importing text from XML file, "\n" not working

    Hi I'm currently trying to set up my game so it pulls in all text from an external XML file (to make switching between different languages easier). The problem is that on several occasions I need to use the special code "\n" to start a new line (for formatting purposes) but when I'm pulling the text in from the XML file this is not starting a new line any more - it is just appearing as normal in the text. (e.g "Here is some \n example game text") How do I get around this?
    Any help here appreciated, I'm supposed to be finished everything by tomorrow so I need suggestions asap haha Thanks.

    I don't see how I can be setting it wrongly, I have the exact line:
    XML.ignoreWhitespace = false;
    Before this I tried myXMLDocName.ignoreWhitespace = false; (before I realised it was a static function)
    This line is placed immediately after I have loaded my XML document and assigned it to a variable. e.g.
    private function XMLLoaded(e:Event):void
                trace("XML Loaded");
                MyGameGlobalVars.xmlDoc = new XML(e.target.data);
                XML.ignoreWhitespace = false;       //previously: MyGameGlobalVars.xmlDoc.ignoreWhitespace = false;
                xmlLoaded = true;

  • Build Array and Output Values to Text or Excel File

    I know this is a simple question but I need some help. I'm reading a DC voltage in LabVIEW a while loop. I want to store all the read values into an array and export that array as an text or Excel file. I had a VI that I build before for this but I cannot seem to find it and I can't remember how I did it before. Any help is appreciated. I think I can do the exporting part but I do help with building the array (storing all the data values).

    I run into a problem while using the "Write to Text File Function". Initially I took about 60 measurements and wrote to a text file. That works but I increased the amount of measurements to be taken to 600 and when I did that the output in the text file are all Chinese letters (or that's what it seems like). Is this because I'm writing too much data?
    When I use the "Write To Spreadsheet File VI" to write the measurments it works fine for the 600 measurements. The problem with this is I cannot insert any text. Using the "Write to Text File Function" I inserted some text before the measurements and "end of lines", to format the data. Attached is a screenshot of my VI.
    Attachments:
    measurements.PNG ‏45 KB

  • Reading connection parameters from text or XML file

    Hello,
    Rather than hard coding my connection data into the source, I would like to be able to read it from a configuration file in either text or XML format.
    Does anyone have a configuration file and source code example for doing this? Or have any suggestions on how it might be done?
    Many Thanks and Happy New Year!

    Thanks for the pointer. A review of the utils Java doc gave me the framework of what I needed. I also found a good example of the config file and code in the Core Java 2, Vol 2 book.
    As to the password, a concept I have is to create a small UI for users to manage the config params. When I write the password to the text file it would be encrypted. When used in the app, it would be un-encrypted. Granted not the most secure method, but a nice compromise on convenience and security.

  • NOOB Question - Cannot seem to get the output in a text or CSV file - Please help!!

    I was able to put together a script which finds members of a certain AD group, filters down the users, and then calculates the number of days till a password reset is needed.  I am able to get on screen exactly what i am looking for, but cannot seem
    to figure out how to get the same data to a file.  What i am doing wrong?  two goals here:
    1.  Create a spreadsheet with a list of users whose password is about to expire.
    2.  Down the line automate an email to users whose password is about to expire. 
    Here is my code:
    ## Get List Of Users in Password Change Lockout that do not have an expired password or a password that never expires
    $Names = (Get-ADGroupMember -Identity "Password Change Lockout" -Recursive |`
    Get-ADUser -Properties * |`
    Where-Object {$_.PasswordNeverExpires -eq $False -and $_.PasswordExpired -eq $False} |`
    Sort-Object name |Select-Object -ExpandProperty SamAccountName)
    ## Get Password last Set values for all
    Foreach ($Name in $Names)
    $VAR1 = (Get-ADUserResultantPasswordPolicy -Identity $Name).MaxPasswordAge
    $VAR2 = (Get-ADUser $Name -Properties *).passwordlastset
    $VAR3 = (Get-ADUser $Name -Properties *).name
    $DTPC = (New-TimeSpan -Start (Get-Date) -End ($VAR2 + $VAR1) | Select-Object -ExpandProperty Days)
    Filter users to those who need to change thier password in 15 days.
    If ($DTPC -lt 15)
    No matter what i try between the {} after the If statement, I cannot get the output to a file.  However, if I use a Write-Output I get exactly what i looking for.  I feel like i am forgetting some basic concept and could really use some help.  Thanks.
    Matt 
    Matt Dillon

    Hi Matt,
    I generally create an empty array (something like $out = @()) at the top of the script and then use $out += $desiredOutput inside of the foreach loop.
    Outside of the loop, you can then pipe $out to Out-File or Export-Csv, depending on your needs.
    Don't retire TechNet! -
    (Don't give up yet - 12,830+ strong and growing)

  • Special characters issue in output XML - file adapter  - SOA 10.1.3.4

    Hi,
    I use a DB adapter and File adapter to retreive data from database and create output XML file.
    For the database record which have special characters (for example ' , <, >), it will just output the same character in XML file, which cause other system to reject this XML file because of those characters.
    Anyone have this issue ? How can i resolve that ?
    Thanks

    Try converting the characters to &lt; and &gt;. This should work. Make sure the stand-alone & character is converted to & amp; (written with space as HTML will convert it back to &).
    -AR

  • FTP to Read content of Text/xml file

    Hi,
    I need a help for reading content of text/xml file through FTP. Below I just am explaining the scenario.
    Our application server is in UNIX. Now we have to run a report program to access in to a FTP server which is in windows platform. Using FTP_CONNECT, FTP_COMMAND, FTP_DISCONNECT we are able to connect to FTP server and also able to copy files from FTP server to SAP application server. After copied in application server, we are able to read the content of the txt file in to internal table in ABAP program using OPEN DATASET. But our requirement is that we want to read the text or xml file content into internal table while accessing into FTP server from SAP application instead of after copying the file into application server.
    So please help me to solve my problem.
    -Pk

    Thank you Bala,
    But can you help me what should I pass against FNAME and CHARACTER_MODE Import parameter? Should I pass the full path of the file with name or only I have to pass file name ? For example if my text file name in FTP Server is test.txt and the IP of the ftp server is 10.10.2.3 then should I pass the value against FNAME as '
    10.10.2.3\xyz\text.txt' ? Here xyz is the name of the directory in C drive where test.txt is exist.
    Please help me.
    -pk

  • Writing an XML file using a Servlet

    Hello, I'm trying to code a servlet that receives a POST from a HTTP and output its data to a XML file, the problem is that I get the following error:
    The XML page cannot be displayed
    Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.
    XML document must have a top level element. Error processing resource 'http://localhost:8080/XMLSender/xmlsend'.
    I don't know what happens, because I'm NOT trying to show the content, just to save it, I post my code here so anyone can help me, please. Thanks in advance.
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    public class xmlsender extends HttpServlet
    public void service(HttpServletRequest req, HttpServletResponse res)
    throws ServletException, IOException
    ServletOutputStream salida = res.getOutputStream();
    res.setContentType("text/xml");
    String cadenanumero = req.getParameter("numero");
    String cadenaoperadora = req.getParameter("operadora");
    String cadenabody = req.getParameter("mensaje");
    String cadenashortcode = req.getParameter("shortcode");
    File f1 = new File("salida.xml");
    FileWriter writer = new FileWriter(f1);
    writer.write("<?xml version=\"1.0\" encoding=\"utf-8\"?>");
    writer.write("<root>");
    writer.write("<tlf>" + cadenanumero + "</tlf>");
    writer.write("<op>" + cadenaoperadora + "</op>");
    writer.write("<sc>" + cadenashortcode + "</sc>");
    writer.write("<body>" + cadenabody + "</body>");
    writer.write("</root>");
    writer.close();
    }

    Yes, in fact what I want is the file to be in the server, now, I modificated my code to the following:
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    public class xmlsender extends HttpServlet
    public void service(HttpServletRequest req, HttpServletResponse res)
    throws ServletException, IOException
    ServletOutputStream salida = res.getOutputStream();
    res.setContentType("text/HTML");
    String cadenanumero = req.getParameter("numero");
    String cadenaoperadora = req.getParameter("operadora");
    String cadenabody = req.getParameter("mensaje");
    String cadenashortcode = req.getParameter("shortcode");
    File f1 = new File ("salida.xml");
    FileWriter writer = new FileWriter(f1);
    /*salida.println("<?xml version=\"1.0\" encoding=\"utf-8\"?>");
    salida.println("<root>");
    salida.println("<tlf>" + cadenanumero + "</tlf>");
    salida.println("<op>" + cadenaoperadora + "</op>");
    salida.println("<sc>" + cadenashortcode + "</sc>");
    salida.println("<body>" + cadenabody + "</body>");
    salida.println("</root>"); */
    salida.println("Finalizado");
    f1.createNewFile();
    writer.write("<?xml version=\"1.0\" encoding=\"utf-8\"?>");
    writer.write("<root>");
    writer.write("<tlf>" + cadenanumero + "</tlf>");
    writer.write("<op>" + cadenaoperadora + "</op>");
    writer.write("<sc>" + cadenashortcode + "</sc>");
    writer.write("<body>" + cadenabody + "</body>");
    writer.write("</root>");
    writer.close();
    It still do not create my file "salida.xml", still don't know why. Any help is welcome.

  • XSL-FO unable to read special characters from the XML file

    Team,
    please help on issue, when trying to read the text from XML file (Special characters like bullet). It is displaying as Question mark(?) in output in place of bullet..please proved any soultion.

    The "?" signals a character set mismatch issue - http://www.oracle.com/technetwork/database/globalization/nls-lang-099431.html - between client and database software

  • Best technique for "stripping" an XML file

    I've been coding Java for a while now, but this is my first foray into Java-based XML processing. Here's the problem:
    I want to take an XML file, extract from it a simpler data set, and output that as a new XML file. (Parse, extract, serialize.) There are a ton of very powerful tools in the API, but I don't want an overcomplicated system. What are the best tools for simple processing?
    (Why am I not using XSLT? I need to take in parameters from the command line, and the data set is large, so I want smart caching. Also, the server will need to read the XML file repeatedly to check for permission data.)

    A little background info:
    I use KimDaBa, a photo organizer for Linux. It stores metadata for the photos in a single large XML file. I've succeeded in having the 2000-photo database display directly in a browser (using XSLT). What I want to do is display a subset of the images, the ones tagged as being publishable under a Creative Commons license.
    A lot of the metadata is sensitive. I don't want to reveal location information for everything, and not all the photos are for public release. As a result, serving the whole file to the browser and using XSLT to transform it is not an option. (I'm also not sure I want to get into server-side XSLT.)
    One issue here is that the images directory is by default not servable to the web. I'll have a PHP script check each image request to see if the image is mentioned in the stripped database. That's what I meant by permission data.
    Once I have a stripped version of the database, I can easily slap together some XSLT, CSS, and JS for convenient browser display.
    So, I think pure XSLT won't cut it.

  • Load external XML file

    I am trying to write a test program. I have a program that is
    going to get it's data from an XML file when it is first loaded.
    That XML file is going to be a local file that sit's in same folder
    as the flex program (rather than online or through a url address).
    Basically, I'm trying to find a way to open or load that file, then
    parse through it and store the xml data, then close the xml file
    (rather than using an rss feed). Everything I'm finding is only
    telling me how to load the data in through a url address. Is there
    any simple way to open a text or xml file?

    i'm goign crazzzzy here.
    i have a list, that reads XML.
    i want that list to update on production without me having to
    build the project all the time, but by just uploading a new XML
    file.
    i think the function i need is this:
    [code]
    private function LoadMyXML():void
    var myXML:XML = new XML();
    var XML_URL:String = "xml/AO_Other.xml";
    var myXMLURL:URLRequest = new URLRequest(XML_URL);
    var myLoader:URLLoader = new URLLoader(myXMLURL);
    myLoader.addEventListener("complete", xmlLoaded);
    function xmlLoaded(evtObj:Event)
    myXML = XML(myLoader.data);
    trace("Data loaded.");
    [/code]
    my xml looks like this:
    [code]
    <AO_OTHER>
    <category title="Administrative Groups">
    <link title="Administrative Groups" url="sadfsf"/>
    </category>
    <category title="AO Survey Results">
    <link title="AO Survey Results" url="sdfsdf202.pdf"/>
    </category>
    </AO_OTHER>
    [/code]
    and the error i keep getting is htis:
    TypeError: Error #1090: XML parser failure: element is
    malformed.
    at
    TabTest/private:LoadMyXML/xmlLoaded()[C:\Flex\SearchTest\TabTest.mxml:25]
    at
    flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at flash.net::URLLoader/flash.net:URLLoader::onComplete()
    what am i doing wrong?
    am i even going though this the right way?
    thanks!

  • Hi, extract data from xml file and insert into another exiting xml file

    i am searching code to extract data from xml file and insert into another exiting xml file by a java program. I understood it is easy to extract data from a xml file, and how ever without creating another xml file. We want to insert the extracted data into another exiting xml file. Suggestions?
    1st xml file which has two lines(text1.xml)
    <?xml version="1.0" encoding="iso-8859-1"?>
    <xs:PrintDataRequest xmlns:xs="http://com.unisys.com/Anid"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://com.unisys.com/Anid file:ANIDWS.xsd">
    <xs:Person>
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://com.unisys.com/Anid file:ANIDWS.xsd">
    These two lines has to be inserted in the existing another xml(text 2.xml) file(at line 3 and 4)
    Regards,
    bubbly

    Jadz_Core wrote:
    RandomAccessFile? If you know where you want to insert it.Are you sure about this? If using this, the receiving file would have to have bytes inserted that exactly match the number of bytes replaced. I'm thinking that you'll likely have to stream through the second XML with a SAX parser and copy information (or insert new information) as you stream with an XML writer of some sort.

  • Help closing log xml file

    I've tried different ways of closing a logging file and all of them omit the </log> closing tag of the element. I can then go back and add the tag to view it in an xml parser but it annoying.
    I would have thought that the close() method of the handler instance would do it, but it didnt. Any thoughts?

    Without seeing your code (the relevant parts) it is very hard to identify the problem. Are you sure you flush/close the output stream after generating the XML file?
    Yair.

  • Losing "xmlns" when transforming DOM to XML file in OC4J

    I am outputting a DOM to a file using the standard transformation approach. When executed within JDeveloper everything works fine. However, when wrapped in a webservice using JDeveloper and run within OC4J the output is missing the "xmlns" attribute from the root node. Anyone have an idea why this is happening and what a workaround would be?
    The original XML root element is:
    &lt;e2579ReportAssemblyList xmlns="http://cdrh.fda.gov/schema/e2579ReportAssembly.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="http://cdrh.fda.gov/schema/e2579ReportAssembly.xsd e2579ReportAssembly.xsd"&gt;
    You can see the xmlns attribute has been provide. I have verified that the attributes are correct while in the DOM.
    The xml root element after saving to DOM using transformation is:
    &lt;e2579ReportAssemblyList xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="http://cdrh.fda.gov/schema/e2579ReportAssembly.xsd e2579ReportAssembly.xsd"&gt;
    You can see the xmlns attribute is now blank.
    The approach used in the transformation is as follows:
    File mOutput = new File(mFileNamePath);
    FileOutputStream mOutputStream = new FileOutputStream(mOutput);
    Transformer mTransformer = TransformerFactory.newInstance().newTransformer();
    mTransformer.transform(new DOMSource(mNextBatchItem), new StreamResult(mOutputStream));
    mOutputStream.close();
    Any suggestions would be greatly appreciated.

    If no one knows why this is happening in the transform, is there another reliable way of outputting the DOM to an XML file?

Maybe you are looking for

  • ORA-12560 while creating database Oracle 11.1.0.6

    Hi, I tried to create a Oracle Database using Oracle installer. I got the error ORA-12560 This is part of the logfile: INFO: Configuration assistant "Oracle Net Configuration Assistant" succeeded INFO: Command = oracle.assistants.server.DbcaCfgPlugIn

  • How to properly use the new Lenovo touchpads

    I'll admit to hating Lenovo's new touchpads at first (I purchased a Thinkpad T540p for myself and a relative got an IdeaPad). It felt impossible to click with any accuracy and I was close to returning my laptop largely because of the touchpad. Then I

  • Problem inserting clob value into xmltype column

    Hi all, I have created a table in XML DB using as: CREATE TABLE TransDetailstblCLOB ( id number, data_xml XMLType) XmlType data_xml STORE AS CLOB; I am trying to insert large xml data into the data_xml column which is of type XMLTYPE. I followed this

  • Flash Player for iPhone?

    dear jeff wright asking for an iphone application to download and watch videos , apple is blocking the acrobat flash player to be downloaded . need an application like windows media player and real player to have on my iphone i tried this http://www.

  • Version history and last modified did not show admin's modification?

    We just experienced an issue with a site page being (unintentionally) modified by an IT admin, and the page being messed up. My question is, somehow the the messed up page's "Modified" and "Modified By" in SharePoint does NOT show the name nor time t