Re: Find empty xml tags.
Peter Karman <[email protected]>
| Newsgroups | gmane.comp.web.swish-e |
|---|---|
| Message-ID | <[email protected]> |
This is not possible with Swish-e as far as I can tell. Swish-e only indexes what is present, not what is absent. You could likely solve this by filtering your docs and passing to -S prog. Some simple regexp like: s,<(\w+)(.*?)>\s*</\1>,<$1$2>_no_tag_content_</$1>,gs; would probably catch most of them. Then you could search for '_no_tag_content_' and find them that way. pek Carmelo Carchedi scribbled on 7/20/06 12:39 PM: > If I have an XML file and inside I have empty tags, how can i find file > with empty tags? > > es,: > <a_file> > with some text and an empty tag like... > <this_tag></this_tag> > ok? > </a_file> > -- Peter Karman . http://peknet.com/ . [email protected]