Strange issue creating a BCP xml format file with double dagger '‡' (alt + 0135) as column terminator with bcp.exe
Hi,
I'm having issues generating a BCP XML format file using a fairly unusual column terminator, a double dagger symbol
‡ (alt + 0135) which I need to support.
I'm experiencing this problem with bcp.exe for SQL2008 R2 and SQL2012.
If I run the following command line:
bcp MyDB.TMP.Test_Extract format nul -c -x -f "C:\BCP\format_file_dagger_test.xml" -T -S localhost\SQL2012 -t‡
I end up with a XML format file like so:
<?xml version="1.0"?>
<BCPFORMAT xmlns="http://schemas.microsoft.com/sqlserver/2004/bulkload/format" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<RECORD>
<FIELD ID="1" xsi:type="CharTerm" TERMINATOR="ç" MAX_LENGTH="255" COLLATION="SQL_Latin1_General_CP1_CI_AS"/>
<FIELD ID="2" xsi:type="CharTerm" TERMINATOR="ç" MAX_LENGTH="50"
.. and so on.
You will notice that the TERMINATOR="ç" (Minuscule c-cedilla) is output instead of TERMINATOR="‡". The
ç character, is strangely enough is alt + 135 (and not alt + 0135) so this might more than a coincidence! I know you can specify the codepage but this switch applies the data being imported or extracted and not for the format file
itself (I tried it anyway).
In order to use the XML file to bulk import I manually did a text substitution of 'ç' character for '‡' and then BCP imports '‡' data fine.
This character swap doesn't occur if I generate a non XML format file (the '‡' character is output in the format file correctly) however, this file produces other import errors, which I don't encounter if I use a standard delimiter like a comma. So I have stuck
with the working XML format file which I prefer.
Does anyone know why this is happening? I'm planning to automate the generation the of the XML format file and would like to avoid the additional step of text substitution if possible.
Thank you.
Hi Ham09,
According to your description , we do a test and find that the character of the terminator is changed due to the code page of Operation System. When you choose the different time zone in Data and Time bar, and do the same bcp test, you will find it will
export the different TERMINATOR in your XML format file. For example, you can import the character "ç" (alt + 135) in (UTC-12:00)International Date Line West time zone and (UTC+09:00)Osaka, Sapporo, Tokyo time zone, and check if the terminators are different.
By default, the field terminator is the tab character (represented as \t). To represent a paragraph mark, use \r\n.
For more information, there is detail about code page(Windows), you can review the following article.
http://msdn.microsoft.com/en-us/library/windows/desktop/dd317752(v=vs.85).aspx
Regards,
Sofiya Li
Sofiya Li
TechNet Community Support
Similar Messages
-
Creating xml format file with double dagger ‡ as delimiter
Hi,
My source files are delimited with double dagger (‡) and I am using openrowset to load the files to SQL Server. When I am creating the format file by specifying the delimiter as ‡, the format file created has a different delimiter than the specified one.
The new delimiter appearing in xml format file is ç.
Any help?
TIA
Nitesh Rai- Please mark the post as answered if it answers your questionHow did you create format file?
Try this method and see if it works
http://visakhm.blogspot.com/2013/10/generate-format-files-based-on-table.html
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs -
Create XML format file in bulk insert with a data file with out delimiter
Hello
I have a date file with no delimiter like bellow
0080970393102312072981103378000004329392643958
0080970393102312072981103378000004329392643958
I just know 5 first number in a line is for example "ID of bank"
or 6th and 7th number in a line is for example "ID of employee"
Could you help me how can I create a XML format file?
thanks alotThis is a fixed file format. We need to know the length of each field before creating the format file. Say you have said the first 5 characters are Bank ID and 6th to 7th as Employee ID ... then the XML should look like,
<?xml version="1.0"?>
<BCPFORMAT xmlns="http://schemas.microsoft.com/sqlserver/2004/bulkload/format"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<RECORD>
<FIELD ID="1"xsi:type="CharFixed"LENGTH="5"/>
<FIELD ID="2"xsi:type="CharFixed"LENGTH="2"/>
<FIELD ID="3" xsi:type="CharFixed" LENGTH="8"/>
<FIELD ID="4" xsi:type="CharFixed" LENGTH="14"/>
<FIELD ID="5" xsi:type="CharFixed" LENGTH="14"/>
<FIELD ID="6" xsi:type="CharFixed" LENGTH="1"/>
</RECORD>
<ROW>
<COLUMNSOURCE="1"NAME="c1"xsi:type="SQLNCHAR"/>
<COLUMNSOURCE="2"NAME="c2"xsi:type="SQLNCHAR"/>
<COLUMN SOURCE="3" NAME="c3" xsi:type="SQLCHAR"/>
<COLUMN SOURCE="4" NAME="c4" xsi:type="SQLINT"
/>
<COLUMN SOURCE="5" NAME="c5" xsi:type="SQLINT"
/>
</ROW>
</BCPFORMAT>
Note: Similarly you need to specify the other length as well.
http://stackoverflow.com/questions/10708985/bulk-insert-from-fixed-format-text-file-ignores-rowterminator
Regards, RSingh -
We use a doc template to create a purchased part spec document and then save them as pdf formatted files. These part spec documents are also appended with the datasheets for these purchased parts. When we want to update/revise the document, is there a method, using Acrobat, to make those updates to the pdf, or must we go back to the doc template and basically generate a new document?
Also, our resulting pdf documents aren't searchable. How can we generate pdf documents that are searchable? I may want to search for a part value or name within the body of these pdf documents, but currently can't do that...very inconvenient.
Can you assist?Not totally sure about the search issue. A lot depends on how you created the PDF and what is in the datasheets you attached (like are they graphics?). The doc portion should be searchable as long as you used print to the Adobe PDF printer or PDF Maker. For your use, it may be that the print is adequate. However, the result should be searchable (unless maybe you had a form with filled in fields and created the PDF with PDF Maker. I think the form data may be retained in form fields and the fields are not searchable. In that case, a print might be a better procedure. (it would help to know the versions of WORD and Acrobat as well as the exact process you used to create the PDF.)
If the appended data sheets do not change, then you might try opening the original PDF and then using Replace Pages to replace the file created from the DOC file. -
ABAP program to output data from SAP table to an XML format file?
hello ABAP experts,
Does anyone know how to output data from SAP table to an XML format file? Would be appreciated if someone show the detailed sample codes and we will give you reward points!
Thanks!Edited by: Jose Hugo De la cruz on Aug 19, 2009 8:23 PM
-
Help on Trasnfering .wsdl/xml format files using FTP Adapter
Hi,
I am new to Oracle BPEL and JDeveloper....
I created some processes to transfer .txt files from one location to another location using FTP Adapter..
Know I have some files on .wsdl/xml format... using bpel process can we transfer these files from one location to another location using FTP Adapter (Is it possible for .wsdl/xml files)
can any one help me on this plz
Thanks
VenkatThanks Guys .. I am able to transfer .WSDL files also
Thanks
venkat -
Creating datetime in XML format from ABAP
Hello All:
I have a ABAP program that creates an XML file and everything is fine. I just need one date field in XML to conform to W3CC standard (EX: 2006-12-01T10:53:05.2170000). I need datetime in the format "2006-12-01T10:53:05.2170000". How do I acheive this in ABAP?
Thanks.
MithunThat seems to be easy:
DATA:
lv_timestamp TYPE timestampl,
lv_xml_date TYPE string.
GET TIME STAMP FIELD lv_timestamp.
CONCATENATE lv_timestamp+0(4)
lv_timestamp+4(2)
lv_timestamp+6(2)
INTO lv_xml_date
SEPARATED BY '-'.
CONCATENATE lv_xml_date
'T'
INTO lv_xml_date.
CONCATENATE lv_timestamp+8(2)
lv_timestamp+10(2)
lv_timestamp+12(2)
INTO lv_xml_date+12(8)
SEPARATED by ':'.
CONCATENATE lv_xml_date
lv_timestamp+5(7)
INTO lv_timestamp
SEPARATED BY '.'.
Reward points, if reply is applicable
Edited by: Mike Schernbeck on Jan 30, 2008 9:24 PM -
Data Import from XML Format file
I want to import data from XML file format.Can i do it ? If yes then please give me more details in the step.
Pl read the below link.
It will be helpful.
SAP Business One Application
Jeyakanthan -
Hello, we are trying to import some of our Incident records from BMC Remedy into Service Manager. Our data architect is running into some difficulty finding the necessary information to create the format file (we plan to use the CSV import process).
Is there a comprehensive document that details out all of the properties available for Incidents, affected users, relationships, etc. in order to build the XML format file? For example, System.WorkItem.Incident is the main type for Incidents. Under
that, there is an 'Affected User' class.
Is anyone aware of this type of documentation for Service Manager?
Thanks in advance,
BrettHi,
Affected user' is a relationship. System.User is a class. Your data architect has to investigate SCSM management packs to get the required info. Use this PowerShell command with standard SCSM poweshell console to get all management packs in pure XML. "c:\mp"
is a path that you could change.
Get-SCSMManagementPack | Export-SCSMManagementPack -Path c:\mp
Cheers,
Marat
Site: www.scutils.com Twitter:
LinkedIn:
Facebook: -
Create XML external file through BIP
Hi All,
I'm trying to create an XML document to send to a printing company.
I've created the XSL template file and uploaded into BIP as an XSL Stylesheet.
The problem I'm having is how to call the stylesheet from within an RTF file, so I can create an XML formatted file to send to the printing company.
Can anyone point me in the right direction?
Thanks, Rod.Marcus
i'd recommend you create an empty project file in FCP and export it to XML.
use the exported file as resource data, as it provides you with the basic XML project file container.
then you can just add the additional <parent> and <child> elements as required
also highly recommended would be the free XMLLib osax from Satimage, although it would be better if you learn how to do it with the built in libraries
for basic aplescript info, visit http://applescriptsourcebook.com/
cheers
Andy -
Exporting xmltype table data into xml/txt file
I want to export data stored in oracle as xmltype table into xml format file.
I want to use alternatives to the method shown below as my xml file is large.
set long 10000000
spool c:\\StudentXMLJan08.xml
SELECT
XMLElement("Student",
XMLForest(s.studentid "studentid",
s.firstname "firstname",
s.lastname "surname"),
XMLElement("enrollments",
(SELECT XMLAGG(
XMLForest(sc.coursecode "courseid"))
FROM studentcourse sc
WHERE sc.studentid = s.studentid
and sc.is_approved='Y'
and sc.takenyear='2008'
and sc.takenterm='1')))
FROM student s
where s.statuscode in (select studentstatuscode from studentstatus where studentstatusactive=1)
order by s.studentid;
spool off
please help, thank youHow's this one for size
SQL> create or replace view DEPARTMENT_XML of xmltype
2 with object id
3 (
4 'DEPARTMENT'
5 )
6 as
7 select xmlElement
8 (
9 "Departments",
10 (
11 select xmlAgg
12 (
13 xmlElement
14 (
15 "Department",
16 xmlAttributes( d.DEPARTMENT_ID as "DepartmentId"),
17 xmlElement("Name", d.DEPARTMENT_NAME),
18 xmlElement
19 (
20 "Location",
21 xmlForest
22 (
23 STREET_ADDRESS as "Address", CITY as "City", STATE_PROVINCE as "State",
24 POSTAL_CODE as "Zip",COUNTRY_NAME as "Country"
25 )
26 ),
27 xmlElement
28 (
29 "EmployeeList",
30 (
31 select xmlAgg
32 (
33 xmlElement
34 (
35 "Employee",
36 xmlAttributes ( e.EMPLOYEE_ID as "employeeNumber" ),
37 xmlForest
38 (
39 e.FIRST_NAME as "FirstName", e.LAST_NAME as "LastName", e.EMAIL as "EmailAddre
ss",
40 e.PHONE_NUMBER as "Telephone", e.HIRE_DATE as "StartDate", j.JOB_TITLE as "Job
Title",
41 e.SALARY as "Salary", m.FIRST_NAME || ' ' || m.LAST_NAME as "Manager"
42 ),
43 xmlElement ( "Commission", e.COMMISSION_PCT )
44 )
45 )
46 from HR.EMPLOYEES e, HR.EMPLOYEES m, HR.JOBS j
47 where e.DEPARTMENT_ID = d.DEPARTMENT_ID
48 and j.JOB_ID = e.JOB_ID
49 and m.EMPLOYEE_ID = e.MANAGER_ID
50 )
51 )
52 )
53 )
54 from HR.DEPARTMENTS d, HR.COUNTRIES c, HR.LOCATIONS l
55 where d.LOCATION_ID = l.LOCATION_ID
56 and l.COUNTRY_ID = c.COUNTRY_ID
57 )
58 )
59 from dual
60 /
View created.
SQL> create or replace trigger DEPARTMENT_DML
2 instead of INSERT or UPDATE or DELETE
3 on DEPARTMENT_XML
4 begin
5 null;
6 end;
7 /
Trigger created.
SQL> declare
2 cursor getDepartments is
3 select ref(d) XMLREF
4 from DEPARTMENT_XML d;
5 res boolean;
6 targetFolder varchar2(1024) := '/public/Departments';
7 begin
8 if dbms_xdb.existsResource(targetFolder) then
9 dbms_xdb.deleteResource(targetFolder,dbms_xdb.DELETE_RECURSIVE_FORCE);
10 end if;
11 res := dbms_xdb.createFolder(targetFolder);
12 for dept in getDepartments loop
13 res := DBMS_XDB.createResource(targetFolder || '/Departments.xml', dept.XMLREF);
14 end loop;
15 end;
16 /
PL/SQL procedure successfully completed.
SQL> select path
2 from path_view
3 where equals_path(RES,'/public/Departments/Departments.xml') = 1
4 /
PATH
/public/Departments/Departments.xml
SQL> select xdburitype('/public/Departments/Departments.xml').getXML()
2 from dual
3 /
XDBURITYPE('/PUBLIC/DEPARTMENTS/DEPARTMENTS.XML').GETXML()
<Departments>
<Department DepartmentId="60">
<Name>IT</Name>
<Location
SQL> quit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
C:\Temp>ftp localhost
Connected to mdrake-lap.
220- mdrake-lap
Unauthorised use of this FTP server is prohibited and may be subject to civil and criminal prosecution.
220 mdrake-lap FTP Server (Oracle XML DB/Oracle Database) ready.
User (mdrake-lap:(none)): SCOTT
331 pass required for SCOTT
Password:
230 SCOTT logged in
ftp> cd /public/Departments
250 CWD Command successful
ftp> ls -l
200 EPRT Command successful
150 ASCII Data Connection
-rw-r--r-- 1 SCOTT oracle 0 NOV 10 20:18 Departments.xml
226 ASCII Transfer Complete
ftp: 71 bytes received in 0.01Seconds 7.10Kbytes/sec.
ftp> get Departments.xml -
200 EPRT Command successful
150 ASCII Data Connection
<Departments><Department DepartmentId="60"><Name>IT</Name><Location><Address>2014 Jabberwocky Rd</Address><City>Southlak
e</City><State>Texas</State><Zip>26192</Zip><Country>United States of America</Country></Location><EmployeeList><Employe
e employeeNumber="103"><FirstName>Alexander</FirstName><LastName>Hunold</LastName><EmailAddress>AHUNOLD</EmailAddress><T
elephone>590.423.4567</Telephone><StartDate>2006-01-03</StartDate><JobTitle>Programmer</JobTitle><Salary>9000</Salary><M
anager>Lex De Haan</Manager><Commission></Commission></Employee><Employee employeeNumber="105"><FirstName>David</FirstNa
me><LastName>Austin</LastName><EmailAddress>DAUSTIN</EmailAddress><Telephone>590.423.4569</Telephone><StartDate>2005-06-
25</StartDate><JobTitle>Programmer</JobTitle><Salary>4800</Salary><Manager>Alexander Hunold</Manager><Commission></Commi
ssion></Employee><Employee employeeNumber="106"><FirstName>Valli</FirstName><LastName>Pataballa</LastName><EmailAddress>
VPATABAL</EmailAddress><Telephone>590.423.4560</Telephone><StartDate>2006-02-05</StartDate><JobTitle>Programmer</JobTitl
e><Salary>4800</Salary><Manager>Alexander Hunold</Manager><Commission></Commission></Employee><Employee employeeNumber="
107"><FirstName>Diana</FirstName><LastName>Lorentz</LastName><EmailAddress>DLORENTZ</EmailAddress><Telephone>590.423.556
7</Telephone><StartDate>2007-02-07</StartDate><JobTitle>Programmer</JobTitle><Salary>4200</Salary><Manager>Alexander Hun
old</Manager><Commission></Commission></Employee><Employee employeeNumber="104"><FirstName>Bruce</FirstName><LastName>Er
nst</LastName><EmailAddress>BERNST</EmailAddress><Telephone>590.423.4568</Telephone><StartDate>2007-05-21</StartDate><Jo
bTitle>Programmer</JobTitle><Salary>6000</Salary><Manager>Alexander Hunold</Manager><Commission></Commission></Employee>
</EmployeeList></Department><Department DepartmentId="50"><Name>Shipping</Name><Location><Address>2011 Interiors Blvd</A
ddress><City>South San Francisco</City><State>California</State><Zip>99236</Zip><Country>United States of America</Count
ry></Location><EmployeeList><Employee employeeNumber="120"><FirstName>Matthew</FirstName><LastName>Weiss</LastName><Emai
lAddress>MWEISS</EmailAddress><Telephone>650.123.1234</Telephone><StartDate>2004-07-18</StartDate><JobTitle>Stock Manage
r</JobTitle><Salary>8000</Salary><Manager>Steven King</Manager><Commission></Commission></Employee><Employee employeeNum
ber="122"><FirstName>Payam</FirstName><LastName>Kaufling</LastName><EmailAddress>PKAUFLIN</EmailAddress><Telephone>650.1
23.3234</Telephone><StartDate>2003-05-01</StartDate><JobTitle>Stock Manager</JobTitle><Salary>7900</Salary><Manager>Stev
en King</Manager><Commission></Commission></Employee><Employee employeeNumber="121"><FirstName>Adam</FirstName><LastName
Fripp</LastName><EmailAddress>AFRIPP</EmailAddress><Telephone>650.123.2234</Telephone><StartDate>2005-04-10</StartDate><JobTitle>Stock Manager</JobTitle><Salary>8200</Salary><Manager>Steven King</Manager><Commission></Commission></Employee
<Employee employeeNumber="124"><FirstName>Kevin</FirstName><LastName>Mourgos</LastName><EmailAddress>KMOURGOS</EmailAddress><Telephone>650.123.5234</Telephone><StartDate>2007-11-16</StartDate><JobTitle>Stock Manager</JobTitle><Salary>5800<
/Salary><Manager>Steven King</Manager><Commission></Commission></Employee><Employee employeeNumber="123"><FirstName>Shan
ta</FirstName><LastName>Vollman</LastName><EmailAddress>SVOLLMAN</EmailAddress><Telephone>650.123.4234</Telephone><Start
Date>2005-10-10</StartDate><JobTitle>Stock Manager</JobTitle><Salary>6500</Salary><Manager>Steven King</Manager><Commiss
ion></Commission></Employee><Employee employeeNumber="128"><FirstName>Steven</FirstName><LastName>Markle</LastName><Emai
lAddress>SMARKLE</EmailAddress><Telephone>650.124.1434</Telephone><StartDate>2008-03-08</StartDate><JobTitle>Stock Clerk
</JobTitle><Salary>2200</Salary><Manager>Matthew Weiss</Manager><Commission></Commission></Employee><Employee employeeNu
mber="127"><FirstName>James</FirstName><LastName>Landry</LastName><EmailAddress>JLANDRY</EmailAddress><Telephone>650.124
.1334</Telephone><StartDate>2007-01-14</StartDate><JobTitle>Stock Clerk</JobTitle><Salary>2400</Salary><Manager>Matthew
Weiss</Manager><Commission></Commission></Employee><Employee employeeNumber="126"><FirstName>Irene</FirstName><LastName>
Mikkilineni</LastName><EmailAddress>IMIKKILI</EmailAddress><Telephone>650.124.1224</Telephone>
<StartDate>2002-06-07</St
artDate><JobTitle>Public Relations Representative</JobTitle><Salary>10000</Salary><Manager>Neena Kochhar</Manager><Commi
ssion></Commission></Employee></EmployeeList></Department></Departments>226 ASCII Transfer Complete
ftp: 40392 bytes received in 0.08Seconds 480.86Kbytes/sec.
ftp> -
I have created a simple config file using something like:
XMLEncoder e = new XMLEncoder(
new BufferedOutputStream(
new FileOutputStream("Config.xml")));
e.writeObject(base.toString());
e.writeObject(numberFrom);
e.writeObject(numberTo);
e.writeObject(numberPad);
e.writeObject(maxTasks);
e.writeObject(maxSubTasks);
e.writeObject(textFrom);
e.writeObject(textTo);
e.close();which produces a file like:
<?xml version="1.0" encoding="UTF-8"?>
<java version="1.4.2_05" class="java.beans.XMLDecoder">
<string>C:\</string>
<int>1</int>
<int>20</int>
<int>2</int>
<int>0</int>
<int>1</int>
<string>a</string>
<string>z</string>
</java> I want to make it a bit more version proof so need to get something more like:
<?xml version="1.0" encoding="UTF-8"?>
<program name=myprog>
<dir>C:\</dir>
<version>1</version>
<myval1>20</myval1>
<myval2>2</myval2>
</program>There's probably loads of errors in that bit;) but you get the idea. I'm a bit new to xml programming.
Can anyone give me any urls of help or examples that might do this?
Thanks,
David.You could use a binding api such as JAXB or xmlbeans. In essence these apis abstract the xml as pure java objects. Alternatively you could use an xml parser such as dom4j and build the XML 'by hand'. This class will create an example config file and write it to the file system
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
import org.apache.xml.serialize.OutputFormat;
import org.apache.xml.serialize.XMLSerializer;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.Text;
* Class to create a simple xml config file using W3C api
* @author wollnyj
public class CreateConfig {
* create the config file
*?xml version="1.0" encoding="UTF-8"?>
*<program name=myprog>
* <dir>C:\</dir>
* <version>1</version>
* <myval1>20</myval1>
* <myval2>2</myval2>
*</program>
* @param configFile
* @throws ParserConfigurationException
* @throws IOException
public CreateConfig(String configFile) throws ParserConfigurationException, IOException {
//Document doc = parseXml(configFile);
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
Document doc = factory.newDocumentBuilder().newDocument();
Element program = doc.createElement("program");
program.setAttribute("name","myprog");
Element dir = createEle("dir","c:\\",doc);
Element version = createEle("version","1",doc);
Element val1 = createEle("myval1","20",doc);
// etc...
program.appendChild(dir);
program.appendChild(version);
program.appendChild(val1);
doc.appendChild(program);
write(doc,new File(configFile));
* @param args
* @throws Exception
public static void main(String[]args) throws Exception {
CreateConfig create = new CreateConfig("F:\\config.xml");
* Write an xml document to the file system
* @param document The document to be written
* @param xmlFile The output file
* @throws IOException The file does not exist or could not be created
private void write(Document document, File xmlFile) throws IOException {
OutputFormat format = new OutputFormat(document);
format.setIndent(4);
format.setLineSeparator(System.getProperty("line.separator"));
format.setLineWidth(80);
FileWriter writer = new FileWriter(xmlFile);
XMLSerializer fileSerial = new XMLSerializer(new BufferedWriter(writer), format);
fileSerial.asDOMSerializer();
fileSerial.serialize(document);
private Element createEle(String name, String value, Document doc) {
Element ele = doc.createElement(name);
Text textNode = doc.createTextNode(value);
ele.appendChild(textNode);
return ele;
} -
[PENTAHO] export design into xml format
Hi all,
I wonder if it's possible to create a design with reportDesigner, export the design to an xml format and then use this xml format file to create a report. For example, in the HelloWorld demo you have to create the necessary code to make a report. However, in the invoice demo you have an xml file in wich you have the structure description of the report and you can use it to make the report without writing all the code.
Thanks a lot!my questionWhat question?
This is why I wrote my question inWhat question?
So, Does anyone knows the answer to my question?What question?
There is no question in what you have posted.
If your question is about reportDesigner, whatever that is, this is the wrong forum and the wrong site. -
Filling PDF Form with XML data file
Hello everybody.
I need help.
I created a form with LiveCycle Designer. I filled it and generated a XML data files. Now, I would like to fill the same blank PDF form with this XML data file.
I know that I can do it with Adobe 8.0 but I must do it in an C# / .NET application that I have to create.
(Forms I'm creating are not for me, I create the forms. Client uses them form but he don't have Adobe Acrobat 8.0, so he can't realise the automatic PDF filling with Adobe Acrobat 8.0)
So I am looking for help with ".NET" "COM" or other library to help me to do it. If someone has other idea just give it.
Thanks for your reply
Jean Pierre (sorry for my bad English)Hello Mike
Thank's for your reply. I used XPAAJ and it works very well but my company his develloping software with C# langage.
I tried to convert XPPAJ to C#, I did it with the Java Langage Conversion Assistant but "Adobe Library" included in jar files cannot be translated to C#/.NET library. So, I can't use it.
I found some C#/.NET API on the NET but they are very expensive and my company don't want to pay. They want me to create my own solution with library given by Adobe when you buy Adobe 8. So I am looking for this library.
Is there an Adobe LiveCycle Designer SDK to help me.
Thank you in advance for your reply
Jean Pierre (student developing with LiveCycle Designer) -
Writind Data to XML in XML Format
Hi,
This is my First post in Sun Forums.
I m learning XML writing in Java.
I have searched on the Net but unable to find the proper XML writing Method using any API.
Please provide code for writing the XML in correct format with useful API.?
i m giving the Scenario of XML here:-
<?xml version="1.0" encoding="UTF-8"?>
<Data>
<Description>Description Addes</Description>
<Details>Details Added</Details>
</Data>
I want to Write this Data Using the Java using any API.
Also I want to append the Data while i m executing the XML for second time.
<?xml version="1.0" encoding="UTF-8"?>
<Data>
<Description>Description Addes</Description>
<Details>Details Added</Details>
</Data>
<Data>
<NewDescription>NewDescription Addes</NewDescription>
<NewDetails>NewDetails Added</NewDetails>
</Data>
I have also made 1 application using dom4j which write data to XML file but while i m appending the Data
for the Second time in the XML the same line repeatd <?xml version="1.0" encoding="UTF-8"?> in the XML.
So please guide me how to remove or delete this line while i m going for writing the XML again or Appending the Data Again..
Please provide some code or good Links or Solution for my Problem for writing the Simple XML format file and Appending the Data to the Same XML without including the <?xml version="1.0" encoding="UTF-8"?> this line
Again ?
?.Hi,
I have Attached my Whole code in which the Same Line <?xml version="1.0" encoding="UTF-8"?> is appended while i m running this code second ,third ,fourth....n..times...
import java.util.logging.Level;
import java.util.logging.Logger;
import org.dom4j.Document;
import org.dom4j.DocumentHelper;
import org.dom4j.Element;
import org.dom4j.io.XMLWriter;
import org.dom4j.io.OutputFormat;
import java.io.*;
public class XMLWriting {
FileWriter out;
int i=1;
OutputFormat outformat;
XMLWriter writer;
public XMLWriting() {
public static void main(String s[]) {
System.out.println("In the Main Method::");
XMLWriting onj = new XMLWriting();
onj.createDocument();
System.out.println("In the Main Method::111111111111");
public void createDocument() {
try {
System.out.println("In the Main Method::22222222222");
out = new FileWriter("D:/foo3",true);
} catch (IOException ex) {
//Logger.getLogger(XMLWriting.class.getName()).log(Level.SEVERE, null, ex);
System.out.println("Exception Is in the CreateDocument Is::"+ex.getMessage());
Document document =DocumentHelper.createDocument();
Element root = document.addElement("root");
String Data="Data";
//Element testNode = root.addElement("Description");
Element author1 = root.addElement("Description").addText(Data);
Element author2 = root.addElement("Data").addText(" nimesh");
Element author3 = root.addElement("XMl").addText("Jignesh");
try {
//OutputFormat outformat =OutputFormat.createCompactFormat();
outformat = OutputFormat.createPrettyPrint();
writer= new XMLWriter(out,outformat);
writer.write(document);
writer.close();
} catch (Exception e) {
System.out.println("Exception Is ::"+e.getMessage());
e.printStackTrace();
OutPut after Executing Two Time:-
<?xml version="1.0" encoding="UTF-8"?>//same line appended twice
<root>
<Description>Data</Description>
<Data>nimesh</Data>
<XMl>Jignesh</XMl>
</root>
<?xml version="1.0" encoding="UTF-8"?>//same line appended twice
<root>
<NewDescription>NewData</NewDescription>
<NewData>Newnimesh</NewData>
<NewXMl>NewJignesh</NewXMl>
</root>
Please help me out in this ....If any modification is needed then correct my mistake and reply me with modified code ...I want this type of OutPut without Appending the <?xml version="1.0" encoding="UTF-8"?> this line in the XML file....
<?xml version="1.0" encoding="UTF-8"?>
<root>
<Description>Data</Description>
<Data>nimesh</Data>
<XMl>Jignesh</XMl>
</root>
<root>
<NewDescription>NewData</NewDescription>
<NewData>Newnimesh</NewData>
<NewXMl>NewJignesh</NewXMl>
</root>
Maybe you are looking for
-
How can I make a keyboard shortcut for 'insert footnote' in Pages 09?
I do a lot of accademic work and it is incredibly frustrating not to have a shortcut for one of the most frequent tasks i perform in pages. Please can someone help me?
-
Did anyone buy a MacBook Pro Retina 13" from Best Buy this Black Friday? I'm having an issue where the WiFi disconnects after the MacBook wakes from sleep but only after a couple of minutes. Once the WiFi disconnects, I can't reconnect to the same ne
-
I got this message in the header after trying to open several different pdfs from several different sources so I am assumeing something is wrong with adobe and not the pdf's i am opening. I need to open them for school! Please help! I've already t
-
WLS 10.3 - Self Registration with External LDAP Fails (somewhat)
I have a WLS 10.3.5 instance with WebCenter Spaces. I've added an OpenLDAP provider to the security realm, set the OpenLDAP provider and the default authenticator to "sufficient", and reordered the providers in the console to list the OpenLDAP provid
-
I've tried several times to export my video in any possible way. It always says that it takes a couple of hours and stops when it has 15 min left. Already checked if I have enough space. iMovie also work really slow. Is the video too big for iMovie t