Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

6
  • Can you give XML samples from both files - the core problem is, XML isn't plain text, and if you treat it as if it is, you create brittle code. Using a parser is the answer - I can give you an example if you can post your XML. (And indicate which tag you want to insert your content into) Commented Dec 28, 2015 at 22:15
  • @Sobrique I added content of file one and some of the content of file two Commented Dec 29, 2015 at 8:13
  • 1
    That isn't XML, which changes the answer Commented Dec 29, 2015 at 8:23
  • @Sobrique the page is extension XML thats why I added its XML page. sorry if I added wrong info. Commented Dec 29, 2015 at 8:30
  • i dont understand this question - you want all of the content in file one on line 35 of file 2? so you want it flattened? Or you want all of the content prepended to line 35? Or you want it appended? Or do you want it joined such that the content from the first line of file 1 is appended to the tail of line 35 and all of the rest of lines in file1 then follow? Commented Dec 29, 2015 at 10:16