OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   What is fast ?

[ Lists Home | Date Index | Thread Index ]


 I need to replace 10-20 keywords in a DOM (the keys could be there in DOM
as text nodes or attribute values in any node at any level). DOM is
relatively small in size (say 50-60 nodes all levls included).The replaced
DOM is used by some other process.

Given the scenario .. whats faster ?
Going through DOM for each possible text value (in Node or node attribute)
and replace that text which could contain any of the keys and replacing the


Replace all keywords in the  xml string and then make a DOM out of it


is there any other way much faster than both ?

Please note the Keywords could also be repeated.

Could somebody help me in making the decision ?

Appreciate any comments .

Thanks & Best regards,

MphasiS Europe BV
Planetenweg 69
2132 HM Hoofddorp
The Netherlands

Tel:     +31(0)-23 55 41 410
Fax:     +31(0)-23 56 55 132

MphasiS Corporation
2601 Ocean Park Blvd
Suite # 320
Santa Monica, CA 90405
Tel:  (1)-310-396-4496
Fax: (1)-310-396-3862

Architecting Value
SEI Level 5         ISO


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS