Problem in converting XML to XML file
Hi,
I am trying to convert xml file to another xml through command-line interface but failed.
java oracle.xml.parser.v2.oraxsl data.xml data.xsl data_new.xml
My xml and xsl files are:
1. XML file
<employee_data>
<employee_row>
<employee_number>7950</employee_number>
<employee_name>ABC</employee_name>
<employee_title>PRESIDENT</employee_title>
<manager>1111</manager>
<date_of_hire>20-JAN-93</date_of_hire>
<salary>65000</salary>
<commission>1000</commission>
<department_number>10</department_number>
</employee_row>
</employee_data>
2-1 XSL file
<?xml version="1.0" ?>
<xsl:stylesheet xsl:version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml"/>
<xsl:template match="*">
<xsl:copy>
<xsl:apply-templates>
<xsl:sort select=".//employee_name"/>
</xsl:apply-templates>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>
2-2 XSL file
<?xml version = "1.0"?>
<ROWSET xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:for-each select="employee_data/employee_row">
<ROW>
<EMPNO><xsl:value-of select="employee_number"/></EMPNO>
<ENAME><xsl:value-of select="employee_name"/></ENAME>
<JOB><xsl:value-of select="employee_title"/></JOB>
<MGR><xsl:value-of select="manager"/></MGR>
<HIREDATE><xsl:value-of select="date_of_hire"/></HIREDATE>
<SAL><xsl:value-of select="salary"/></SAL>
<COMM><xsl:value-of select="commission"/></COMM>
<DEPTNO><xsl:value-of select="department_number"/></DEPTNO>
</ROW>
</xsl:for-each>
</ROWSET>
I used two xsl file to test but received same error message:
Error occurred while processing data.xsl: Error in expression: '*|/'.
Does anyone know how to fix the problem? I'll appreciate it very much for your help.
Thanks.
Yi
Hi,
I have only tried it out with XML Spy, but anyway:
there seems to be an error in your 2-1 XSl file in line 2:
the correct stylesheet declaration is:
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
You had an empty namespace and a wrong version attribute...
HTH,
Bernhard
Similar Messages
-
Problem when converting a 3d Autocad file to a 3d pdf
Hi all,
I am trying to convert a 3d .dwg file from autocad to 3d pdf using adobe 9 pro extended. The file I am trying to convert is actually a TIN from a survey. Within Autocad the TIN shows up as a series of contiguous triangles next to one another. I am able to change this visualisation via the "Visual styles manager" so it looks like a nice shaded surface rather than 1000's of triangles. However when I convert this to 3d pdf the pdf brings in all the triangles outlines rather than showing as a continuous shade (like in autocad). I am following the process of draging the drawing into Adobe then exporting to 3d reviewer and creating a .u3d file by exporting from reviewer. When the data is in 3d reviewer it still looks like it originally did in Autocad. But once I create the pdf from the .u3d file thats when it changes back to a series of triangles.
Does any one have any idea on how I could rectify this problem? I have attached a link to a screen shot I took. On the left is what the data looks like in Autocad (and ultimately what I would like the 3d pdf to look like. And on the right is the 3d pdf that I have managed to create.
Any help on this would be greatly appreciated.
Thanks, Grant
http://www.flickr.com/photos/50145309@N07/4602969238/sizes/l/I don't know much about Word these days but I know that Calibri is a MS font. There isn't any way you can stop the warnings. They are to help you. If they are so annoying ask the creator of the Word document to use another font, one that doesn't give you warnings.
If you can get the font you double click on the file and you'll get the possibility to install it. Search for the font on internet or on MS site
"Is there a 'clear all formatting' feature in Pages as there is in Word and would this remove the allegedly hidden Calibri font?!"
No, not that I can see but you can if you paste the content of a Word document and use PAste and Match style get a preset font but that is just for that particular document. -
Problem in converting Spool to PDF file, having non-English characters
Hi All,
I have problem in converting Spool to PDF format.
Scenario : I have a spool which has non-English characters. I am using CONVERT_ABAPSPOOLJOB_2_PDF FM to perform conversion. But my output is having junk values( ie # ) for non-English characters. Any pointers to solve this issue will be appreciated.
I even tried with report RSTXPDFT4 , it also gives me the same junk characters.
Regards,
Navin.Hi All,
I have problem in converting Spool to PDF format.
Scenario : I have a spool which has non-English characters. I am using CONVERT_ABAPSPOOLJOB_2_PDF FM to perform conversion. But my output is having junk values( ie # ) for non-English characters. Any pointers to solve this issue will be appreciated.
I even tried with report RSTXPDFT4 , it also gives me the same junk characters.
Regards,
Navin. -
Hi,
I write the some asp code to save the word file from client machine to server machine , and convert it into the html file.
it working fine when i debug the code into the visual studio but when i deploy code on iis it give me a error 'This command is not available because no document is open' , while i try to save file into html format.
lot of time i try this give all the security full access to iis user and other things .
can any one help me. i fully frustrated from this problem.
my need only upload the word document from client to server machine and convert it into the word document.
only IIS give me the problem, suggest me what setting i need to do in iis
please help me humble requestHi,
In this forum we mainly discuss questions about Office client questions and feedbacks, issues related to coding are not supported here.
Based on the description, although the question is about converting Word documents, it's more likely to be a permission issue, the question is better to be posted in the IIS.NET forum:
http://forums.iis.net/
The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.
Regards,
Melon Chen
TechNet Community Support
It's recommended to download and install
Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
programs. Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected] -
Having problems extracting/convert Adobe Reader Pdf files to Adobe Digital Reader files.
I am currently having problems trying to convert my Adobe Acrobat PDF file to and Adobe Digital Reader File.
oWhat kind of problems?
-
Problem in converting spool to PDF file
Hi guys,
My spool contains Russian characters which are shown as one special char in pdf file. I guess the russian char. are not recognized by pdf.
I convert the spool to pdf using following FM
CALL FUNCTION 'CONVERT_OTFSPOOLJOB_2_PDF'
EXPORTING
src_spoolid = wa_spool-spool
no_dialog = ' '
IMPORTING
pdf_bytecount = v_numbytes
pdf_spoolid = v_pdfspoolid
btc_jobname = v_jobname
btc_jobcount = v_jobcount
TABLES
pdf = pdf.
Then i download the file using FM:
CALL FUNCTION 'WS_DOWNLOAD'
EXPORTING
bin_filesize = v_numbytes
filename = v_return1
filetype = 'BIN'
TABLES
data_tab = pdf
Help me....
Point will be rewarded on helpful answers.
Regards,
GURUHI
use my code
it will do the entire job
*& Report Z8VM_SPOOL2PDF *
report z8vm_spool2pdf .
**---- Author : vivekanand meghmala
**---- Purpose : Create Single PDF file with outputs of
**---- Multiple Spools.
**---- Create Date: July 05th, 2006
**---- Analyst : Vivek Maheshwari
**---- Tables
tables : tsp01.
**---- Select Options for Multiple spools
select-options :
s_spool for tsp01-rqident obligatory.
**---- Parameters for File Path.
parameters :
p_file type localfile default 'C:combined.pdf' obligatory.
**---- Get the Spool Requests entered in Select-options for Spools.
data : i_tsp01 like tsp01 occurs 0 with header line.
**---- Work Areas and Variables
data: wa_eof type soli, "----- End of File Work Area
v_file type string, "----- String
v_size type i, "----- Size
v_lines type i. "----- Lines in Internal Table
**---- Internal Table for Spool Details and PDF and Document Details
data : i_spool_table type table of soli,
i_spool_total type table of soli with header line,
i_otf type table of itcoo with header line,
i_doc like table of docs,
i_pdf like table of tline.
**---- Move File name to Variable
v_file = p_file.
**---- Clear and Refresh Internal Tables before first use
clear i_tsp01. refresh i_tsp01.
clear i_spool_table. refresh i_spool_table.
clear i_spool_total. refresh i_spool_total.
**---- Get Spool ID Details from TSP01
select * from tsp01 into table i_tsp01 where rqident in s_spool.
**---- Sort Table in Ascending order based on Spool Id
sort i_tsp01 by rqident.
**---- Get information about Multiple spools
loop at i_tsp01.
**---- Get Multiple Spool information
call function 'RSPO_RETURN_SPOOLJOB'
exporting
rqident = i_tsp01-rqident
tables
buffer = i_spool_table
exceptions
no_such_job = 1
job_contains_no_data = 2
selection_empty = 3
no_permission = 4
can_not_access = 5
read_error = 6
type_no_match = 7
others = 8.
if sy-subrc = 0.
endif.
**---- Get the Last line index (Number of Lines)
describe table i_spool_table lines v_lines.
**---- Clear Work Area for End of File (EOF) and read
**---- End of File String into it and Delete it
clear wa_eof.
read table i_spool_table index v_lines into wa_eof.
delete i_spool_table index v_lines.
**---- Collect All individual Spool Details into one internal table.
append lines of i_spool_table to i_spool_total.
at last.
**---- Append End of File information to Internal table
**---- Containing information about all the invidual spools -
**---- Thus forming one single spool
append wa_eof to i_spool_total.
endat.
endloop.
**---- Clear OTF tables before initial use
clear i_otf. refresh i_otf.
**---- Fill in the OTF internal table
loop at i_spool_total.
clear i_otf.
i_otf = i_spool_total.
append i_otf.
endloop.
**---- Convert the OTF information to PDF.
call function 'CONVERT_OTF_2_PDF'
exporting
use_otf_mc_cmd = 'X'
importing
bin_filesize = v_size
tables
otf = i_otf
doctab_archive = i_doc
lines = i_pdf
exceptions
err_conv_not_possible = 1
err_otf_mc_noendmarker = 2
others = 3.
if sy-subrc <> 0.
message i002(sy) with 'Cannot convert to PDF, exiting....'.
leave program.
endif.
**---- Download PDF file thus formed onto frontend
call method cl_gui_frontend_services=>gui_download
exporting
filename = v_file
filetype = 'BIN'
changing
data_tab = i_pdf
exceptions
file_write_error = 1
no_batch = 2
gui_refuse_filetransfer = 3
invalid_type = 4
no_authority = 5
unknown_error = 6
header_not_allowed = 7
separator_not_allowed = 8
filesize_not_allowed = 9
header_too_long = 10
dp_error_create = 11
dp_error_send = 12
dp_error_write = 13
unknown_dp_error = 14
access_denied = 15
dp_out_of_memory = 16
disk_full = 17
dp_timeout = 18
file_not_found = 19
dataprovider_exception = 20
control_flush_error = 21
not_supported_by_gui = 22
error_no_gui = 23
others = 24.
if sy-subrc <> 0.
message i002(sy) with 'Cannot download PDF, exiting....'.
leave program.
endif. -
Problem in converting spool to pdf
Hi Experts,
I want an internal table to be converted to the PDF. For this RSPO_OPEN_SPOOLREQUEST, RSPO_WRITE_SPOOLREQUEST and RSPO_CLOSE_SPOOLREQUEST to create the spool. However, somehow the table tsp01 does not gets updated as a result i could not convert the data to PDF. Can any one help me how this problem could be solved.
Thank.
Warm Regards,
Harshad.Hi,
you can refer this sample code.
DATA: t_otfdata_tab LIKE ITCOO OCCURS 0 WITH HEADER LINE.
CALL FUNCTION 'CLOSE_FORM'
TABLES
OTFDATA = t_otfdata_tab
fill the exceptions..
IF SY-SUBRC = 0.
ENDIF.
then pass the t_otfdata_tab to this function module..
CONSTANTS: c_pdf(03) VALUE 'PDF'.
PDF File size
DATA: w_file_size TYPE I.
Internal Table to hold Form contents in PDF format
DATA: t_pdfdata_tab LIKE tline OCCURS 0 WITH HEADER LINE.
for converting. the output format from OTF to PDF
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
FORMAT eq c_pdf
IMPORTING
BIN_FILESIZE = w_file_size
TABLES
OTF eq t_otfdata_tab
LINES eq t_pdfdata_tab
EXCEPTIONS...
use these links, hope it will be useful to you....
Problem in converting spool to PDF file
Problem in converting the spool to PDF.
Thanks and Regards,
Ahamed. -
Problem using xsl to convert xml to xml
I have and xml doc that has a format similar to this:
<HEADER>
<ORDER_NUMBER>
<ORDER_DATE>
<LINE>
<LINE_NUMBER>
<ITEM>
</LINE>
<LINE_NUMBER>
<ITEM>
</LINE>
</HEADER>
When I convert from xml to xml using xsl I do not get the second occurence of <LINE>, everything else looks fine.
Please help.
Thanks, JohnHi John,
I also have problems to convert xml to xml by xsl at command-line interface as follows.
CLASSPATH=$ORACLE_HOME/rdbms/jlib/xsu12.jar:$ORACLE_HOME/lib/xmlparserv2.jar:$ORACLE_HOME/jdbc/lib/classes12.zip
java oracle.xml.parser.v2.oraxsl source.xml -s myxsl.xsl destination.xml
and I received error message as "Error occurred while processing myxsl.xsl: Error in expression: '*|/'."
Actually, the source xml file and xsl script I used were copied from the book "Professional XML".
Do you know what's the problem and could you show me setting for the classpath?
Thanks.
Yi -
problem opening mail attachments...were opening seamlessly on os 7.0...get an error
Filename
Office open XML document/presentation
File size
Does anyone have a solution? Please help.Hi Charlotte,
You don't say what your version of Windows you have. Assuming XP, go to Start | Run, type DXDIAG and click OK. Click the Sound tab and run the tests to eliminate a hardware problem first of all. If you don't hear anything, check your cables first of all. Also make sure "Mute" isn't checkmarked in your sound setup. You'll find that in Windows Control Panel.
Which browser do you use? If you have Firefox 4, sign up to the HTML5 trial @ http://www.youtube.com/html5
HTML5 is the latest video standard and doesn't require Flash player. Google is in the process of converting all its files to work with the new format. It may solve you problem. If you don't have Firefox 4, you can get it from here: http://www.mozilla.com/en-US/firefox/fx/
IE8 doesn't support HTML5.
To clean out your temp files, go to Start | Run, type: CLEANMGR and click OK. Click OK again to start the utility. Tick all the boxes except "Compress old files" because the latter takes too long, and then click OK. You can run this utility any time you wish by the way.
The above steps will hopefully fix your problem. If not, post here again please. -
How can I convert pdf file to xml or html file.
Hello
My English ability is very poor. sorry.
I want to extract text and image from pdf file.
so, I try use itext. but.. I can't make what I want .
I searched pdfbox and jpedal.
but I can't get my solution.
Just I want to convert pdf to xml or html(html prefer).
I think pdfviewer is hint.
but I can't get full source(in jpedal)
Plz help.. me.....
Does anybody solve this problem?Stay in your old thread
[http://forums.sun.com/thread.jspa?threadID=5198647]
Don't multi/crosspost or your account will be locked. -
Facing problem in xml schema xsd file registration
Hi,
i am facing problem in xml schema xsd file registration when
the number of column is more. It is showing persing error.
if i am deleting few column from xsd file . It is working otherwise
showing error. Is there any solution for that please suggest me.
The Error is
ORA-31011:XML parsing failed
ORA_19202: Error occurred in XML processing
LPX-00230 : (message vary time to time-like invalid tag ending etc.)
Regards
Manoranjan
and thanks in advanceWhere is you XML coming from. Are you sure it's valid. If you are hard coding it as a SQL String constant are you hitting the 4k / 32K limit on the size of SQL / PL/SQL constant. Have you tried loading the content from a bfile..
-
Hi Guys,
I need to generate the XML from Excel file. The XML file will have the definition like this:
<people_list>
<name>Fred Bloggs</name>
<birthdate>27/11/2008</birthdate>
<gender>Male</gender>
</people_list>
The Excel file will look like this:
A B C
1 Fred Bloggs 10/21/2008 Male
2 ABC 12/23/2008 Female
3 XYZ 07/16/2008 Male
All the values in name,birthdaye,gender will come from the Excel file. I am having 100 rows in the Excel file with the data and I want to parse this excel file and create the XML file with the above template.
Any ideas how to do this?
Thanks,
MaheshHi Mahesh,
there are tons of ways to do what you need. It all depends on how your workflow is organized and how complicated it may become.
Alternative 1:
Export your Excel file as a cvs and convert cvs to XML (which shouldn't be so hard).
Pro: Relative easy transformation.
Con: Every time you want to convert the Excel file to XML you first needs to export it out of Excel by a manual step.
Alternative 2:
Save you Excel file as XML (e. g. the new *.xslx documents) and transform it as you like.
Pro: Very clean way to do this. You can access the single source Excel file directly from Java. No further steps needed.
Con: It's very very hard to program because the Excel xml structure is ridiculously complex.
Alternative 3:
You can create a little Excel VBA Script which generates the XML File.
Pro: Easy programing.
Con: Needs some experience in Visual Basic 6 programming.
Alternative 4:
Use http://jexcelapi.sourceforge.net/ or any other Excel-API to Access the Excel application out of Java.
Pro: Clean way to do it. You need no further manual actions to prepare something. (maybe the most flexible and at the same time easyest way)
Con: Additional license.
Best Wishes
esprimo -
Hi all
I want a sample procedure in which i would to like to fetch data and save the output to a XML File.
Someone please help me in giving me the sample procedure.
Regds
Nirmalsee this link, may be it will help
http://blog.oraclecontractors.com/?p=147
Well that shows you how to extract data on the database as XML, but it doesn't show how to output it to a file.
I'll give a hint. If you have your data as an XMLTYPE you can convert it via CLOB to and XMLDOMDocument type (as in the DBMS_XMLDOM package). Once you have an XMLDOMDocument you can use one of the DBMS_XMLDOM procedures to write out the XML to a file...
DBMS_XMLDOM.WRITETOFILE(
doc IN DOMDOCUMENT,
filename IN VARCHAR2);
;) -
Convert FMB to XML File on Unix
Hello,
I want to convert a FMB-File to XML in my HP-UX-Middletier-Environment.The Script frm2xml.sh is only shipped with IDS.
Can someone upload the frmf2xml.sh from a linux or Solaris IDS-Enviroment?
RobertSo if we were to keep text-based source files, the process would have to be:
- check-out to local working copy
- convert XML to FMB
- make changes using Forms Developer
- convert FMB to XML
- commit to svn
I'm concerned about the side-effects of the conversion process (edge-cases, incompatibilities), and I also expect that even with some automation, the above will be a pretty slow process that will slow the team down. I guess we'll probably stick with fmb.
I guess as a compromise, it may be worthwhile generating the xml or fmt alongside the fmb and committing both. At least we'd then have a text-based file to compare revisions with. So the process then becomes:
- check-out to local working copy
- make changes using Forms Developer
- generate XML from FMB
- commit both to svn
I'm still baffled as to why Oracle has chosen a binary source format, even 15 years ago. This basically precludes a vast number of tools and techniques that are essential to the software craft :( -
Convert XML to text file and sending the same via Mail receiver adapter
Dear All,
I have a requirement like....
I am getting a XML file as a result of mapping and it needs to be converted to a TEXT file and
the converted file needs to be sent to a mail address in text format.
Any body has idea how to achieve this?
Thanks in advance for your help.
Regards
Hari>
HP CReddy wrote:
> Dear All,
>
> I have a requirement like....
>
> I am getting a XML file as a result of mapping and it needs to be converted to a TEXT file and
> the converted file needs to be sent to a mail address in text format.
>
> Any body has idea how to achieve this?
>
> Thanks in advance for your help.
>
> Regards
> Hari
use the StructXML2Plain or XML2Plain from the standard MessageTransformBean
Add the module to you Mail adapter before the mail adapters standard module itself
Ref: http://help.sap.com/saphelp_nw04/helpdata/en/24/4cad3baabd4737bab64d0201bc0c6c/content.htm
Maybe you are looking for
-
Hola. Tengo una Samsung Galaxy Tab 4 con Android 4.4 Kit Kat. Es imposible ver videos en Firefox. En otros navegadores los videos se ven bien, pero no en Firefox. De ninguna versión. Ahora mismo tengo Ff37, pero el mismo problema existe en todas las
-
I changed the mac´s disk and now sometimes a rainbow circle appears from time to time and processing stops, what is happening??? it is a MAC Pro 8GB RAM Snow leopard 10.6.8
-
WLC 5508 and LightWeight APs Deployment question
Hi There, Can you please wit the following question in regards to the deployment of a new WLC and new LAPs, I have configured and connected a 5508 WLC and 3500 series LAP. LAG is enabled in the WLC and successfully connected to the neighboring switch
-
Error:Registered login failed for shared services...
Hi All while i was configuring the Calc Manager after foundation services ,the window display the error:Registered login failed for shared services.... I try to use the correct user name and password for it .check the installation guide for Hyperion
-
Batch selection during picking (VL02N)
Dear SD Members, We have recently implemented ECC 6.0 Batch management is active. We have an issue in picking. During picking (VL02N) when we have to select batch, system shows all the batches that are for that specific plant material combination. Si