Re: Re: Problem with implementation of getChildNodes on HTMLFormElement?

Petr Stehlik <[email protected]> Sun, 14 Sep 2003 21:01:02 +0200
Newsgroups gmane.comp.java.enhydra.xmlc
Message-ID <[email protected]>
V Ne, 14. 09. 2003 v 07:05, Jacob Kjome píše:
> I need someone to modify the SED script

> >1.  Change the HTMLFormElementImpl#getChildNodes() method
I am not a SED wizard but the attachment should do the job for point 1
above.

As for the point 2 below...

> >2.  Change HTMLElementNoNS#expandChildren() method "protected" rather than 
> >"private"

...I am not sure if this would belong to the same sed script and I also
don't have the HTMLElementNoNS class handy to ensure the exact form of
the declaration so I better explain the SED magic:

s/private void expandChildren\(\)/protected void expandChildren\(\)/

would change the private void declaration to protected void. It's as
simple as Substitute What For = s/What/For/

sed -e 's/What/For/' is the whole command.

Special chars must be escaped with backslash. Also, backslash at end of
line means "join the next line with this one". So alternate style for
easier reading of the /s/What/For/ is

sed -e 's/\
What/\
For/\
'

Petr
edit.tgz (application/x-compressed-tar, 830 B) - not displayed