Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8305217
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T18:02:47+00:00 2026-06-08T18:02:47+00:00

So I have to do a lot of work with an XML document editing

  • 0

So I have to do a lot of work with an XML document editing a lot using find and replace, the bad thing is all of the tags are on different lines, some are on one line but most not.

Here is an example of what they look like:

<Data StartTimecode='00:00:24:17' EndTimecode="00:00:29:08" Title='Lots of sample
text?'/>
<Data StartTimecode='00:00:24:17' EndTimecode="00:00:29:08" Title='Lots of sample text
again?'/>
<Data StartTimecode='00:00:24:17' EndTimecode="00:00:29:08" Title='Lots of sample text?'/>

So I need the data tag to be all on one line as when I am using regular expressions to find and replace it is only finding the lines that are on line. I have spent hours trying to figure this out,I have tried replacing all \n with nothing but it doesn’t fix it.

Does anyone know how I use a feature in notepad++ to get all lines like this?

<Data StartTimecode='00:00:24:17' EndTimecode="00:00:29:08" Title='Lots of sample text?'/>
<Data StartTimecode='00:00:24:17' EndTimecode="00:00:29:08" Title='Lots of sample text again?'/>
<Data StartTimecode='00:00:24:17' EndTimecode="00:00:29:08" Title='Lots of sample text?'/>

Many thanks to anyone who can help me figure this out, I have tried a lot in Notepad++ but I can’t accomplish this without help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T18:02:49+00:00Added an answer on June 8, 2026 at 6:02 pm

    On my first pass, I did a replace all using the extended search mode.

    I replaced \r\n with a space character. This effectively creates a file that is one line in height.

    Afterwards, I did another replace all for /> < (notice the space between the tags) with />\r\n<. This will break up the single line of XML code into multiple lines, between the end tag of one line and the opening tag of the next lnk

    I haven’t looked into the possibility of using the regular expression search mode.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a facebook app using a lot of Javascript that doesn't work correctly
We have lot of configuration files used in our application. Atleast 100 different xml
I have an MVC app that does a lot of work with jQuery ajax
I have tried a lot of solutions but it did not work for me
I have worked with pointers a lot, but still whenever I work with them,
At the moment, I have lot's of Java which does all kind of nifty
I am creating Excel file download using NOPI libraries. I have lot of data
I have read a lot of topics here regarding xml and tried some, but
I have been doing a lot of work with WCF self hosted applications. I
I have a scenario where we will be getting 10-15 different XML messages enqueued

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.