[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with OzoneXUpdate



Hi

This is the code below:
OzoneXUpdateQuery updatequery = container.newXUpdateQuery();
updatequery.setQString(update_string);
updatequery.execute();

The update_string is:
String update_string = "<lexus:updates version=\"1.0\"
xmlns:lexus=\"http://www.xmldb.org/xupdate\"><lexus:append select=\"/xml\">"
+ update_doc_string + "</lexus:append></lexus:updates>";

I am attaching the update_doc_string. I strip off the <xml> and </xml>
elements before appending to update_string as below:

update_doc_string =
update_doc_string.substring(update_doc_string.indexOf("<volume ");
update_doc_string =
update_doc_string.substring(0,update_doc_string.indexOf("</xml>"));


Thanks
Shekhar
----- Original Message -----
From: Lars Martin <lars@smb-tec.com>
To: Shekhar Karani <2kshekhar@sun20.datamatics.com>
Cc: <ozone-users@ozone-db.org>
Sent: Thursday, June 14, 2001 9:33 PM
Subject: Re: Problem with OzoneXUpdate


>
> On Thu, 14 Jun 2001 02:45:19 +0530
> "Shekhar Karani" <2kshekhar@sun20.datamatics.com> wrote:
>
> > I am facing a problem with OzoneXUpdate. When I update a XML document
> > containing <foot>.....</foot> or <footref>.....</footref>, it ignores
> > the text between these nodes and it happens with the nodes with these
> > names only. Could anyone tell me why this is so?
>
> Please send the whole XUpdate snipped and your test data. Thanks.
> --
> ______________________________________________________________________
> Lars Martin                                    mailto:lars@smb-tec.com
> SMB GmbH                                        http://www.smb-tec.com
>
<?xml version= "1.0" standalone="yes" ?><?xml-stylesheet type="text/xsl" href="/ozone-users/06-2001/common.xsl"?>
<xml copyright="Copyright 2001 CCH Incorporated, All Rights Reserved" build="Fedral Tax Guide">

<volume no="4">
<title>TAX RETURN PREPARERS</title>
<chapter no="1">
<title> 
    ALTERNATIVE FILING METHODS</title>
<subchapter no="1">

<title> 
    Form 1040-TEL (Telefile)</title>
<section no="1" ><title>P 24,610, Form 1040-TEL.</title>
<cite7>2001 Federal Tax Guide (CCH) P 24,610</cite7>
<cite40>2001 Federal Tax Guide (CCH) P 24,610</cite40>
<date>
May 25, 2001</date>
<accession>0100002555</accession>
<dollar05>Copyright 2001 CCH Incorporated, All Rights Reserved</dollar05>
<dollar165>
Copyright 2001 CCH Incorporated, All Rights Reserved</dollar165>
<content>
<para>
<text>
The IRS continually works on alternative filing methods which are designed to improve the accuracy of returns and to make filing easier for taxpayers. One such alternative, TeleFile, debuted in 1992. TeleFile is available to single individuals who would otherwise file Form 1040EZ and have not changed their addresses since their last filing. The IRS is planning to go nationwide with this telephone system for filing tax returns for tax year 1996.</text></para><para><text>A TeleFiler first completes a five-line Form 1040-TEL by entering total wages, interest and tax withheld. Using a toll-free number, the TeleFiler enters the information from a touch-tone telephone. While the taxpayer is still on the line, the IRS calculates adjusted gross income, tax, and refund or tax due. The taxpayer must sign and mail in the Form 1040-TEL, along with all W-2 forms. Refunds should be sent about three weeks following the telephone filing. Payment of taxes due still must be sent by the April 15 deadline.</text>
</para>
</content>
</section>
</subchapter>
<subchapter no="2">

<title> 
    Form 1040PC</title>
<section no="1" ><title>P 24,620, Form 1040PC.</title>
<cite7>2001 Federal Tax Guide (CCH) P 24,620</cite7>
<cite40>2001 Federal Tax Guide (CCH) P 24,620</cite40>
<date>
May 25, 2001</date>
<accession>0100002556</accession>
<dollar05>Copyright 2001 CCH Incorporated, All Rights Reserved</dollar05>
<dollar165>
Copyright 2001 CCH Incorporated, All Rights Reserved</dollar165>
<content>
<para>
<text>
Commercial 1040PC computer programs are now available for use by individuals and tax preparers. These programs were developed according to IRS specifications and then tested by the IRS for accuracy. When using the program, the taxpayer enters all relevant information and the program produces a three-column list of entries. The blank lines found with the traditional paper return are eliminated. The taxpayer signs and mails the answer sheet, along with W-2 forms and payment, if necessary.The consolidated format means that taxpayers, tax preparers and the IRS have less paper to handle and store.</text></para><para><text>Personal computer users may take advantage of on-line filing of their tax returns </text>
<footref no="upnum_1_2_05" bno="BACKupnum_1_2_05" >
[ 05 ]</footref>
<text>
  . To file on-line, an individual must transmit a completed return file to an on-line service, which converts the file from the tax preparation software's format to a format meeting IRS specifications for electronic filing. The on-line service then transmits the acceptable return file to the IRS. THE IRS will notify the taxpayer through the on-line service whether the return is accepted or if corrections are required. Once accepted by the IRS, the individual must mail a signed Form 8453-OL, U.S. Individual Income Tax Declaration for Electronic Filing On-Line, along with any W-2 forms, directly to the IRS.</text>
</para>
</content>
<footnote>
<foot no="upnum_1_2_05" bno="BACKupnum_1_2_05" >
FOOTNOTE 05 Rev. Proc. 98-51 , I.R.B. 1998-38, 20.  </foot>
</footnote>
</section>
</subchapter>
</chapter></volume></xml>