XML generated by Word

I'm sorry but I'm crossposting this. The first post was in the wrong forum.
I have some MSWord documents with variable fields that I have to compile programmatically.
Now my project is pure java so I can't use Word Documents, but I found out that with Word 2003 I can save these documents in XML format. Now my question is:
What I can use to read XML files generated, compile the fields I need and send the output (say in html format) to the browser of the client PC?
I'm working in AIX environment with IBM java 1.4.
Thanks for any help

Java has two means of processing XML. DOM (also JDOM) builds a tree of all of the content before letting you back in control. SAX calls a class of yours at the beginning of each element the end of the element, and when characters are available inside an element.
The XML generated by Word is pretty ugly with lots of namespace entries. Your first job would be to look at a sample document with a text editor and find exactly what you will need to locate with your program.
DOM tends to be more needy of memory, and it seems like SAX might be the best fit, since (I assume) you could watch the elements go by and ignore them until you get to the ones you want to harvest. You can then save them however you want and continue watching the stream go by. Look at the ContentHandler interface and the SAXParser, and SAXParserFactory classes.
If you have to do lots of looking up, in the documents, or don't know in advance what you need to find until you open the document, then look at DOM or JDOM. Also, if you know the documents will be smallish, DOM is a good idea. Since the entire document is available in DOM, you get to use XPath to search.
For DOM the key classes and interfaces are DocumentBuilderFactory and DocumentBuilder.
That should get you started.
Dave Patterson

Similar Messages

  • Unable to generate output due to huge xml generated

    Hello All,
    I am working on etext templates for generating EFT payments.
    When the payments are below 100 then the output is fine. But when it is crossing 100 payments then it is not producing any output.
    This is a standard rtf which I have modified and added some xpath conditions in the OutboundPayment table. I think because of xpath conditions the xml structure is modified internally and the xml generated is very huge.
    When I have used the original rtf without adding any conditions the output is produced for any number of payments.
    Can any one provide some help on this.

    sorry posted in wrong forum

  • RoboHelp 9 Won't Generate a Word Document

    I'm trying to get RoboHelp 9 to generate a Word Document. It won't genterate and throws out the following message in output view:
    Preparing to create Printed Documentation...
    Clearing output folder...
    Preparing files for Print Document...
    Copying files...
    Updating files...
    Finished preparing in 4 seconds.
    Preparing environment...
    Cleaning up temporary files...
    Internal error encountered,  Failed to generate Printed Documentation.
    This is all I have to go on. I really have no idea where to even start trouble shooting this as there isn't a specific error message.
    Thanks!

    Have you tried generating a word file from a different project? Try it on one of the sample projects. If it works, try to generate from your project but with a limited set of topics. If this works, there must be a topic that is causing the issue. If you add further topics a few at a time until you hit the issue you will be able to identify it.

  • Unable to generate a Word document (RH9 and Office 2010)

    Hello Everybody,
    we have an issue with Robohelp 9 (patched to newest version). We are trying to generate a Word document (doc, docx) in the section of "Printed Documentation". If we click on the printed documentation on the left side (in the menübar), 2 popup windows flashing  to the screen with the following complete message: "False Parameter". I can click on "OK" if i do it, both windows will close and the General Printed Document Page is loading.
    The Problem is that all dropdown fields are blank and we cant chose .doc or .docx. I reinstalled both Programms (TCS and Office) it doesnt help me.
    I have screenshoted and uploaded the blank Print Document General window at tinypic.
    http://tinypic.com/r/t6drnn/5
    Peter Grainge was asking me:
    Also try with one of the sample projects. Click Open on the RoboHelp Starter page and then click Samples in the ribbon on the left. Same problem?
    It doesnt work. (same problem)
    Thx for help
    Greetings Andreas B

    This all points to some sort of installation issue. I notice from the screen you posted that a lot of the fields are completely blank. They shouldn't be. They should have default values. Check that you are installing following Peter's advice at http://www.grainge.org/pages/authoring/installing/installing.htm.
    Colum

  • How do I generate a Word document and a PDF from Help files?

    Hi,
    I am new to RoboHelp HTML, and am using version 8.  I updated some Help files, and now I want to generate output.  Here are my questions/ or the process I used:
    To compile the help, I clicked Generate Primary Layout.  Is this correct?  I noticed that the date stamp on the xpj file has not changed.  The date is still from many months ago.  (Why is that?  Should it show a recent update date?)  However, the files that I updated do reflect the dates when I made the updates.  These include art files, an hhp, and htm, js, ldb, pss, cpd files.
    To generate a pdf, I clicked Generate PDF.  I was not able to generate the PDF at first, but then, I enabled macros in Word 2007 (Trust Center Settings > Enable all macros...and clicked the checkbox, Trust access to the VBA project object model), and clicked Generate PDF.  At the end of the generation, I got this error in Word: Microsoft Office Word has encountered a problem and needs to close.  We are sorry for the inconvenience.  The info you were working on might be lost.  Word can try to recover it for you.  I closed the dialog and Word generated several blank documents.  Microsoft Office Diagnostics was run and found one problem and corrected it.  Despite the error message, a pdf was generated.  (If you could give me any insight on why I got the error messages, that could be helpful to know).
    How do I generate a Word document?
    Thank you!
    Erin

    Welcome to our community
    Note that RoboHelp is capable of creating a variety of layouts. WebHelp, FlashHelp, AIR Help, Microsoft HTML Help, JavaHelp, Oracle Help, ePub and more.
    Any of these layouts may be nominated as the Primary layout. So when you generate the Primary layout, you get whatever has been configured as the Primary layout.
    Only certain actions will result in a change to the .XPJ file. The actions are indicative of major changes to the project. So I wouldn't fret the fact that the date time stamp wasn't updated.
    Indeed the Printed Documentation Single Source Layout recipe is what you use to create PDF. Generally what happens is that RoboHelp creates a Microsoft Word document as an intermediate file type, then creates the PDF from that. As you might imagine, there are a host of things that can go wrong during the process. I might suggest that you first get a Word document to generate cleanly. Then once you do that, focus on PDF. I know that I typically gen a Word document and stop there. I just open Word and use Word to create the PDF.
    If you look at the properties for the Printed Documentation Single Source Layout recipe (View > Pods > Single Source Layouts then right-click the Printed Documentation layout and choose Properties) you will see that PDF, Word or both are options at the top of the dialog.
    Hopefully that gives you a nudge in the right direction.
    My fellow Adobe Community Expert Peter Grainge has excellent info on Printed Documentation on his site at Grainge.org. Click the link below for that.
    Click here to visit Peter's site
    Cheers... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7 or 8 moments from now - $24.95!
    Adobe Certified RoboHelp HTML Training
    SorcererStone Blog
    RoboHelp eBooks

  • Converstion of xml doucment  to word document

    Hi in one of our deveopments ,
    we needed to design the word document and send it as attachment.  As it is designed with xml ( word ml ) Firewalls are not allowing this to pass through. Then we manually opened up the document using word application and performed Save As to save as pure word doc with out the xml tags. then we send it as an attchement it then worked out.  We need to automate this procedure of converting xml document to word document.
    we used 'Ole' object to convert it it is working fine in Sap Gui. But with Portal 'Ole objects' doesn't t work.
    So please suggest  a way to conver the xml document to word document from crm web client action .
    This is a critical requirement if somebody throw light on this it would be great help to us.......wishin some body could give solution to me.
    Jaffer vali shaik

    Here is the sample report to open word doc with some testing message......
    Report Test.
    INCLUDE ole2incl.
    DATA: word TYPE ole2_object, documentos TYPE
    ole2_object,
    documento TYPE ole2_object,
    selection TYPE ole2_object,
    font TYPE ole2_object.
    CREATE OBJECT word 'WORD.APPLICATION'.
    CALL METHOD OF word 'Documents' = documentos.
    CALL METHOD OF documentos 'Add' = documento.
    CALL METHOD OF documento 'Activate'.
    GET PROPERTY OF word 'Selection' = selection.
    GET PROPERTY OF selection 'Font' = font.
    SET PROPERTY OF word 'Visible' = 1.
    SET PROPERTY OF font 'Name' = 'Arial'.
    SET PROPERTY OF font 'Size' = 12.
    SET PROPERTY OF font 'Bold' = 1. "o 0
    SET PROPERTY OF font 'Underline' = 1. "o 0
    CALL METHOD OF selection 'TypeText' EXPORTING #1 = 'Word Doc Test'.
    CALL METHOD OF selection 'TypeParagraph'.
    CALL METHOD OF documento 'SaveAs' EXPORTING #1 = 'c:test.doc'.
    CALL METHOD OF word 'Quit'.
    Hope this will help.....

  • Problem in XML Generator

    Hi,
    I am facing a problem that i have created a form by XML Generator(Wizard) but after successfull complition there is User-id and Password two times and when i fill it,,it gives the error that "User-Id and Password is incorrect".
    So plz tell me that which User-id and Password ll be given....
    Thanx
    Rai

    Hi Rai,
    There's no need to have multiple accounts for SDN - I just don't know what you mean by "XML Generator" ... (the B1DE toolset has an internal module that generates XMLs (for menus etc) - and actually that's called "XML Generator", but I don't think that you can call it explicitly...)
    ...maybe you were talking about the "...UDO form generator" (a separate tool in B1DE)?
    ...but anyway, I suspect that the reply from Yogesh was what you were looking for?
    ...sorry for the confusion,
    Frank

  • Embed a font in a PDF(generated by Word 2013) using Adobe Acrobat XI

    Hi all,
    I wrote my thesis in Word 2013 using the LaTex font "LM Roman 12" that is an Open Type font not restricted (it results "Editable").
    Although it is marked as opentype, word doesn't embed it into the exported pdf and I guess that is becouse the font is identified as Type1.
    I more or less solved the problem printing the word file using Adobe PDF Printer or converting it with Abobe Acrobat XI, but I'd like to use the pdf generated by word becouse auto-creates index, links index items to contents and doesn't resize/alter the images inside the document.
    The screenshot above is the properties of the pdf generated from word.
    Is there a simple way to force the embedding in this pdf of the missing not embedded fonts?

    Word 2013 uses its own pdf creator engine as far as I know. The step I performed were:
    1 - In the save settings I told word to embed fonts (sorry for the language, I have the Italian client)
    2 - Export from Word -> Save As -> .pdf adding also the table of contents/index
    N.B. I cannot use PDF/A, and in any case it doesn't embed the font
    A working solution is to use Acrobat XI to convert it or print with Adobe PDF printer, results:
    The problems are 2:
    1 - It doesn't create any bookmark and doesn't create links from the table of images to the linked images
    2 - Images, also with the preset "High Quality Printing" customized using "No compression", are really ugly and if you zoom a bit more than 100% they totally be s**t. It wasn't that way with PDF created by word.
    In the end, or I find they way to open the pdf created by word and embedd the missing font, or I find a way to make Acrobat XI creating bookmarks from the word file.
    Suggestion?

  • How to include CDATA in xml generated from XQuery

    I need to include Cdata in the xml generated from my xquery which is given below:
    I tried using XMLCDATA, but not getting the desired output. What am I doing wrong?
    SELECT XMLQuery('<InsUpdDel>
    for $crv in ora:view("RELATION")
    return
    <first>
    <eff_date>{$crv/ROW/EFF_DATE/text()}</eff_date>
    <source>{$crv/ROW/SOURCE/text()}</source>
    <key>
    <fld>
    <id>from_type</id>
    <val>XMLCDATA({$crv/ROW/FROM_ENT_TYPE/text()})</val>
    </fld>
    <fld>
    <id>from_ent_id</id>
    <val>{$crv/ROW/FROM_ENT_ID/text()}</val>
    </fld>
    </key>
    </first>}</InsUpdDel>'
    RETURNING CONTENT)
    FROM dual;
    The output I get is XMLCDATA(C), while the desired output is <![CDATA[C]]>

    Forgive me my vanity to think I can contribute by kicking doors open that are probably already wide open....I might create more confusion, but perhaps it helps some of the readers of this thread....
    In general it is not such a good idea to use "string" functions to create (serialized) XML. XML tools (including Oracle XML DB) go through a lot of effort to make sure that when a "native" XML structure is serialized to a string, the XML rules are strictly obeyed (e.g. special character escaping).
    Just assume e.g. that the $i/Reference from above contains something like ]]><
    The resulting XML would not be valid.
    More info on serializing XML in the context of XQuery is available from
    - http://www.w3.org/TR/xquery/#id-serialization
    - http://www.w3.org/TR/xslt-xquery-serialization/
    - http://www.w3.org/TR/xslt-xquery-serialization/#XML_CDATA-SECTION-ELEMENTS
    Unfortunately I do not think Oracle XML DB currently implements these parts of the spec (perhaps 11g will)...leaving the OP's question unanswered.
    Anyway, if going the route of serializing the XML through string functions, it is always good to realize the dangers of such an approach.
    Peter

  • No XML generated

    Hello experts,
    I have problem with generation of XML stack file for ERP Enhancement Package 4.
    I get warning message "No XML generated" in Maintenance Optimizer on the step 2.2 (Select OS/DB-Dependent Files)
    I get this message for Enhancement Package 4 only. For others products (like Stack 15 or EhP3) all ok.
    I have Solution Manager 7.0 with EhP1, SP stack 19.
    Thanks for advance.

    Hi Tomasz,
    I did following steps:
    1. Remove existing logical components of Java in SMSY
    2. Import the current data into SLD
    3. Create new logical components for Java in SMSY
    4. Try to load EhP4
    Read also this document
    http://service.sap.com/~sapidb/011000358700000293582009E.PDF

  • STRIP tag in XML Generator

    We are  creating xml files from RDBMS, for that we are using XML generator .  we  imported dtd file for creating  XML generator  but we are getting some tag with name  'STRIP' .  i dont know what is this tag , i am new to this XMl files generation can any one give some useful info  about this. The flow in informatica is:  SOURCE----->XML GENERATOR----->MQ series(Target)  Thanks,Srinadh.

    인계동 QIQ-9529-1551 수원출장안마 ‡ 수원출장마사지 영통출장안마]인계동 QIQ-9529-1551 수원출장안마 ‡ 수원출장마사지 영통출장안마]인계동 QIQ-9529-1551 수원출장안마 ‡ 수원출장마사지 영통출장안마]인계동 QIQ-9529-1551 수원출장안마 ‡ 수원출장마사지 영통출장안마]인계동 QIQ-9529-1551 수원출장안마 ‡ 수원출장마사지 영통출장안마]인계동 QIQ-9529-1551 수원출장안마 ‡ 수원출장마사지 영통출장안마]인계동 QIQ-9529-1551 수원출장안마 ‡ 수원출장마사지 영통출장안마]인계동 QIQ-9529-1551 수원출장안마 ‡ 수원출장마사지 영통출장안마]인계동 QIQ-9529-1551 수원출장안마 ‡ 수원출장마사지 영통출장안마]인계동 QIQ-9529-1551 수원출장안마 ‡ 수원출장마사지 영통출장안마]인계동 QIQ-9529-1551 수원출장안마 ‡ 수원출장마사지 영통출장안마]인계동 QIQ-9529-1551 수원출장안마 ‡ 수원출장마사지 영통출장안마]인계동 QIQ-9529-1551 수원출장안마 ‡ 수원출장마사지 영통출장안마]인계동 QIQ-9529-1551 수원출장안마 ‡ 수원출장마사지 영통출장안마]인계동 QIQ-9529-1551 수원출장안마 ‡ 수원출장마사지 영통출장안마]인계동 QIQ-9529-1551 수원출장안마 ‡ 수원출장마사지 영통출장안마]인계동 QIQ-9529-1551 수원출장안마 ‡ 수원출장마사지 영통출장안마]인계동 QIQ-9529-1551 수원출장안마 ‡ 수원출장마사지 영통출장안마]인계동 QIQ-9529-1551 수원출장안마 ‡ 수원출장마사지 영통출장안마]인계동 QIQ-9529-1551 수원출장안마 ‡ 수원출장마사지 영통출장안마]인계동 QIQ-9529-1551 수원출장안마 ‡ 수원출장마사지 영통출장안마]인계동 QIQ-9529-1551 수원출장안마 ‡ 수원출장마사지 영통출장안마]인계동 QIQ-9529-1551 수원출장안마 ‡ 수원출장마사지 영통출장안마]인계동 QIQ-9529-1551 수원출장안마 ‡ 수원출장마사지 영통출장안마]인계동 QIQ-9529-1551 수원출장안마 ‡ 수원출장마사지 영통출장안마]인계동 QIQ-9529-1551 수원출장안마 ‡ 수원출장마사지 영통출장안마]인계동 QIQ-9529-1551 수원출장안마 ‡ 수원출장마사지 영통출장안마]인계동 QIQ-9529-1551 수원출장안마 ‡ 수원출장마사지 영통출장안마]인계동 QIQ-9529-1551 수원출장안마 ‡ 수원출장마사지 영통출장안마]인계동 QIQ-9529-1551 수원출장안마 ‡ 수원출장마사지 영통출장안마]인계동 QIQ-9529-1551 수원출장안마 ‡ 수원출장마사지 영통출장안마]인계동 QIQ-9529-1551 수원출장안마 ‡ 수원출장마사지 영통출장안마]인계동 QIQ-9529-1551 수원출장안마 ‡ 수원출장마사지 영통출장안마]인계동 QIQ-9529-1551 수원출장안마 ‡ 수원출장마사지 영통출장안마]인계동 QIQ-9529-1551 수원출장안마 ‡ 수원출장마사지 영통출장안마]인계동 QIQ-9529-1551 수원출장안마 ‡ 수원출장마사지 영통출장안마]인계동 QIQ-9529-1551 수원출장안마 ‡ 수원출장마사지 영통출장안마]인계동 QIQ-9529-1551 수원출장안마 ‡ 수원출장마사지 영통출장안마]인계동 QIQ-9529-1551 수원출장안마 ‡ 수원출장마사지 영통출장안마]인계동 QIQ-9529-1551 수원출장안마 ‡ 수원출장마사지 영통출장안마]인계동 QIQ-9529-1551 수원출장안마 ‡ 수원출장마사지 영통출장안마]인계동 QIQ-9529-1551 수원출장안마 ‡ 수원출장마사지 영통출장안마]인계동 QIQ-9529-1551 수원출장안마 ‡ 수원출장마사지 영통출장안마]

  • Generate MS word by java in strut application.

    Hi,
    I wan to generate a word file which is contain img also. So please help me . give some sample code .
    Thanks and regards.
    Sanatan

    Try Apache POI: http://poi.apache.org/
    I strongly suggest you (and all the people) to use ODT instead M$ doc i.e., Open Document Format from OASIS at http://www.oasis-open.org/
    []'s.

  • Links generated by Word Adobe plug-in are too large

    Surprise me...by helping me to come up with a solution to this obscure, but very annoying, issue.
    Our company recently moved from Office 2003 to 2010 and from Acrobat Pro 9 to X.  We are still using Windows XP.  Our standard process involves generating PDFs with internal links via an Adobe plug-in to Word--elements such as cross references and TOCs generated in Word are turned into PDF links via Distiller (not a server install).
    The problem is that the links that are created using all this upgraded software are "larger" than they used to be.  They encompass more than just the letters of the cross reference and often include punctuation that follows, such as periods and closing parens.  This means that when we continue with our process of turning linked text blue, characters turn blue that should be black.  The old setup did not do this.
    Is there any way to adjust the margins/buffer/link size so that the links that are created are tighter around the linked text?  Is there another way to address this?  Adjusting each link of a large document is unsustainable, but leaving these characters blue is unacceptable.
    Your help is appreciated!

    Thanks very much for your reply.
    I was hoping there would be some tweak I could make to the settings of Distiller or maybe some registry tweaks to change the link rectangle buffer size prior to the creation of the PDF links from the Word document.  I understand that the links are just "rectangles on the page" once they exist in the PDF document--but even a script to decrease the size of all of the links in all directions after rendering the PDF would be helpful, since the increase in size seems to be in all directions.
    I suppose I can export the links to a spreadsheet and create a formula to decrease the link measurements by a specified amount and then re-import them.
    I wonder what caused the change.
    Here is a screenshot of the difference if it helps at all.  It's at two different magnifications, but you can still see that the period is included in one and not in the other.  And the link box is larger in all directions.
    Thanks again.

  • Can I generate separate Word docs and retain cross-references?

    I've poked around the forum and am seeing an answer to this, so forgive me if it's already been answered.
    I'd like to generate separate Word documents from within RH8 (as opposed to a single Word doc of the entire help system) and yet retain the functional cross-references across documents.
    As it is, if I generate the help as a group of Word docs, only cross-references having destinations within the same Word document are present. That's not hugely surprising, but it would help me a great deal if intra-document cross-references were present in the generated Word docs.
    Any ideas how I can do this?

    I believe that might work if you used the master document method. That said I strongly recommend that you research Word's master document method as everything I have read indicates the Word gurus suggest it has problems.
    Why would you want all these links working? If that is needed, shouldn't the user be accessing the online help?
    See www.grainge.org for RoboHelp and Authoring tips
    Follow me @petergrainge

  • Hi Sir! I have some questions regarding word report generation please.1.How can i add border to a word page?.2.How can i add grid lines to a table generated in word report?.3.How can i add border to a table of word report?.Thanks Imran Pakistan

    Hi !
    Sir I have some questions regarding word report generation using(C language in labwindows) Please.
    1.How can i add border to a word page?.
    2.How can i add border and grid lines to a table generated in word report(Not the " cvi table control" inserted from gui,i am asking about the table generated in word report)?
    3.How can i fill a cell of word report table withe the data type other than "character"?.
    And sir one question about use of timer in cvi labwindows please.
    Sir i'm trying to set minimum delay interval of timer control to 1millisecond(0.001s),as i set ,timer don't cares of the interval that is set by me it responds only to the default minimum time interval which is i think 10milliseconds(i'am using windows xp service pack3 version 2002).
    Regards
    Imran
    Pakistan
    Solved!
    Go to Solution.

    Hello sir!
    Sir i'm using daq6251.But Sir before implimenting it to my final application now i'm just trying to achieve 1millisecond time interval for timer in a vary simple programe i mean at this time no hardware (daq device) is  involved i,m just trying to achieve minimum time interval of 1millisecond.
    Sir i read form "help" of labwindows how this time interval can be set,i'm trying for,as described in help notes but i could'nt.I'm attaching a screen shot sir for you it may helpful for you to explain me.
    And sir also waiting for your kind reply regarding word report generation.
    Thanks.
    Imran.
    Attachments:
    screen_shot_rigistry.docx ‏65 KB

Maybe you are looking for

  • Adding Third Party system in PI SLD

    Hello Experts, I new to PI and would like to know, how to add any Third part system in the SLD, and scenario where sender is ABAP Proxy and receiver is Third party system, via SOAP Adapter. Regards, Abhishek

  • How to access symbol from different stage

    Hi everyone, I'm really new at Edge, so I still have a lot to learn and I need your help with something.. I want to know how to access a symbol from another stage, here's what I've and what I want to do.. I've the main index page with symbol named "c

  • How to enable 'login assitance' in oracle apps login screen?

    Hi experts, I want to enable the login assitance option in oracle apps Initial screen(User login screen). Please guide me Thanks & Regards, Kanish

  • Copy Express/ Account Segmentation

    Dear All, Am trying to make a duplicate of a Database by using copy express. Note that the Chart of Account is segmented. I have managed to copy everything using copy express except the Accounts . The title Accounts are being copied but no active acc

  • About Transparent Tables and Views..

    Greetings SAP Gurus... How does one differentiate between Tables, Views (are they the same as table views) and logical views?  What are the differences, if ever? Why is it better to create a view rather that create a table? Cheers! Philips