Save as xml
I have an html form with 10 fields, I want to save the info
in a database
field (a blob) as xml, is there an extension to do this ?
And then I have a page with same fields but to display the
info from the
database (xml) each value of xml where the field goes.
I hope I explained myself.
Aleks
I know that this option is allowed on SAP R/3 Enterprise Central Component 6.0,
BUT our system is 5.0.
is there any way that 5.0 can have this option ?
Similar Messages
-
How can I save a XML file with JAXP1.1?
Dear All.
I write a program to create XML file with DOM model, but I can't know how to save it? My environment is JAXP1.1 and JDK1.3.1,I has been required not use other XML parser toolkits,only JAXP1.1.
How can I do? thank you.
Many person give me a idea the com.sun.xml.tree.XmlDocument, but I can't find the class in API document or JAXP1.1's packages. why?
what is it? How can i use it?
thank you very much.The way to save an XML Document is using a Transformer.
To have access to a transformer use the packages :
import javax.xml.transform.*;
import javax.xml.transform.dom.*;
import javax.xml.transform.stream.*;
Then for saving your Document Object (named dXml) get a Transformer Object with the TransformerFactory Object :
TransformerFactory tf = TransformerFactory.newInstance();
Transformer t = tf.newTransformer();
Now you have got your Transformer Object, to save your Document Object use the method :
Document dXml = getMyDocument(); // this is your Document Object.
OutputStream osSave = getMySaveStream(); // this the OutputStream you need to save your Document.
try
t.transform(new DomSource(dXml), new StreamResult(new OutputStreamWriter(osSave)));
finally
osSave.close();
And your Document was now saved. -
FM Variables renamed and duplicated after save to XML
Hello again,
I am also encountering an issue where saving structured docs as XML results in duplication and renaming of variables. For example, in a particular document I have the name of the web service inserted as a variable 4 times throughout the piece. After I save to XML, the variable is renamed fmvar1, fmvar2, fmvar3, and fmvar4. So, when I open the doc again, instead of having 1 variable in 4 locations, I now have 4 variables in 4 locations.
Is this something I should expect, as there is no legitimate way to tell the XML doc (or for FM to pass that information on) that it is the same variable, used in 4 places?
Regards,
HannahHannah,
You don't mention the name of your FrameMaker variable. I suspect that it contains a space or other special character that is not permitted in an XML name.
FrameMaker writes variables to XML as general entity references. If a variable name is a valid MXL name, by default it uses the variable name as the entity name. Multiple references to such an entity can occur. If not, it names the variable fmvar# where # is an integer. In this case, you are correct that it generates a different entity for each occurrence of the variable. I also consider this proliferation of general entities to be a bug.
You can change the default behavior with a r/w rule in the form:
entity "twowords" is fm variable "two words";
In your case, thus, you have at least 3 choices:
1) Live with the multiple entities
2) Rename the variable to something that can be used as an entity name
3) Add a r/w rule for each variable in any document that causes this problem
--Lynne -
Save whole XML file in SQL table field
Hi All,
I want to save whole XML message in sql table field which is with datatype XML(.).. how can i achieve this.
Thanks in advance.
2Venture2I did a prototype to do what you are asking. I actually haven't inserted into the xml data type in SQL Server before, so I was curious if that added any complexity. I'll just go through the mapping pieces and assume that you can easily find documentation
on how to insert data into SQL Server using the Add Generated Items --> Consume Adapter Service function.
The interesting piece was writing the map. I used a simple PO schema. My sample table was XmlRepository with a ID column, RepositoryID, and the RawXml field.
The script is an inline XSLT script that is as follows:
<xsl:element name="ns3:RawXml">
<xsl:text disable-output-escaping="yes"><![CDATA[</xsl:text>
<xsl:copy-of select="/" />
<xsl:text disable-output-escaping="yes">]]></xsl:text>
</xsl:element>
The questoin right off is why the CDATA? Well, since the value of the RawXml element that needs to be inserted into SQL Server is XML data, it has to be wrapped in a CDATA tag. Otherwise, the XML data gets validated and will not properly make it to the SQL
Server. You can try it and see what I mean. Don't worry, the CDATA gets stripped before the XML gets written to the table.
The interesting piece are the xsl:text elements, which manually create a CDATA wrapper for the XML that ends up in the RawXml field. Apparently, the normal Grid Property for creating CDATA output doesn't work in conjunction with the xsl:copy-of function.
That tripped me up for a while!
What the map outputs is a document that looks like the following:
<ns0:Insert xmlns:array="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns:ns3="http://schemas.microsoft.com/Sql/2008/05/Types/Tables/dbo" xmlns:ns0="http://schemas.microsoft.com/Sql/2008/05/TableOp/dbo/XmlRepository">
<ns0:Rows>
<ns3:XmlRepository>
<ns3:RawXml>
<![CDATA[<ns0:PurchaseOrder xmlns:ns0="http://XmlRepositoryDemo.PurchaseOrder">
<PONumber>PONumber_0</PONumber>
<CustomerNumber>CustomerNumber_0</CustomerNumber>
<PODate>PODate_0</PODate>
<Items>
<Item>
<ProductID>ProductID_0</ProductID>
<Quantity>Quantity_0</Quantity>
<Price>Price_0</Price>
</Item>
</Items>
</ns0:PurchaseOrder>]]>
</ns3:RawXml>
</ns3:XmlRepository>
</ns0:Rows>
</ns0:Insert>
The map can be called from a simple Orchestration, or even a messaging-only scenario, and sent across the wire in a request/reply as you would for normally sending data to SQL Server.
I hope this helps. It ended up being more interesting than I expected! -
Error during "Save as XML" - SVG Image
Hi,
I am trying to save the book as XML (File à Save as XML), but its showing the attached error (FMError.PNG). FrameMaker created a error log and am pasting its header contents below.
=== Header Begin ===
Internal Error: 9004, 6920492, 9676798, 0
FrameMaker 9.0.0 for Intel
Build: 9.0p237
Window System: MSWindows
Operating System: Windows NT 6.1 (major.minor.build: 6.1.7600 )
Generated on: Wednesday, September 08, 2010 2:14:40 PM
To file: C:\Users\30088130\AppData\Roaming\Adobe\FrameMaker\9\FrameLog_10.09.08_14.14.40.txt
=== Header End ===
This errors occurs only if SVG images are present on the fm files.
Please help me on this.I just tested with a small sample SVG file (from here:
http://www.w3schools.com/svg/tryit.asp?filename=ellipse1&type=svg )
and FM didn't crash when I did Save as XML. I put the SVG inside an anchored frame.
Could you test using that specific image and see if you get the crash or whether it's OK?
Unfortunately FM did clip the right side of the image when the image is displayed, and also when the image is saved to XML (it was converted to GIF in the export).
Googling for "svg framemaker" brought up some old Framers list references to other issues with FM's SVG handling.
I also notice that in the maker.ini there is a commented out reference to an SVG import filter in the APIClients section:
;SVG Import=FileToFileGFXImport, SVG, FrameImage, SVG, ORBL, SVG, SVG, filters\svgfilter.dll,all,^.svg
SVG Import=FileToFileGFXImport, SVG, PDF, SVG, ORBL, SVG, SVG, filters\svg2pdf.dll,all,^.svg
What it seems to be changing is that the second line will automatically convert SVG to PDF on import, so
you might try the other filter:
save a backup copy of the maker.ini, open the makier.ini in a text editor, then switch the semi-colon to the next line, save, and test to see whether you get any better results.
Have you been able to successfully export any files with SVG, or does the problem only occur with some files?
Also, exactly how are you importing the problem SVG file into FM? Referenced or embedded, is it on a body page, master page, in an anchored graphic frame or not, etc? Do you know what application was used to create the SVG files?
Sheila -
I have a bunch of PDFs that I want to save as XML, is there any way to do this automatically? Without having to open them all up and go to File -> Save As -> XML.
ThanksI am trying to solve the exact same problem. What is batch sequencing? I need to be able to run a command to automatically save a set of framemaker files as xml.
Thanks! -
FrameMaker 12 Save as XML crash
Has anyone had any trouble saving as xml in FM12? Using the same structured applications that have worked through framemaker 8, 9, 10 and 11 we now get a crash in Framemaker 12.
The crash doesn't seem to be in our IO client. The last notification we receive is:
notification [13] sparam [TryAlternativeExtensions 0]
Has Framemaker 12 changed anything in this area?
regards,
Colin ClarkColin,
There were some issues reported during the pre-release with Save As XML. Can you post some more details (and file any FM crash logs by emailing to [email protected] ). I'll alert the engineers to have a look at this thread. -
How do i save FSG xml report output to External Drive.
We are implementing XML publisher to replace our ADI. How i save xml publisher report output to network drive also need to change report name dynamically.
The answer from oracle is
:There is no built-in functionality to do what is requested however,
the output file exists at the O/S level and a printer DRIVER can be created and in the "Arguments" field, a copy command can be entered instead of the print command"
how do i implement this. help please
ThxMake sure the drive is formatted Mac OS Extended (Journaled)
Do you want to merge these libraries into one? If so, then you'll need the paid version ($20) of iPhoto Library Manager
It's the only way to merge Libraries while preserving all metadata, versions and so on.
Otherwise, simply rename one of the Libraries (so they don't overwite each other) and Copy the iPhoto Library from the Pictures Folder to the External Disk. in each case.
To choose which library to open: holf down the option (or alt) key while launching iPhoto. From the resulting menu select 'Choose Library' and navigate to the new location.
Regards
TD -
How to save as XML with some predefined extensions
hi All,
In my application a template has to be created which should contain field headers and their respective field types - example field header LEVEL and field type COMBO BOX. Purpose is - a table will be created based on the fields in the template. Now I want to save this template as XML file with some predefined extension (like .templ). Later in my application i will retreive the saved template and use it to create table.
How can i save the file as XML with some predefined extension. We are using Swing to create template. Please help me with sample programs to solve this problem.
awaiting for your mail
Thank you
Regards
MKumarIn an other post I found my solution thanks to "Peggy" :
Save As… has returned with Mountain Lion. Hold down the Option/alt key while clicking on the File menu & there it is! It also has a default keyboard shortcut.
Thank you Peggy -
Hi,
I get the following error while trying to save fm files as XML.
=== Header Begin ===
Internal Error: 8004, 4867936, 4920984, 4921436
FrameMaker 8.0.0 for Intel
Build: 8.0p266
Window System: MSWindows
Operating System: Windows NT 6.1 (major.minor.build: 6.1.7600 )
Generated on: Tuesday, November 26, 2013 2:01:40 PM
To file: c:\program files\adobe\framemaker8\FrameLog_13.11.26_14.01.40.txt
=== Header End ===
-rameshYes .. definitely get the latest FM8 patch, that may solve the problem.
http://www.adobe.com/support/downloads/product.jsp?product=22&platform=Windows
However, if this is a structured document, you should also be sure to validate (Element > Validate) the file before saving. Also check for graphics that are referenced from a reference page, and you may want to delete any cross-refs that aren't resolved (or resolve them). FM can crash for a variety of reasons when saving to XML, anything that's slightly amiss is likely to cause a problem.
Cheers,
...scott -
Digital signature save file xml
hello, you can save the digital signature in an XML file?
Make sure you also change your SignatureMethod algorithm to RSA_SHA1, ex:
... fac.newSignatureMethod(SignatureMethod.RSA_SHA1, null) ... -
Save Output Xml Generated During Bursting Process To Database
Hi All,
I am using BI Publisher 10.1.3.4.1 to geneate pdf invoices from xml file. One xml file contains around 10k invoices. During bursting process, I can see that xml file for each individual invoice is generated in the log directory along with some other files. Can I save the individual xml files in database instead of in a directory. How do I achieve this?
Help from any one is highly apreciated.
Thanks
Angshuman
Edited by: Angshuman on Aug 23, 2010 12:28 AMyou have to use the bursting engine api and burst in your java code, and listen to the listener, which will give you the handle to the xml files, then you can store them in DB.
-
Where to save web.xml file in apache jserv with servlet 2.0
hi,
we are using apache jserv which included servlet 2.0 we are able to run .class files and
jsp files,but we are using web.xml file for connection pooling which we were used in tomcat
but we are unable to find web-inf folder in apache/jserv to save the file.
please help me out in this problem,
please guide us is there any other method of connection pooling apache jserv,we are using backend
as oracle9i
i will be greatfull to u in this regards
laiqHi,
Just create WEB-INF folder and copy the web.xml.
good luck !
...san :-) -
Data model editor cannot save samle XML data if data contains angle bracket
BI Publisher can correctly query data containing angle brackets, and it produces well-formed XML in that case. Angle brackets are correctly coded as < and >. However, if you try to save the generated XML as sample XML for the data model, BI Publisher will issue the following error in its log:
[2012-02-17T14:12:07.491-08:00] [AdminServer] [ERROR] [] [oracle.xdo] [tid: 30] [userId: <anonymous>] [ecid: 4d7950b0e2efed24:2a9da7a7:135894f9533:-8000-0000000000002f73,0] [APP: bipublisher#11.1.1] End tag does not match start tag '...'.
where '...' would be any characters appearing between the open angle bracket and the close angle bracket. The sample XML data will not save, so you cannot open the report in the Desktop TemplateBuilder for Microsoft Word.
Note that this bug is not fixed in the latest February patch for version 11.1.1.5.
Edited by: 906888 on Feb 17, 2012 2:51 PMok...tell me this, are you saying you are encoding the angle brackets or bi publisher is doing it automatically????
With the data I worked, & (ampersands) were more predominant and I replaced the columns containing them with +& a m p ;+ (without spaces) and everything was fine....
-bifacts
http://www.obinotes.com -
SharePoint 2010 - InfoPath form not opening in browser but prompts to open or save the xml
I have 6 site collections for a web app. An InfoPath form has been deployed which is filled by users from each subsite under these site collections. Until recently the form is working fine but recently it stopped opening the form in browser on 4 out of
6 site collections. On the site collections it's not working, when users try to open the InfoPath form, they get the option to save or open the .xml file. This form hasn't been changed since Dec. Not sure what broke this. Can any one help?Hi,
1.Check whether feature is activated for the infopath form on site collection level. if it is not activate and it will open form in browser.
2.You need to set Browser
File Handling to Permissive.
Open Central Administration -> Manage Web Applications
-> Select web application -> General Settings >>
Browser File Handling >> set to Permissive .
https://social.msdn.microsoft.com/Forums/office/en-US/3367ce25-5933-47c5-9c10-b00f8a11fe4e/sharpoint-2010-published-infopath-2010-filler-form-open-save-or-save-as?forum=sharepointcustomizationprevious
Regards,
Rajendra Singh
If a post answers your question, please click Mark As Answer on that post and Vote as Helpful
http://sharepointundefind.wordpress.com/
Maybe you are looking for
-
If 1.1 froze your new iMac, dont' give up yet - try this first
+If your aluminum iMac gave you problems before the Firmware Update v1.1, this is not the thread for you.+ But if your new iMac was fine out of the box, and fine after Update 1.0, _but became problematic after 1.1_, read on. This was my case - all wa
-
Now I can't add all my files from my Ipod back to my itunes. I get a message telling me that all my files on my Ipod will be deleted and synced with another Itunes library. Since the restore, I now have a new library with about 25 new songs, but noth
-
Speech Recognition not working when tested in IE on Windows 8.1
Hi, I have adapted the example code form the Speech Recognition documentation to fire up Speech recognition in Visual Studio for Web Express 2013 on Windows 8. The speech synthensizer works fine when I fire up the app in IE and produce Text-to-speech
-
Hi, I am working on a requirement. If customer is buying material B also then only he would be eligible for some discount on material A. System would search the condition record for K004 condition type maintained for material A, if it finds another m
-
Used Contribute since version 2, recent upgrade (from CS 3) to CS 5. The annoying side bar needs to be GONE, but when it is closed there remains a slightly smaller sidebar with "PAGES" and "HOW DO I..." I want the entire screen back that I've used t