Click here to Skip to main content
15,884,099 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
I am Developing a EPUB Reader which has functionality to read files & run music files in the background. I have to create an .mcx(music control file for XML) file in which it describes which music file goes with which paragraph.

I want to read the music file for a particular chapter but now the problem is I have to run the music per paragraph which in XHTML constant.

This is my .mcx file
========================================
<mcx version=""1.0"" />

<head>
<meta name="dtb:uid" content="123456789X"/>
</head>

<!-This is tab which describe chapter->
<opf: itemref="" idref=""chapter-1"" xmlns:opf="#unknown">
<music position=""3," />
<music position=""279," />
<music position=""540," />
<music position=""894," />
<music position=""1096," />
<music position=""1441," />
<music position=""1688," />
<music position=""1851," />
<music position=""1911," />
<music position=""2151," />
<music position=""2271," />

<opf: itemref="" idref=""chapter-2"">
<music position=""3," />
<music position=""279," />
<music position=""540," />
<music position=""894," />
<music position=""1096," />
<music position=""1441," />
<music position=""1688," />
<music position=""1851," />
<music position=""1911," />
<music position=""2151," />
<music position=""2271," />
</opf:></opf:>


====================================================
like: This is Chapter:1

THE thought instantly occurred to me that the paper was a note from Augustus, and that some unaccountable accident having happened to prevent his relieving me from my dungeon, he had devised this method of acquainting me with the true state of affairs.

ASSUME THIS IS SCREEN
||
|| I want to only this text only which is coverd by
\/ screen
---------------------------------------------------------------------------------------
Trembling with eagerness, I now commenced another search for my phosphorus matchesand apers. I had a confused recollection of having put them carefully away just before falling asleep; and, indeed, previously to my last journey to the trap, I had been able to remember the exact spot where I had deposited them. But now I endeavored in vain to call it to mind, and busied myself for a full hour in a fruitless and vexatious search for the missing articles; never, surely, wastherea more tantalizing state of anxiety and suspense. At length, while groping about, with my head close to the ballast, near the opening of the box, and outside of it, I perceived a faint glimmering of light in the direction of the steerage. Greatly surprised, I endeavored to make my way toward it, as it appeared to be but a few feet from my position. Scarcely had I moved with this intention, when I lost sight of the glimmer entirely, and, before I could bring it into view again, was obliged to feel along by the box until I had exactly resumed my original situation. Now, moving my head with cautionto and fro, I found that, by proceeding slowly, with great care, in an oppositedirection to that in which I had at first started, I was enabled to draw near the light, still keeping it in view. Presently I came directly upon it (having squeezed my way through innumerable narrow windings), and found that it proceeded from some fragments of my matches lying in an empty barrel turned upon its side. I was wondering how they came in such a place, when my hand fell upon two or three pieces of taper wax, which had
---------------------------------------------------------------------------------------

been evidently mumbled by the dog. I concluded at once that he had devoured the whole of my supply of candles, and I felt hopeless of being ever able to read the note of Augustus. The small remnants of the wax were so mashed up among other rubbish in the barrel, that I despaired of deriving any service from them, and left them as they were The phosphorus, of which there was only a speck or two, I gathered up as well as I could, and returned with it, after much difficulty, to my box, where Tiger had all the while remained.

I am using QT Creator & C++

Any help is greatly appreciated.
Posted
Updated 3-Jun-11 0:18am
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900