Hi,

I have a mkv file which contains chapters in xml format. I want to edit some of the chapter names and then mux with the same mkv using mkvmerge. I first extracted the chapter file from the mkv using mkvextract,,...then i opened mkvmerge and went to Chapter Editor. then i loaded the exracted xml chapter file and then edited the required names and saved it. Although everything was fine except for a slight change in order of the contents. The three highlighted texts below had got their order changed in comparison to original and this was seen for the remaining portion of the chapter aswell.

Code:
ORIGINAL
<?xml version="1.0" encoding="UTF-8"?>

<!-- <!DOCTYPE Tags SYSTEM "matroskatags.dtd"> -->

<Chapters>
  <EditionEntry>
    <EditionFlagHidden>0</EditionFlagHidden>
    <EditionFlagDefault>0</EditionFlagDefault>
    <EditionUID>2764277645</EditionUID>
    <ChapterAtom>
      <ChapterUID>1889278397</ChapterUID>
      <ChapterTimeStart>00:00:00.000000000</ChapterTimeStart>
      <ChapterFlagHidden>0</ChapterFlagHidden>
      <ChapterFlagEnabled>1</ChapterFlagEnabled>
      <ChapterDisplay>
        <ChapterString>Circle Of Life</ChapterString>
        <ChapterLanguage>eng</ChapterLanguage>
      </ChapterDisplay>
Code:
EDITED using mkvmerge chapter editor.

<?xml version="1.0" encoding="UTF-8"?>

<!-- <!DOCTYPE Tags SYSTEM "matroskatags.dtd"> -->

<Chapters>
  <EditionEntry>
    <EditionFlagHidden>0</EditionFlagHidden>
    <EditionFlagDefault>0</EditionFlagDefault>
    <EditionUID>2764277645</EditionUID>
    <ChapterAtom>
      <ChapterUID>1889278397</ChapterUID>
      <ChapterFlagHidden>0</ChapterFlagHidden>
      <ChapterFlagEnabled>1</ChapterFlagEnabled>
      <ChapterTimeStart>00:00:00.000000000</ChapterTimeStart>
      <ChapterDisplay>
        <ChapterString>&quot;Circle Of Life&quot;</ChapterString>
        <ChapterLanguage>eng</ChapterLanguage>
      </ChapterDisplay>
    </ChapterAtom>
Now i would like to have the order kept as it is and would only like to have the names changed that is from
Circle Of Life to "Circle Of Life".
Can i achieve this using notepad++? because using notepad only the required data can be changed without affecting the entire data.
Also my next question is to how do i add the edited chapter to the mkv file using mkvmerge.

I know there is an option for adding chapter files in the GLOBAL area of mkvmerge. but i am not sure whether it is the right way of adding chapters to an mkv.
What should be selected for cue name format and Charset??
So if anybody could please help me in knowing the right way of editing and adding chapters to an mkv file it would be a great help.
Thanks