On Monday, April 25, 2016 at 6:04:24 PM UTC+5:30, Peter Otten wrote:
> harirammano...@gmail.com wrote:
>
> >> tree.write('output.xml')
> >
> > yup its working well if i include register namespace, else i am getting
> > ns:0 in every line of output.xml.
> >
> > But its removing top line
> >
>
harirammano...@gmail.com wrote:
>> tree.write('output.xml')
>
> yup its working well if i include register namespace, else i am getting
> ns:0 in every line of output.xml.
>
> But its removing top line
>
The write() method allows you to specify an encoding and/or require an xml
declaration:
harirammano...@gmail.com writes:
> On Monday, April 25, 2016 at 4:58:15 PM UTC+5:30, Jussi Piitulainen wrote:
>> harirammano...@gmail.com writes:
>>
>> > On Monday, April 25, 2016 at 4:09:26 PM UTC+5:30, Jussi Piitulainen wrote:
>> >> Peter Otten writes:
>> >>
>> >> > harirammano...@gmail.com wr
scribers =
(elem.text).rstrip()
result_sms =
send_sms(subscribers,shortCode,send_text)
Reuse it.
-Original Message-
From: Python-list
[mailto:python-list-bounces+joaquin.alzola=lebara@python.org] On Behalf Of
Peter Otten
Sent: 25 April 2016 11:14
To: python-list@python.org
Subject: Re:
On Monday, April 25, 2016 at 4:58:15 PM UTC+5:30, Jussi Piitulainen wrote:
> harirammano...@gmail.com writes:
>
> > On Monday, April 25, 2016 at 4:09:26 PM UTC+5:30, Jussi Piitulainen wrote:
> >> Peter Otten writes:
> >>
> >> > harirammano...@gmail.com wrote:
> >> >
> >> >> Here is the code:
> >>
harirammano...@gmail.com writes:
> On Monday, April 25, 2016 at 4:09:26 PM UTC+5:30, Jussi Piitulainen wrote:
>> Peter Otten writes:
>>
>> > harirammano...@gmail.com wrote:
>> >
>> >> Here is the code:
>> >
>> > Finally ;)
>>
>> :)
>
> name space issue can be resolved registering name space i ha
On Monday, April 25, 2016 at 4:09:26 PM UTC+5:30, Jussi Piitulainen wrote:
> Peter Otten writes:
>
> > harirammano...@gmail.com wrote:
> >
> >> Here is the code:
> >
> > Finally ;)
>
> :)
name space issue can be resolved registering name space i have no issue with
that, only concern is xml pars
harirammano...@gmail.com writes:
> On Monday, April 25, 2016 at 3:19:15 PM UTC+5:30, hariram...@gmail.com wrote:
[- -]
>> Here is the code:
>>
>> import xml.etree.ElementTree as ET
>> ET.register_namespace("", "http://xmlns.jcp.org/xml/ns/javaee";)
>> tree = ET.parse('sample.xml')
>> root = tre
Peter Otten writes:
> harirammano...@gmail.com wrote:
>
>> Here is the code:
>
> Finally ;)
:)
--
https://mail.python.org/mailman/listinfo/python-list
harirammano...@gmail.com writes:
> On Monday, April 25, 2016 at 12:47:14 PM UTC+5:30, Jussi Piitulainen wrote:
>> harirammano...@gmail.com writes:
>>
>> > Hi Jussi,
>> >
>> > i have seen you have written a definition to fulfill the requirement,
>> > can we do this same thing using xml parser, as
harirammano...@gmail.com wrote:
> Here is the code:
Finally ;)
> import xml.etree.ElementTree as ET
> ET.register_namespace("", "http://xmlns.jcp.org/xml/ns/javaee";)
I don't know what this does, but probably not what you expected.
> tree = ET.parse('sample.xml')
> root = tree.getroot()
>
> f
On Monday, April 25, 2016 at 3:19:15 PM UTC+5:30, hariram...@gmail.com wrote:
> On Monday, April 25, 2016 at 12:47:14 PM UTC+5:30, Jussi Piitulainen wrote:
> > harirammano...@gmail.com writes:
> >
> > > Hi Jussi,
> > >
> > > i have seen you have written a definition to fulfill the requirement,
> >
On Monday, April 25, 2016 at 12:47:14 PM UTC+5:30, Jussi Piitulainen wrote:
> harirammano...@gmail.com writes:
>
> > Hi Jussi,
> >
> > i have seen you have written a definition to fulfill the requirement,
> > can we do this same thing using xml parser, as i have failed to
> > implement the thing u
harirammano...@gmail.com writes:
> Hi Jussi,
>
> i have seen you have written a definition to fulfill the requirement,
> can we do this same thing using xml parser, as i have failed to
> implement the thing using xml parser of python if the file is having
> the content as below...
>
> PUBLIC
On Friday, April 22, 2016 at 4:41:08 PM UTC+5:30, Jussi Piitulainen wrote:
> Peter Otten writes:
>
> > harirammano...@gmail.com wrote:
> >
> >> On Thursday, April 21, 2016 at 7:03:00 PM UTC+5:30, Jussi Piitulainen
> >> wrote:
> >>> harirammano...@gmail.com writes:
> >>>
> >>> > On Monday, April 1
On Friday, April 22, 2016 at 3:20:53 PM UTC+5:30, Peter Otten wrote:
> harirammano...@gmail.com wrote:
>
> >> @peter yes here it is not xml, but real data is an xml..believe me..
> >
> > @peter this is the similar xml i am having, you can correlate.
> >
> > https://tomcat.apache.org/tomcat-5.5-d
Peter Otten writes:
> harirammano...@gmail.com wrote:
>
>> On Thursday, April 21, 2016 at 7:03:00 PM UTC+5:30, Jussi Piitulainen
>> wrote:
>>> harirammano...@gmail.com writes:
>>>
>>> > On Monday, April 18, 2016 at 12:38:03 PM UTC+5:30,
>>> > hariram...@gmail.com wrote:
>>> >> HI All,
>>> >>
>>>
harirammano...@gmail.com wrote:
>> @peter yes here it is not xml, but real data is an xml..believe me..
>
> @peter this is the similar xml i am having, you can correlate.
>
> https://tomcat.apache.org/tomcat-5.5-doc/appdev/web.xml.txt
This is still too vague.
If you post the code you actually
harirammano...@gmail.com wrote:
> On Thursday, April 21, 2016 at 7:03:00 PM UTC+5:30, Jussi Piitulainen
> wrote:
>> harirammano...@gmail.com writes:
>>
>> > On Monday, April 18, 2016 at 12:38:03 PM UTC+5:30,
>> > hariram...@gmail.com wrote:
>> >> HI All,
>> >>
>> >> can you help me out in doing
On Friday, April 22, 2016 at 2:30:45 PM UTC+5:30, hariram...@gmail.com wrote:
> On Thursday, April 21, 2016 at 4:55:18 PM UTC+5:30, Peter Otten wrote:
> > harirammano...@gmail.com wrote:
> >
> > > On Monday, April 18, 2016 at 12:38:03 PM UTC+5:30, hariram...@gmail.com
> > > wrote:
> > >> HI All,
>
On Thursday, April 21, 2016 at 4:55:18 PM UTC+5:30, Peter Otten wrote:
> harirammano...@gmail.com wrote:
>
> > On Monday, April 18, 2016 at 12:38:03 PM UTC+5:30, hariram...@gmail.com
> > wrote:
> >> HI All,
> >>
> >> can you help me out in doing below.
> >>
> >> file:
> >>
> >> guava
> >> frui
On Thursday, April 21, 2016 at 7:03:00 PM UTC+5:30, Jussi Piitulainen wrote:
> harirammano...@gmail.com writes:
>
> > On Monday, April 18, 2016 at 12:38:03 PM UTC+5:30,
> > hariram...@gmail.com wrote:
> >> HI All,
> >>
> >> can you help me out in doing below.
> >>
> >> file:
> >>
> >> guava
harirammano...@gmail.com writes:
> On Monday, April 18, 2016 at 12:38:03 PM UTC+5:30,
> hariram...@gmail.com wrote:
>> HI All,
>>
>> can you help me out in doing below.
>>
>> file:
>>
>> guava
>> fruit
>>
>>
>> mango
>> fruit
>>
>>
>> orange
>> fruit
>>
>>
>> need to dele
harirammano...@gmail.com wrote:
> On Monday, April 18, 2016 at 12:38:03 PM UTC+5:30, hariram...@gmail.com
> wrote:
>> HI All,
>>
>> can you help me out in doing below.
>>
>> file:
>>
>> guava
>> fruit
>>
>>
>> mango
>> fruit
>>
>>
>> orange
>> fruit
>>
Is that literally what you have i
On Monday, April 18, 2016 at 12:38:03 PM UTC+5:30, hariram...@gmail.com wrote:
> HI All,
>
> can you help me out in doing below.
>
> file:
>
> guava
> fruit
>
>
> mango
> fruit
>
>
> orange
> fruit
>
>
> need to delete from start to end if it contains mango in a file...
>
lto:python-list-bounces+joaquin.alzola=lebara@python.org] On Behalf
> Of harirammano...@gmail.com
> Sent: 18 April 2016 08:08
> To: python-list@python.org
> Subject: delete from pattern to pattern if it contains match
>
>
> HI All,
>
> can you help me o
On Monday, April 18, 2016 at 1:19:43 PM UTC+5:30, Joaquin Alzola wrote:
> Hi,
>
> Try to use the xml module.
>
> import xml.etree.ElementTree as ET
>
> That might help.
>
> BR
>
> Joaquin
>
> -Original Message-
>
>
> HI All,
>
> can you help me out in doing below.
>
> file:
>
>
@python.org
Subject: delete from pattern to pattern if it contains match
HI All,
can you help me out in doing below.
file:
guava
fruit
mango
fruit
orange
fruit
need to delete from start to end if it contains mango in a file...
output should be:
guava
fruit
orange
fruit
Thank you
HI All,
can you help me out in doing below.
file:
guava
fruit
mango
fruit
orange
fruit
need to delete from start to end if it contains mango in a file...
output should be:
guava
fruit
orange
fruit
Thank you
--
https://mail.python.org/mailman/listinfo/
29 matches
Mail list logo