perlsen has asked for the wisdom of the Perl Monks concerning the following question:
HI monks
I have the file which contains the
details of page no with DistinctiveTitle in ContentItem tag.
I need to get the FirstPageNumber tag details for
the given user input DistinctiveTitle information.
the sample input file is
<ContentItem> <TextItem> <TextItemType>03</TextItemType> <FirstPageNumber>29</FirstPageNumber> <LastPageNumber>56</LastPageNumber> <NumberOfPages>28</NumberOfPages> </TextItem> <ComponentTypeName>Chapter</ComponentTypeName> <DistinctiveTitle>The emergence of an Islamic</DistinctiveTitle> </ContentItem> <ContentItem> <TextItem> <TextItemType>03</TextItemType> <FirstPageNumber>29</FirstPageNumber> <LastPageNumber>34</LastPageNumber> <NumberOfPages>6</NumberOfPages> </TextItem> <ComponentTypeName>Chapter</ComponentTypeName> <DistinctiveTitle>The Arab Conquests</DistinctiveTitle> </ContentItem>
Thanks in advance.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Pattern matching question
by gopalr (Priest) on Jan 31, 2005 at 06:30 UTC | |
|
Re: Pattern matching question
by davido (Cardinal) on Jan 31, 2005 at 05:53 UTC | |
|
Re: Pattern matching question
by jbrugger (Parson) on Jan 31, 2005 at 05:31 UTC | |
|
Re: Pattern matching question
by perlsen (Chaplain) on Jan 31, 2005 at 06:22 UTC |